Changeset 1308 for trunk/tigcc/tools/ttpack.c
- Timestamp:
- 01/25/09 17:20:17 (3 years ago)
- Location:
- trunk/tigcc/tools
- Files:
-
- 1 added
- 1 moved
-
. (added)
-
ttpack.c (moved) (moved from trunk/tigcc/ttpack/ttpack.c) (7 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
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)
Note: See TracChangeset
for help on using the changeset viewer.
