Changeset 1308


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
Files:
27 added
2 deleted
2 copied
9 moved

Legend:

Unmodified
Added
Removed
  • trunk/tigcc/tools/bin2oth.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:       bin2oth.c 
    55* initial date:    22/08/2000 
     
    1616 
    1717/* 
    18   This file is part of ttbin2oth. 
     18  This file is part of ttbin2oth, one of the GCC4TI Tools. 
    1919 
    2020  This file is free software; you can redistribute it and/or 
     
    204204//============================================================================= 
    205205// 
     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// 
    206210// Revision 1.7  2002/05/13 15:17:43  tnussb 
    207 // statically header information fixed (thanx to Sebastian again) 
     211// static header information fixed (thanx to Sebastian again) 
    208212// 
    209213// Revision 1.6  2002/05/13 14:09:56  tnussb 
  • trunk/tigcc/tools/packhead.h

    • 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:       packhead.h 
    55* initial date:    14/08/2000 
    6 * author:          thomas.nussbaumer@gmx.net  
     6* author:          thomas.nussbaumer@gmx.net 
    77* description:     header definition of compressed data 
    88* 
     
    1010 
    1111/* 
    12   This file is part of the TIGCC Tools Suite. 
     12  This file is part of GCC4TI Tools. 
    1313 
    1414  This file is free software; you can redistribute it and/or 
     
    1717  version 2.1 of the License, or (at your option) any later version. 
    1818 
    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. 
    2624 
    2725  This program is distributed in the hope that it will be useful, 
     
    4442#define MAX_RLE_ENTRIES 31 
    4543 
    46 // size = 16 bytes  
     44// size = 16 bytes 
    4745typedef struct { 
    4846    unsigned char origsize_lo; // original size lowbyte 
     
    6967 
    7068 
    71 typedef struct {  
     69typedef struct { 
    7270    unsigned char value[MAX_RLE_ENTRIES]; 
    7371} RLEEntries; 
     
    9492// initial version 
    9593// 
    96 //  
     94// 
  • trunk/tigcc/tools/revtools.h

    • Property svn:executable deleted
    r1307 r1308  
    11/****************************************************************************** 
    22* 
    3 * project name:    TIGCC Tools Suite 
    4 * file name:       ttversion.h 
    5 * initial date:    13/08/2000 
     3* project name:    GCC4TI Tools (formerly TIGCC Tools Suite) 
     4* file name:       revtools.h 
     5* initial date:    23/08/2000 
    66* 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 ;-) 
    810* 
    911******************************************************************************/ 
    1012 
    1113/* 
    12   This file is part of the TIGCC Tools Suite. 
     14  This file is part of GCC4TI Tools. 
    1315 
    1416  This file is free software; you can redistribute it and/or 
     
    1719  version 2.1 of the License, or (at your option) any later version. 
    1820 
    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. 
    2626 
    2727  This program is distributed in the hope that it will be useful, 
     
    3535*/ 
    3636 
    37 #ifndef __TTVERSION_H__ 
    38 #define __TTVERSION_H__ 
     37#ifndef __REV_TOOLS_H__ 
     38#define __REV_TOOLS_H__ 
    3939 
    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 
    4348 
    4449#endif 
     
    4752//###################### NO MORE FAKES BEYOND THIS LINE ####################### 
    4853//############################################################################# 
    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  
    11/****************************************************************************** 
    22* 
    3 * project name:    TIGCC Tools Suite  
     3* project name:    GCC4TI Tools (formerly TIGCC Tools Suite) 
    44* file name:       strhead.h 
    55* initial date:    13/08/2000 
    6 * author:          thomas.nussbaumer@gmx.net  
     6* author:          thomas.nussbaumer@gmx.net 
    77* description:     header structure of a TI string or OTH variable stored on 
    88*                  the PC 
     
    1111 
    1212/* 
    13   This file is part of ttbin2oth. 
     13  This file is part of ttbin2oth, one of the GCC4TI Tools. 
    1414 
    1515  This file is free software; you can redistribute it and/or 
  • trunk/tigcc/tools/tt.h

    • 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:       tt.h 
    55* initial date:    13/08/2000 
    6 * author:          thomas.nussbaumer@gmx.net  
    7 * description:     generic definitions for TIGCC Tools Suite 
     6* author:          thomas.nussbaumer@gmx.net 
     7* description:     generic definitions for GCC4TI Tools 
    88* 
    99******************************************************************************/ 
    1010 
    1111/* 
    12   This file is part of the TIGCC Tools Suite. 
     12  This file is part of GCC4TI Tools. 
    1313 
    1414  This file is free software; you can redistribute it and/or 
     
    1717  version 2.1 of the License, or (at your option) any later version. 
    1818 
    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. 
    2624 
    2725  This program is distributed in the hope that it will be useful, 
     
    4240 
    4341#define SIGNATURE_TI89   "**TI89**" 
    44 #define SIGNATURE_TI92P  "**TI92P*"  
     42#define SIGNATURE_TI92P  "**TI92P*" 
    4543 
    4644#define DEFAULT_FOLDER   "main" 
  • trunk/tigcc/tools/ttbin2oth.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:       ttbin2oth.c 
    55* initial date:    14/08/2000 
     
    1010 
    1111/* 
    12   This file is part of ttbin2oth. 
     12  This file is part of GCC4TI Tools. 
    1313 
    1414  This file is free software; you can redistribute it and/or 
     
    5050#include "strhead.h" 
    5151 
    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" 
    6056 
    6157 
     
    251247//============================================================================= 
    252248// 
    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 
    254254// generic commit 
    255255// 
  • 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) 
  • trunk/tigcc/tools/ttstrip.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:       ttstrip.c 
    55* initial date:    13/08/2000 
     
    1010 
    1111/* 
    12   This file is part of ttstrip. 
     12  This file is part of GCC4TI Tools. 
    1313 
    1414  This file is free software; you can redistribute it and/or 
     
    4848#include "tt.h" 
    4949 
    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" 
    5854 
    5955 
     
    174170//============================================================================= 
    175171// 
     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// 
    176176// Revision 1.7  2002/03/14 08:59:47  tnussb 
    177177// (1) new flag "-quiet" added (suppress standard messages) 
  • trunk/tigcc/tools/ttunpack.h

    • Property svn:executable deleted
    r1307 r1308  
    11/****************************************************************************** 
    22* 
    3 * project name:    TIGCC Tools Suite  
    4 * file name:       tt.h 
    5 * initial date:    13/08/2000 
    6 * author:          thomas.nussbaumer@gmx.net  
    7 * description:     generic definitions for TIGCC Tools Suite 
    8 * 
     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 
    99******************************************************************************/ 
    1010 
    1111/* 
    12   This file is part of the TIGCC Tools Suite. 
     12  This file is part of GCC4TI Tools and ExtGraph. 
    1313 
    1414  This file is free software; you can redistribute it and/or 
     
    1717  version 2.1 of the License, or (at your option) any later version. 
    1818 
    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. 
    2624 
    2725  This program is distributed in the hope that it will be useful, 
     
    3533*/ 
    3634 
    37 #ifndef __TT_H__ 
    38 #define __TT_H__ 
     35#ifndef __TTUNPACK_H__ 
     36#define __TTUNPACK_H__ 
    3937 
    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 
    4246 
    43 #define SIGNATURE_TI89   "**TI89**" 
    44 #define SIGNATURE_TI92P  "**TI92P*"  
    45  
    46 #define DEFAULT_FOLDER   "main" 
    47  
    48 #define DEFAULT_ITEMS_PER_LINE  10 
     47int _tt_Decompress(unsigned char *src, unsigned char *dest); 
     48#define UnPack _tt_Decompress 
    4949 
    5050#endif 
     51 
    5152 
    5253//############################################################################# 
     
    5859//============================================================================= 
    5960// 
    60 // Revision 1.3  2000/08/23 20:29:43  Thomas Nussbaumer 
    61 // added a 'P' to the TI92p definitions 
     61// Revision 1.2  2000/08/20 15:26:21  Thomas Nussbaumer 
     62// prefix of unpack routine (_tt_) corrected 
    6263// 
    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 
    6765// initial version 
    6866// 
    6967// 
    70 // 
    71 // 
  • trunk/tigcc/tools/ttversion.h

    • 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:       ttversion.h 
    55* initial date:    13/08/2000 
    66* author:          thomas.nussbaumer@gmx.net 
    7 * description:     TIGCC Tools Suite version definitions 
     7* description:     GCC4TI Tools (formerly TIGCC Tools Suite) version definitions 
    88* 
    99******************************************************************************/ 
    1010 
    1111/* 
    12   This file is part of the TIGCC Tools Suite. 
     12  This file is part of GCC4TI Tools. 
    1313 
    1414  This file is free software; you can redistribute it and/or 
     
    1717  version 2.1 of the License, or (at your option) any later version. 
    1818 
    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. 
    2624 
    2725  This program is distributed in the hope that it will be useful, 
     
    3836#define __TTVERSION_H__ 
    3937 
    40 #define TTV_MAIN   "1.31" 
     38#define TTV_MAIN   "1.40" 
    4139#define TTV_SUB    "" 
    4240#define USAGE_OUT  stdout 
Note: See TracChangeset for help on using the changeset viewer.