home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / DIFFPT.ZIP / CONFIG.H next >
C/C++ Source or Header  |  1991-07-01  |  4KB  |  124 lines

  1. /* config.h
  2.  * This file was produced by running the config.h.SH script, which
  3.  * gets its values from config.sh, which is generally produced by
  4.  * running Configure.
  5.  *
  6.  * Feel free to modify any of this as the need arises.  Note, however,
  7.  * that running config.h.SH again will wipe out any changes you've made.
  8.  * For a more permanent change edit config.sh and rerun config.h.SH.
  9.  */
  10.  
  11.  
  12. /* EUNICE:
  13.  *    This symbol, if defined, indicates that the program is being compiled
  14.  *    under the EUNICE package under VMS.  The program will need to handle
  15.  *    things like files that don't go away the first time you unlink them,
  16.  *    due to version numbering.  It will also need to compensate for lack
  17.  *    of a respectable link() command.
  18.  */
  19. /* VMS:
  20.  *    This symbol, if defined, indicates that the program is running under
  21.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  22.  */
  23. #/*undef    EUNICE        /**/
  24. #/*undef    VMS        /**/
  25.  
  26. /* CPPSTDIN:
  27.  *    This symbol contains the first part of the string which will invoke
  28.  *    the C preprocessor on the standard input and produce to standard
  29.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  30.  */
  31. /* CPPMINUS:
  32.  *    This symbol contains the second part of the string which will invoke
  33.  *    the C preprocessor on the standard input and produce to standard
  34.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  35.  *    to specify standard input, otherwise the value is "".
  36.  */
  37. #define CPPSTDIN "/usr/lib/cpp"
  38. #define CPPMINUS ""
  39.  
  40. /* CHARSPRINTF:
  41.  *    This symbol is defined if this system declares "char *sprintf()" in
  42.  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  43.  *    is up to the package author to declare sprintf correctly based on the
  44.  *    symbol.
  45.  */
  46. /*#define    CHARSPRINTF     /**/
  47.  
  48. /* FLEXFILENAMES:
  49.  *    This symbol, if defined, indicates that the system supports filenames
  50.  *    longer than 14 characters.
  51.  */
  52. #define    FLEXFILENAMES        /**/
  53.  
  54. /* index:
  55.  *    This preprocessor symbol is defined, along with rindex, if the system
  56.  *    uses the strchr and strrchr routines instead.
  57.  */
  58. /* rindex:
  59.  *    This preprocessor symbol is defined, along with index, if the system
  60.  *    uses the strchr and strrchr routines instead.
  61.  */
  62. #define    index strchr    /* cultural */
  63. #define    rindex strrchr    /*  differences? */
  64.  
  65. /* VOIDSIG:
  66.  *    This symbol is defined if this system declares "void (*signal())()" in
  67.  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  68.  *    is up to the package author to declare things correctly based on the
  69.  *    symbol.
  70.  */
  71. #define    VOIDSIG     /**/
  72.  
  73. /* Reg1:
  74.  *    This symbol, along with Reg2, Reg3, etc. is either the word "register"
  75.  *    or null, depending on whether the C compiler pays attention to this
  76.  *    many register declarations.  The intent is that you don't have to
  77.  *    order your register declarations in the order of importance, so you
  78.  *    can freely declare register variables in sub-blocks of code and as
  79.  *    function parameters.  Do not use Reg<n> more than once per routine.
  80.  */
  81.  
  82. #define Reg1 register        /**/
  83. #define Reg2 register        /**/
  84. #define Reg3 /* register        /**/
  85. #define Reg4 /* register        /**/
  86. #define Reg5 /* register        /**/
  87. #define Reg6 /* register        /**/
  88. #define Reg7         /**/
  89. #define Reg8         /**/
  90. #define Reg9         /**/
  91. #define Reg10         /**/
  92. #define Reg11         /**/
  93. #define Reg12         /**/
  94. #define Reg13         /**/
  95. #define Reg14         /**/
  96. #define Reg15         /**/
  97. #define Reg16         /**/
  98.  
  99. /* VOIDFLAGS:
  100.  *    This symbol indicates how much support of the void type is given by this
  101.  *    compiler.  What various bits mean:
  102.  *
  103.  *        1 = supports declaration of void
  104.  *        2 = supports arrays of pointers to functions returning void
  105.  *        4 = supports comparisons between pointers to void functions and
  106.  *            addresses of void functions
  107.  *
  108.  *    The package designer should define VOIDUSED to indicate the requirements
  109.  *    of the package.  This can be done either by #defining VOIDUSED before
  110.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  111.  *    level of void support necessary is not present, defines void to int.
  112.  */
  113.  
  114. #ifndef VOIDUSED
  115. #define VOIDUSED 7
  116. #endif
  117.  
  118. #define VOIDFLAGS 7
  119.  
  120. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  121. #define void int        /* is void to be avoided? */
  122. #define M_VOID        /* Xenix strikes again */
  123. #endif
  124.