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 >
Text File  |  1991-04-29  |  2KB  |  63 lines

  1. This file describes the changes that I made to the Texas
  2. Instruments/Decus C Pre-Processor (CPP) to port it to Zortech C++ (DOS
  3. Version 2.18).
  4.  
  5. *   Added support of ``void'' as a basic data type.  This was required mostly
  6. because many of the Zortech header files do something like,
  7.  
  8.     #if sizeof (void *) == sizeof (long)
  9.     /* ... */
  10.  
  11. I implemented this modification such that sizeof(void) is an error.
  12.  
  13.  
  14. *   The addition of the void type required that CPP's S* option take
  15. another argument.  The S* option is used to specify the size of pointers
  16. to basic data types for CPP to use.  [This feature is a real blessing
  17. for MSDOS compilers with their model mania.]  The arguments to the S*
  18. option were the sizes of,
  19.  
  20.     char *, short *, int *, long *, float *, double *, (*)()
  21.  
  22. Now the arguments are sizes of,
  23.  
  24.     char *, short *, int *, long *, float *, double *, (*)(), void *
  25.  
  26. The order of these argument MUST be exact.  See the cpp.mem file for more
  27. discussion of the S* option.
  28.  
  29. Inclusion of the void data type may be controlled using the SUPPORT_VOID
  30. define.  If SUPPORT_VOID is undefined when CPP is made, then the void
  31. type will not be included.  The file makefile.ztc creates cpp.exe with
  32. SUPPORT_VOID defined.
  33.  
  34.  
  35. *   Added the OK_STDC define.  By default CPP defines __STDC__.  Although
  36. Zortech C++ operates correctly with __STDC__ defined, it does take some of
  37. the compiler's extension out of play (particularly the __handle pointer type).
  38. The OK_STDC define defaults to TRUE.  This means that __STDC__ is
  39. defined by default.  However, if the OK_STDC default is overridden by a
  40. FALSE value, then CPP will not define __STDC__.  The file makefile.ztc
  41. creates cpp.exe with OK_STDC set FALSE.
  42.  
  43.  
  44. *   Fixed bug in defpackage.c (defpacka.c in DOS).  Line 521 was,
  45.  
  46.         for(pkg=package_list; pkg=NULL; pkg=pkg->next)
  47.  
  48. and was changed to,
  49.  
  50.         for(pkg=package_list; pkg!=NULL; pkg=pkg->next)
  51.  
  52.  
  53.  
  54.  
  55. Guy C. Gallant
  56. gcg@aplcomm.jhuapl.edu  (128.244.194.100)
  57. The Johns Hopkins University
  58. Applied Physics Laboratory
  59. Johns Hopkins Road
  60. Laurel, MD. 20723
  61. (301) 953-5000
  62.  
  63.