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