home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
GNUFIX.ZIP
/
GNU.DOC
< prev
next >
Wrap
Text File
|
1992-08-03
|
2KB
|
65 lines
August 3, 1992
This is a collection of "hacks" that modify your TOOLKT20 header files
to allow you to use the GNU C/C++ compiler and the IBM C Set/2 compiler
with a single copy of the headers.
This is only interesting to those who downloaded GCC 2.1 from Compuserve's
OS2DEV forum in recent months. That distribution came with outdated header
files.
Since the TOOLKT20 headers may be subject to upgrades by IBM it makes no
sense to manually alter them, plus it would be very tedious.
To facilitate the alterations two custom programs are used.
uncomm.exe - removes comments from the headers
gnufix.exe - applies the needed changes
These are "HARD CODED" programs and are inflexible. Both take arguments
in the form:
??.exe -i <inputfile> -o <outputfile>
The source code is include for reference only, since custom library
functions are not supplied. If your version of the TOOLKIT is not compatible
with these programs you may be able to hack some stuff out of the sources
provided.
The programs supplied:
UNCOMM.EXE
This is a general purpose program that removes C/C++ comments from
a source file.
GNUFIX.EXE
This is the program that scans the headers and replaces appropriate
occurences of the following:
APIENTRY - with APIENTRY_FUNC()
EXPENTRY - with EXPENTRY_FUNC()
In OS2DEF.H look up the definitions for ?_FUNC() and you'll see why this
is done.
PATCH.EXE
This is a port of Larry Wall's Unix patch to OS/2.
GNU.CMD
The command file that supposed to automate the change process.
**************** LEGAL MUMBO-JUMBO ******************
THE 'GNU.CMD', 'GNUFIX.*', 'UNCOMM.*', 'UXPATCH.EXE' FILES ARE
FREE SOFTWARE AND AS SUCH COME WITH NO WARRANTY NOT EVEN FOR MERCHANTABILITY
OR FITNESS FOR A PARTICULAR PURPOSE.
THE '*.DIF' FILES ARE COPYRIGHT (C) IBM CORP. AND SHOULD BE USED ONLY IF YOU
HAVE A VALID LICENSE FOR THE OS/2 TOOLKIT.