home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
ZCPP_JAE
/
CHANGES.GCG
< prev
next >
Wrap
Text File
|
1991-04-29
|
2KB
|
63 lines
This file describes the changes that I made to the Texas
Instruments/Decus C Pre-Processor (CPP) to port it to Zortech C++ (DOS
Version 2.18).
* Added support of ``void'' as a basic data type. This was required mostly
because many of the Zortech header files do something like,
#if sizeof (void *) == sizeof (long)
/* ... */
I implemented this modification such that sizeof(void) is an error.
* The addition of the void type required that CPP's S* option take
another argument. The S* option is used to specify the size of pointers
to basic data types for CPP to use. [This feature is a real blessing
for MSDOS compilers with their model mania.] The arguments to the S*
option were the sizes of,
char *, short *, int *, long *, float *, double *, (*)()
Now the arguments are sizes of,
char *, short *, int *, long *, float *, double *, (*)(), void *
The order of these argument MUST be exact. See the cpp.mem file for more
discussion of the S* option.
Inclusion of the void data type may be controlled using the SUPPORT_VOID
define. If SUPPORT_VOID is undefined when CPP is made, then the void
type will not be included. The file makefile.ztc creates cpp.exe with
SUPPORT_VOID defined.
* Added the OK_STDC define. By default CPP defines __STDC__. Although
Zortech C++ operates correctly with __STDC__ defined, it does take some of
the compiler's extension out of play (particularly the __handle pointer type).
The OK_STDC define defaults to TRUE. This means that __STDC__ is
defined by default. However, if the OK_STDC default is overridden by a
FALSE value, then CPP will not define __STDC__. The file makefile.ztc
creates cpp.exe with OK_STDC set FALSE.
* Fixed bug in defpackage.c (defpacka.c in DOS). Line 521 was,
for(pkg=package_list; pkg=NULL; pkg=pkg->next)
and was changed to,
for(pkg=package_list; pkg!=NULL; pkg=pkg->next)
Guy C. Gallant
gcg@aplcomm.jhuapl.edu (128.244.194.100)
The Johns Hopkins University
Applied Physics Laboratory
Johns Hopkins Road
Laurel, MD. 20723
(301) 953-5000