[BACK]Return to config.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / patch

Annotation of src/usr.bin/patch/config.h, Revision 1.3

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