Changeset 1308
- Timestamp:
- 01/25/09 17:20:17 (3 years ago)
- Location:
- trunk/tigcc
- Files:
-
- 27 added
- 2 deleted
- 2 copied
- 9 moved
-
tools (added)
-
tools/Makefile (added)
-
tools/bin2oth.c (moved) (moved from trunk/tigcc/ttpack/bin2oth.c) (3 diffs, 1 prop)
-
tools/buildall (added)
-
tools/buildall.bat (added)
-
tools/builddocs (added)
-
tools/builddocs.bat (added)
-
tools/buildone (added)
-
tools/buildone.bat (added)
-
tools/lgpl.txt (moved) (moved from trunk/tigcc/ttpack/lgpl.txt)
-
tools/logo.bin (added)
-
tools/logo.bmp (added)
-
tools/packhead.h (moved) (moved from trunk/tigcc/ttpack/packhead.h) (6 diffs, 1 prop)
-
tools/revtools.h (moved) (moved from trunk/tigcc/ttpack/ttversion.h) (4 diffs, 1 prop)
-
tools/strhead.h (moved) (moved from trunk/tigcc/ttpack/strhead.h) (2 diffs, 1 prop)
-
tools/tt.h (copied) (copied from trunk/tigcc/ttpack/tt.h) (3 diffs, 1 prop)
-
tools/ttarchive.c (added)
-
tools/ttarchive.h (added)
-
tools/ttbin2bin.c (added)
-
tools/ttbin2hex.c (added)
-
tools/ttbin2oth.c (moved) (moved from trunk/tigcc/ttpack/ttbin2oth.c) (4 diffs, 1 prop)
-
tools/ttbin2str.c (added)
-
tools/ttchecksum.c (added)
-
tools/ttextract.c (added)
-
tools/tthelp.c (added)
-
tools/tthex2bin.c (added)
-
tools/ttinfo.c (added)
-
tools/ttpack.c (moved) (moved from trunk/tigcc/ttpack/ttpack.c) (7 diffs, 1 prop)
-
tools/ttppggen.c (added)
-
tools/ttsetname.c (added)
-
tools/ttsplit.c (added)
-
tools/ttstrip.c (moved) (moved from trunk/tigcc/ttpack/ttstrip.c) (4 diffs, 1 prop)
-
tools/tttiler.c (added)
-
tools/ttunarchive.c (added)
-
tools/ttunpack.c (added)
-
tools/ttunpack.h (moved) (moved from trunk/tigcc/ttpack/tt.h) (4 diffs, 1 prop)
-
tools/ttversion.h (copied) (copied from trunk/tigcc/ttpack/ttversion.h) (3 diffs, 1 prop)
-
tools/unpack.c (added)
-
ttpack/Makefile (deleted)
-
ttpack/revtools.h (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tigcc/tools/bin2oth.c
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: bin2oth.c 5 5 * initial date: 22/08/2000 … … 16 16 17 17 /* 18 This file is part of ttbin2oth .18 This file is part of ttbin2oth, one of the GCC4TI Tools. 19 19 20 20 This file is free software; you can redistribute it and/or … … 204 204 //============================================================================= 205 205 // 206 // Revision 1.8 2009/01/25 Lionel Debroux 207 // Changes by Romain Liévin and/or me for 64-bit compatibility. 208 // Adapt to new version display (revtools.h). 209 // 206 210 // Revision 1.7 2002/05/13 15:17:43 tnussb 207 // static allyheader information fixed (thanx to Sebastian again)211 // static header information fixed (thanx to Sebastian again) 208 212 // 209 213 // Revision 1.6 2002/05/13 14:09:56 tnussb -
trunk/tigcc/tools/packhead.h
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: packhead.h 5 5 * initial date: 14/08/2000 6 * author: thomas.nussbaumer@gmx.net 6 * author: thomas.nussbaumer@gmx.net 7 7 * description: header definition of compressed data 8 8 * … … 10 10 11 11 /* 12 This file is part of the TIGCC Tools Suite.12 This file is part of GCC4TI Tools. 13 13 14 14 This file is free software; you can redistribute it and/or … … 17 17 version 2.1 of the License, or (at your option) any later version. 18 18 19 As a special exception, UNMODIFIED copies of some TIGCC Tools Suite utilities 20 may also be redistributed or sold without source code, for any purpose. (The 21 Lesser General Public License restrictions do apply in other respects; for 22 example, they cover modification of the program.) Please refer to the main 23 source file for the individual utility as to whether this is the case for a 24 particular tool. This exception notice must be removed on modified copies of 25 this file. 19 As a special exception, UNMODIFIED copies of ttbin2oth may also be 20 redistributed or sold without source code, for any purpose. (The Lesser 21 General Public License restrictions do apply in other respects; for example, 22 they cover modification of the program.) This exception notice must be 23 removed on modified copies of this file. 26 24 27 25 This program is distributed in the hope that it will be useful, … … 44 42 #define MAX_RLE_ENTRIES 31 45 43 46 // size = 16 bytes 44 // size = 16 bytes 47 45 typedef struct { 48 46 unsigned char origsize_lo; // original size lowbyte … … 69 67 70 68 71 typedef struct { 69 typedef struct { 72 70 unsigned char value[MAX_RLE_ENTRIES]; 73 71 } RLEEntries; … … 94 92 // initial version 95 93 // 96 // 94 // -
trunk/tigcc/tools/revtools.h
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite4 * file name: ttversion.h5 * initial date: 13/08/20003 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 * file name: revtools.h 5 * initial date: 23/08/2000 6 6 * author: thomas.nussbaumer@gmx.net 7 * description: TIGCC Tools Suite version definitions 7 * description: macros for automatic handling of version number output 8 * 9 * examine one of the pctools source codes to see how it works ;-) 8 10 * 9 11 ******************************************************************************/ 10 12 11 13 /* 12 This file is part of the TIGCC Tools Suite.14 This file is part of GCC4TI Tools. 13 15 14 16 This file is free software; you can redistribute it and/or … … 17 19 version 2.1 of the License, or (at your option) any later version. 18 20 19 As a special exception, UNMODIFIED copies of some TIGCC Tools Suite utilities 20 may also be redistributed or sold without source code, for any purpose. (The 21 Lesser General Public License restrictions do apply in other respects; for 22 example, they cover modification of the program.) Please refer to the main 23 source file for the individual utility as to whether this is the case for a 24 particular tool. This exception notice must be removed on modified copies of 25 this file. 21 As a special exception, UNMODIFIED copies of revtools may also be 22 redistributed or sold without source code, for any purpose. (The Lesser 23 General Public License restrictions do apply in other respects; for example, 24 they cover modification of the program.) This exception notice must be 25 removed on modified copies of this file. 26 26 27 27 This program is distributed in the hope that it will be useful, … … 35 35 */ 36 36 37 #ifndef __ TTVERSION_H__38 #define __ TTVERSION_H__37 #ifndef __REV_TOOLS_H__ 38 #define __REV_TOOLS_H__ 39 39 40 #define TTV_MAIN "1.31" 41 #define TTV_SUB "" 42 #define USAGE_OUT stdout 40 #include <stdio.h> 41 42 #define PRINT_ID(name) {fprintf(stdout,"\n");fprintf(stdout, name" ");\ 43 fprintf(stdout,FILE_REVISION);\ 44 fprintf(stdout," - GCC4TI Tools v"TTV_MAIN TTV_SUB"\n" \ 45 "(c) thomas.nussbaumer@gmx.net "__DATE__" "__TIME__"\n\n");} 46 47 43 48 44 49 #endif … … 47 52 //###################### NO MORE FAKES BEYOND THIS LINE ####################### 48 53 //############################################################################# 49 // no revision history for this file (should clear what changes, isn't it?) -
trunk/tigcc/tools/strhead.h
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: strhead.h 5 5 * initial date: 13/08/2000 6 * author: thomas.nussbaumer@gmx.net 6 * author: thomas.nussbaumer@gmx.net 7 7 * description: header structure of a TI string or OTH variable stored on 8 8 * the PC … … 11 11 12 12 /* 13 This file is part of ttbin2oth .13 This file is part of ttbin2oth, one of the GCC4TI Tools. 14 14 15 15 This file is free software; you can redistribute it and/or -
trunk/tigcc/tools/tt.h
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: tt.h 5 5 * initial date: 13/08/2000 6 * author: thomas.nussbaumer@gmx.net 7 * description: generic definitions for TIGCC Tools Suite6 * author: thomas.nussbaumer@gmx.net 7 * description: generic definitions for GCC4TI Tools 8 8 * 9 9 ******************************************************************************/ 10 10 11 11 /* 12 This file is part of the TIGCC Tools Suite.12 This file is part of GCC4TI Tools. 13 13 14 14 This file is free software; you can redistribute it and/or … … 17 17 version 2.1 of the License, or (at your option) any later version. 18 18 19 As a special exception, UNMODIFIED copies of some TIGCC Tools Suite utilities 20 may also be redistributed or sold without source code, for any purpose. (The 21 Lesser General Public License restrictions do apply in other respects; for 22 example, they cover modification of the program.) Please refer to the main 23 source file for the individual utility as to whether this is the case for a 24 particular tool. This exception notice must be removed on modified copies of 25 this file. 19 As a special exception, UNMODIFIED copies of the GCC4TI Tools may also be 20 redistributed or sold without source code, for any purpose. (The Lesser 21 General Public License restrictions do apply in other respects; for example, 22 they cover modification of the program.) This exception notice must be 23 removed on modified copies of this file. 26 24 27 25 This program is distributed in the hope that it will be useful, … … 42 40 43 41 #define SIGNATURE_TI89 "**TI89**" 44 #define SIGNATURE_TI92P "**TI92P*" 42 #define SIGNATURE_TI92P "**TI92P*" 45 43 46 44 #define DEFAULT_FOLDER "main" -
trunk/tigcc/tools/ttbin2oth.c
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: ttbin2oth.c 5 5 * initial date: 14/08/2000 … … 10 10 11 11 /* 12 This file is part of ttbin2oth.12 This file is part of GCC4TI Tools. 13 13 14 14 This file is free software; you can redistribute it and/or … … 50 50 #include "strhead.h" 51 51 52 #ifdef CVS_FILE_REVISION 53 #undef CVS_FILE_REVISION 54 #endif 55 //----------------------------------------------------------------------------- 56 // DON'T EDIT THE NEXT REVISION BY HAND! THIS IS DONE AUTOMATICALLY BY THE 57 // CVS SYSTEM !!! 58 //----------------------------------------------------------------------------- 59 #define CVS_FILE_REVISION "$Revision$" 52 #ifdef FILE_REVISION 53 #undef FILE_REVISION 54 #endif 55 #define FILE_REVISION "1.11" 60 56 61 57 … … 251 247 //============================================================================= 252 248 // 253 // Revision 1.10 2002/05/07 16:33:46 tnussb 249 // Revision 1.11 2009/01/25 Lionel Debroux 250 // Changes by Romain Liévin and/or me for 64-bit compatibility. 251 // Adapt to new version display (revtools.h). 252 // 253 // Revision 1.10 2002/05/07 16:33:46 tnussb 254 254 // generic commit 255 255 // -
trunk/tigcc/tools/ttpack.c
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: ttpack.c 5 5 * initial date: 14/08/2000 … … 10 10 * ----------------------------------------------------------------------------- 11 11 * 12 * based on code from Pasi 'Albert' Ojala, albert@cs.tut.fi 12 * Packing program using the PuCrunch algorithm. 13 * Based on code from Pasi 'Albert' Ojala, albert@cs.tut.fi 14 * Heavily reduced to fit to the needs by thomas.nussbaumer@gmx.net 13 15 * Pucrunch 1997-2005 by Pasi 'Albert' Ojala, a1bert@iki.fi 16 * See http://www.cs.tut.fi/~albert/Dev/pucrunch/ for details on the used algorithm 14 17 * Pucrunch is under GNU LGPL: 15 18 * See http://creativecommons.org/licenses/LGPL/2.1/ or 16 19 * http://www.gnu.org/copyleft/lesser.html 20 * 17 21 * 18 22 * The decompression code is distributed under the … … 21 25 * 22 26 * In short: binary version of the decompression code can 23 * accompany the compressed data or used in decompression27 * accompany the compressed data or be used in decompression 24 28 * programs. 25 *26 * heavily reduced to fit to the needs by thomas.nussbaumer@gmx.net27 *28 29 ******************************************************************************/ 29 30 … … 44 45 45 46 #include "tt.h" // generic defines 46 #include "ttversion.h" // tigcc tools suiteversion info47 #include "ttversion.h" // GCC4TI Tools version info 47 48 #include "revtools.h" // used for id displaying 48 49 #include "packhead.h" // compressed header definition 49 50 50 #ifdef CVS_FILE_REVISION51 #undef CVS_FILE_REVISION51 #ifdef FILE_REVISION 52 #undef FILE_REVISION 52 53 #endif 53 //----------------------------------------------------------------------------- 54 // DON'T EDIT THE NEXT REVISION BY HAND! THIS IS DONE AUTOMATICALLY BY THE 55 // CVS SYSTEM !!! 56 //----------------------------------------------------------------------------- 57 #define CVS_FILE_REVISION "$Revision$" 54 #define FILE_REVISION "1.9" 58 55 59 56 //============================================================================= … … 255 252 if (flags & F_TEXTOUTPUT) { 256 253 unsigned int loop; 257 unsigned int written =0;258 for (i=0;i< sizeof(PackedHeader);i++,written++) {254 unsigned int written = 0; 255 for (i=0;i<(int)sizeof(PackedHeader);i++,written++) { 259 256 fprintf(fp,"0x%02x,",*(((unsigned char*)&cth)+i)); 260 257 if ((!(written % DEFAULT_ITEMS_PER_LINE)) && written) fputc('\n',fp); … … 264 261 if (!(written % DEFAULT_ITEMS_PER_LINE)) fputc('\n',fp); 265 262 } 266 for (loop=0;loop < size;loop++,written++) {267 if (loop < size - 1) fprintf(fp,"0x%02x,",data[loop]);263 for (loop=0;loop < (unsigned int)size;loop++,written++) { 264 if (loop < (unsigned int)size - 1) fprintf(fp,"0x%02x,",data[loop]); 268 265 else fprintf(fp,"0x%02x",data[loop]); 269 266 if (!(written % DEFAULT_ITEMS_PER_LINE)) fputc('\n',fp); … … 2196 2193 //============================================================================= 2197 2194 // 2195 // Revision 1.9 2009/01/25 Lionel Debroux 2196 // Changes by Romain Liévin and/or me for 64-bit compatibility. 2197 // Adapt to new version display (revtools.h). 2198 // 2198 2199 // Revision 1.8 2002/03/14 10:47:41 tnussb 2199 2200 // (1) new flag "-quiet" added (suppress standard messages) -
trunk/tigcc/tools/ttstrip.c
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: ttstrip.c 5 5 * initial date: 13/08/2000 … … 10 10 11 11 /* 12 This file is part of ttstrip.12 This file is part of GCC4TI Tools. 13 13 14 14 This file is free software; you can redistribute it and/or … … 48 48 #include "tt.h" 49 49 50 #ifdef CVS_FILE_REVISION 51 #undef CVS_FILE_REVISION 52 #endif 53 //----------------------------------------------------------------------------- 54 // DON'T EDIT THE NEXT REVISION BY HAND! THIS IS DONE AUTOMATICALLY BY THE 55 // CVS SYSTEM !!! 56 //----------------------------------------------------------------------------- 57 #define CVS_FILE_REVISION "$Revision$" 50 #ifdef FILE_REVISION 51 #undef FILE_REVISION 52 #endif 53 #define FILE_REVISION "1.8" 58 54 59 55 … … 174 170 //============================================================================= 175 171 // 172 // Revision 1.8 2009/01/25 Lionel Debroux 173 // Changes by Romain Liévin and/or me for 64-bit compatibility. 174 // Adapt to new version display (revtools.h). 175 // 176 176 // Revision 1.7 2002/03/14 08:59:47 tnussb 177 177 // (1) new flag "-quiet" added (suppress standard messages) -
trunk/tigcc/tools/ttunpack.h
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite4 * file name: tt .h5 * initial date: 1 3/08/20006 * author: thomas.nussbaumer@gmx.net 7 * description: generic definitions for TIGCC Tools Suite8 * 3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 * file name: ttunpack.h 5 * initial date: 14/08/2000 6 * author: thomas.nussbaumer@gmx.net 7 * description: defines of errorcodes of decompression routine and its 8 * declaration 9 9 ******************************************************************************/ 10 10 11 11 /* 12 This file is part of the TIGCC Tools Suite.12 This file is part of GCC4TI Tools and ExtGraph. 13 13 14 14 This file is free software; you can redistribute it and/or … … 17 17 version 2.1 of the License, or (at your option) any later version. 18 18 19 As a special exception, UNMODIFIED copies of some TIGCC Tools Suite utilities 20 may also be redistributed or sold without source code, for any purpose. (The 21 Lesser General Public License restrictions do apply in other respects; for 22 example, they cover modification of the program.) Please refer to the main 23 source file for the individual utility as to whether this is the case for a 24 particular tool. This exception notice must be removed on modified copies of 25 this file. 19 As a special exception, UNMODIFIED copies of ttunpack may also be 20 redistributed or sold without source code, for any purpose. (The Lesser 21 General Public License restrictions do apply in other respects; for example, 22 they cover modification of the program.) This exception notice must be 23 removed on modified copies of this file. 26 24 27 25 This program is distributed in the hope that it will be useful, … … 35 33 */ 36 34 37 #ifndef __TT _H__38 #define __TT _H__35 #ifndef __TTUNPACK_H__ 36 #define __TTUNPACK_H__ 39 37 40 #define CALC_TI89 0 41 #define CALC_TI92P 1 38 #define ERRPCK_OKAY 0 39 #define ERRPCK_NOESCFOUND 248 40 #define ERRPCK_ESCBITS 249 41 #define ERRPCK_MAXGAMMA 250 42 #define ERRPCK_EXTRALZP 251 43 #define ERRPCK_NOMAGIC 252 44 #define ERRPCK_OUTBUFOVERRUN 253 45 #define ERRPCK_LZPOSUNDERRUN 254 42 46 43 #define SIGNATURE_TI89 "**TI89**" 44 #define SIGNATURE_TI92P "**TI92P*" 45 46 #define DEFAULT_FOLDER "main" 47 48 #define DEFAULT_ITEMS_PER_LINE 10 47 int _tt_Decompress(unsigned char *src, unsigned char *dest); 48 #define UnPack _tt_Decompress 49 49 50 50 #endif 51 51 52 52 53 //############################################################################# … … 58 59 //============================================================================= 59 60 // 60 // Revision 1. 3 2000/08/23 20:29:43Thomas Nussbaumer61 // added a 'P' to the TI92p definitions61 // Revision 1.2 2000/08/20 15:26:21 Thomas Nussbaumer 62 // prefix of unpack routine (_tt_) corrected 62 63 // 63 // Revision 1.2 2000/08/23 01:04:41 Thomas Nussbaumer 64 // corrected signature of TI92p 65 // 66 // Revision 1.1 2000/08/13 20:24:16 Thomas Nussbaumer 64 // Revision 1.1 2000/08/14 22:49:57 Thomas Nussbaumer 67 65 // initial version 68 66 // 69 67 // 70 //71 // -
trunk/tigcc/tools/ttversion.h
- Property svn:executable deleted
r1307 r1308 1 1 /****************************************************************************** 2 2 * 3 * project name: TIGCC Tools Suite3 * project name: GCC4TI Tools (formerly TIGCC Tools Suite) 4 4 * file name: ttversion.h 5 5 * initial date: 13/08/2000 6 6 * author: thomas.nussbaumer@gmx.net 7 * description: TIGCC Tools Suiteversion definitions7 * description: GCC4TI Tools (formerly TIGCC Tools Suite) version definitions 8 8 * 9 9 ******************************************************************************/ 10 10 11 11 /* 12 This file is part of the TIGCC Tools Suite.12 This file is part of GCC4TI Tools. 13 13 14 14 This file is free software; you can redistribute it and/or … … 17 17 version 2.1 of the License, or (at your option) any later version. 18 18 19 As a special exception, UNMODIFIED copies of some TIGCC Tools Suite utilities 20 may also be redistributed or sold without source code, for any purpose. (The 21 Lesser General Public License restrictions do apply in other respects; for 22 example, they cover modification of the program.) Please refer to the main 23 source file for the individual utility as to whether this is the case for a 24 particular tool. This exception notice must be removed on modified copies of 25 this file. 19 As a special exception, UNMODIFIED copies of ttbin2oth may also be 20 redistributed or sold without source code, for any purpose. (The Lesser 21 General Public License restrictions do apply in other respects; for example, 22 they cover modification of the program.) This exception notice must be 23 removed on modified copies of this file. 26 24 27 25 This program is distributed in the hope that it will be useful, … … 38 36 #define __TTVERSION_H__ 39 37 40 #define TTV_MAIN "1. 31"38 #define TTV_MAIN "1.40" 41 39 #define TTV_SUB "" 42 40 #define USAGE_OUT stdout
Note: See TracChangeset
for help on using the changeset viewer.
