Ignore:
Timestamp:
01/25/09 17:20:17 (3 years ago)
Author:
debrouxl
Message:

Import GCC4TI Tools (formerly pctools of the TIGCC Tools Suite) with build scripts and preliminary Makefile (which always recompiles everything).
Remove the standalone ttpack + dependencies.

Location:
trunk/tigcc/tools
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/tigcc/tools/ttpack.c

    • Property svn:executable deleted
    r1307 r1308  
    11/****************************************************************************** 
    22* 
    3 * project name:    TIGCC Tools Suite 
     3* project name:    GCC4TI Tools (formerly TIGCC Tools Suite) 
    44* file name:       ttpack.c 
    55* initial date:    14/08/2000 
     
    1010* ----------------------------------------------------------------------------- 
    1111* 
    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 
    1315* 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 
    1417* Pucrunch is under GNU LGPL: 
    1518*  See http://creativecommons.org/licenses/LGPL/2.1/ or 
    1619*      http://www.gnu.org/copyleft/lesser.html 
     20* 
    1721* 
    1822*  The decompression code is distributed under the 
     
    2125* 
    2226*  In short: binary version of the decompression code can 
    23 *  accompany the compressed data or used in decompression 
     27*  accompany the compressed data or be used in decompression 
    2428*  programs. 
    25 * 
    26 * heavily reduced to fit to the needs by thomas.nussbaumer@gmx.net 
    27 * 
    2829******************************************************************************/ 
    2930 
     
    4445 
    4546#include "tt.h"          // generic defines 
    46 #include "ttversion.h"   // tigcc tools suite version info 
     47#include "ttversion.h"   // GCC4TI Tools version info 
    4748#include "revtools.h"    // used for id displaying 
    4849#include "packhead.h"    // compressed header definition 
    4950 
    50 #ifdef CVS_FILE_REVISION 
    51 #undef CVS_FILE_REVISION 
     51#ifdef FILE_REVISION 
     52#undef FILE_REVISION 
    5253#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" 
    5855 
    5956//============================================================================= 
     
    255252            if (flags & F_TEXTOUTPUT) { 
    256253                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++) { 
    259256                    fprintf(fp,"0x%02x,",*(((unsigned char*)&cth)+i)); 
    260257                    if ((!(written % DEFAULT_ITEMS_PER_LINE)) && written) fputc('\n',fp); 
     
    264261                    if (!(written % DEFAULT_ITEMS_PER_LINE)) fputc('\n',fp); 
    265262                } 
    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]); 
    268265                    else                  fprintf(fp,"0x%02x",data[loop]); 
    269266                    if (!(written % DEFAULT_ITEMS_PER_LINE)) fputc('\n',fp); 
     
    21962193//============================================================================= 
    21972194// 
     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// 
    21982199// Revision 1.8  2002/03/14 10:47:41  tnussb 
    21992200// (1) new flag "-quiet" added (suppress standard messages) 
Note: See TracChangeset for help on using the changeset viewer.