home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUFIX.ZIP / GNU.DOC < prev    next >
Text File  |  1992-08-03  |  2KB  |  65 lines

  1. August 3, 1992
  2.  
  3. This is a collection of "hacks" that modify your TOOLKT20 header files
  4. to allow you to use the GNU C/C++ compiler and the IBM C Set/2 compiler
  5. with a single copy of the headers.
  6.  
  7. This is only interesting to those who downloaded GCC 2.1 from Compuserve's
  8. OS2DEV forum in recent months. That distribution came with outdated header
  9. files.
  10.  
  11. Since the TOOLKT20 headers may be subject to upgrades by IBM it makes no
  12. sense to manually alter them, plus it would be very tedious.
  13.  
  14. To facilitate the alterations two custom programs are used.
  15.  
  16.    uncomm.exe  - removes comments from the headers
  17.    gnufix.exe  - applies the needed changes
  18.  
  19. These are "HARD CODED" programs and are inflexible. Both take arguments
  20. in the form:
  21.  
  22.    ??.exe -i <inputfile> -o <outputfile>
  23.  
  24. The source code is include for reference only, since custom library
  25. functions are not supplied. If your version of the TOOLKIT is not compatible
  26. with these programs you may be able to hack some stuff out of the sources
  27. provided.
  28.  
  29.  
  30. The programs supplied:
  31.  
  32. UNCOMM.EXE
  33.  
  34.       This is a general purpose program that removes C/C++ comments from
  35.       a source file.
  36.  
  37. GNUFIX.EXE
  38.  
  39.       This is the program that scans the headers and replaces appropriate
  40.       occurences of the following:
  41.  
  42.             APIENTRY    - with APIENTRY_FUNC()
  43.             EXPENTRY    - with EXPENTRY_FUNC()
  44.  
  45.       In OS2DEF.H look up the definitions for ?_FUNC() and you'll see why this
  46.       is done.
  47.  
  48. PATCH.EXE
  49.  
  50.       This is a port of Larry Wall's Unix patch to OS/2.
  51.  
  52. GNU.CMD
  53.  
  54.       The command file that supposed to automate the change process.
  55.  
  56.  
  57.           **************** LEGAL MUMBO-JUMBO ******************
  58.  
  59. THE 'GNU.CMD', 'GNUFIX.*', 'UNCOMM.*', 'UXPATCH.EXE' FILES ARE 
  60. FREE SOFTWARE AND AS SUCH COME WITH NO WARRANTY NOT EVEN FOR MERCHANTABILITY
  61. OR FITNESS FOR A PARTICULAR PURPOSE.
  62.  
  63. THE '*.DIF' FILES ARE COPYRIGHT (C) IBM CORP. AND SHOULD BE USED ONLY IF YOU
  64. HAVE A VALID LICENSE FOR THE OS/2 TOOLKIT.
  65.