home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / c / c2man-2.0pl33.lha / c2man-2.0 / amiga / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-21  |  9.7 KB  |  308 lines

  1. /*
  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.  * $Id: config.h,v 2.0.1.3 1993/09/15 03:53:49 greyham Exp $
  11.  */
  12.  
  13. /* Configuration time: Sun Aug 22 08:23:18 CDT 1993
  14.  * Configured by: hankedr
  15.  * Target system: SunOS lab1 4.1.2 2 sun4c
  16.  */
  17.  
  18. #ifndef _config_h_
  19. #define _config_h_
  20.  
  21. /* HAS_ACCESS:
  22.  *      This manifest constant lets the C program know that the access()
  23.  *      system call is available to check for accessibility using real UID/GID.
  24.  *      (always present on UNIX.)
  25.  */
  26. #define HAS_ACCESS              /**/
  27.  
  28. /* HASCONST :
  29.  *      This symbol, if defined, indicates that this C compiler knows about
  30.  *      the const type. There is no need to actually test for that symbol
  31.  *      within your programs. The mere use of the "const" keyword will
  32.  *      trigger the necessary tests.
  33.  */
  34. #define HASCONST        /**/
  35. #ifndef HASCONST
  36. #define const
  37. #endif
  38.  
  39. /* FLEXFILENAMES:
  40.  *      This symbol, if defined, indicates that the system supports filenames
  41.  *      longer than 14 characters.
  42.  */
  43. #define FLEXFILENAMES           /**/
  44.  
  45. /* HAS_OPEN3
  46.  *      This manifest constant lets the C program know that the three
  47.  *      argument form of open(2) is available.
  48.  */
  49. #define HAS_OPEN3               /**/
  50.  
  51. /* HAS_STRCHR:
  52.  *      This symbol is defined to indicate that the strchr()/strrchr()
  53.  *      functions are available for string searching. If not, try the
  54.  *      index()/rindex() pair.
  55.  */
  56. #define HAS_STRCHR      /**/
  57.  
  58. /* HAS_STRFTIME:
  59.  *      This symbol, if defined, indicates that the strftime routine is
  60.  *      available to format locale-specific times.
  61.  */
  62. #define HAS_STRFTIME    /**/
  63.  
  64. /* HAS_STRSTR
  65.  *      This symbol, if defined, indicates that the strstr routine is
  66.  *      available to find substrings.
  67.  */
  68. #define HAS_STRSTR      /**/
  69.  
  70. /* HAS_LINK
  71.  *      This symbol, if defined, indicates that the link routine is available
  72.  *      to create hard links. OS/2 and DOS stupidity.
  73. #define HAS_LINK      /**/
  74.  
  75. /* HAS_SYMLINK
  76.  *      This symbol, if defined, indicates that the symlink routine is available
  77.  *      to create symbolic links.
  78.  */
  79. /*#define HAS_SYMLINK   /**/
  80.  
  81. /* Time_t
  82.  *      This symbol holds the type returned by time(). It can be long,
  83.  *      or time_t on BSD sites (in which case <sys/types.h> should be
  84.  *      included).
  85.  */
  86. #define Time_t long             /* Time type */
  87. #define Signal_t void
  88.  
  89. /* HASVOLATILE :
  90.  *      This symbol, if defined, indicates that this C compiler knows about
  91.  *      the volatile declaration.
  92.  */
  93. #define HASVOLATILE     /**/
  94. #ifndef HASVOLATILE
  95. #define volatile
  96. #endif
  97.  
  98. /* I_FCNTL
  99.  *      This manifest constant tells the C program to include <fcntl.h>.
  100.  */
  101. #define I_FCNTL /**/
  102.  
  103. /* I_STDARG:
  104.  *      This symbol, if defined, indicates that <stdarg.h> exists and should
  105.  *      be included.
  106.  */
  107. #define I_STDARG                /**/
  108.  
  109. /* I_STDDEF:
  110.  *      This symbol, if defined, indicates that <stddef.h> exists and should
  111.  *      be included.
  112.  */
  113. #define I_STDDEF        /**/
  114.  
  115. /* I_STDLIB:
  116.  *      This symbol, if defined, indicates that <stdlib.h> exists and should
  117.  *      be included.
  118.  */
  119. #define I_STDLIB                /**/
  120.  
  121. /* I_STRING:
  122.  *      This symbol, if defined, indicates to the C program that it should
  123.  *      include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  124.  */
  125. #define I_STRING                /**/
  126.  
  127. /* I_SYS_FILE
  128.  *      This symbol, if defined, indicates to the C program that it should
  129.  *      include <sys/file.h> to get definition of R_OK and friends.
  130.  */
  131. /*#define I_SYS_FILE            /**/
  132.  
  133. /* I_SYS_TYPES
  134.  *      This symbol, if defined, indicates to the C program that it should
  135.  *      include <sys/types.h>.
  136.  */
  137. #define I_SYS_TYPES             /**/
  138.  
  139. /* I_TIME
  140.  *      This symbol, if defined, indicates to the C program that it should
  141.  *      include <time.h>.
  142.  */
  143. /* I_SYS_TIME
  144.  *      This symbol, if defined, indicates to the C program that it should
  145.  *      include <sys/time.h>.
  146.  */
  147. #define I_TIME          /**/
  148. /*#define I_SYS_TIME            /**/
  149.  
  150. /* I_UNISTD:
  151.  *      This symbol, if defined, indicates to the C program that it should
  152.  *      include <unistd.h>.
  153.  */
  154. /*#define       I_UNISTD                /**/
  155.  
  156. /* I_VARARGS:
  157.  *      This symbol, if defined, indicates to the C program that it should
  158.  *      include <varargs.h>.
  159.  */
  160. /*#define I_VARARGS             /**/
  161.  
  162. /* CAN_PROTOTYPE :
  163.  *      If defined, this macro indicates that the C compiler can handle
  164.  *      function prototypes.
  165.  */
  166. /* DOTS :
  167.  *      This macro is used to specify the ... in function prototypes which
  168.  *      have arbitrary additional arguments.
  169.  */
  170. /* NXT_ARG :
  171.  *      This macro is used to separate arguments in the declared argument list.
  172.  */
  173. /* P_FUNC :
  174.  *      This macro is used to declare "private" (static) functions.
  175.  *      It takes three arguments: the function type and name, a parenthesized
  176.  *      traditional (comma separated) argument list, and the declared argument
  177.  *      list (in which arguments are separated with NXT_ARG, and additional
  178.  *      arbitrary arguments are specified with DOTS).  For example:
  179.  *
  180.  *              P_FUNC(int foo, (bar, baz), int bar NXT_ARG char *baz[])
  181.  */
  182. /* P_FUNC_VOID :
  183.  *      This macro is used to declare "private" (static) functions that have
  184.  *      no arguments.  The macro takes one argument: the function type and name.
  185.  *      For example:
  186.  *
  187.  *              P_FUNC_VOID(int subr)
  188.  */
  189. /* V_FUNC :
  190.  *      This macro is used to declare "public" (non-static) functions.
  191.  *      It takes three arguments: the function type and name, a parenthesized
  192.  *      traditional (comma separated) argument list, and the declared argument
  193.  *      list (in which arguments are separated with NXT_ARG, and additional
  194.  *      arbitrary arguments are specified with DOTS).  For example:
  195.  *
  196.  *              V_FUNC(int main, (argc, argv), int argc NXT_ARG char *argv[])
  197.  */
  198. /* V_FUNC_VOID :
  199.  *      This macro is used to declare "public" (non-static) functions that have
  200.  *      no arguments.  The macro takes one argument: the function type and name.
  201.  *      For example:
  202.  *
  203.  *              V_FUNC_VOID(int fork)
  204.  */
  205. /* _
  206.  *      This macro is used to declare function parameters for folks who want
  207.  *      to make declarations with prototypes using a different style than
  208.  *      the above macros.  Use double parentheses.  For example:
  209.  *
  210.  *              int main _((int argc, char *argv[]));
  211.  */
  212. #define CAN_PROTOTYPE   /**/
  213. #ifdef CAN_PROTOTYPE
  214. #define NXT_ARG ,
  215. #define DOTS , ...
  216. #define V_FUNC(name, arglist, args)name(args)
  217. #define P_FUNC(name, arglist, args)static name(args)
  218. #define V_FUNC_VOID(name)name(VOID)
  219. #define P_FUNC_VOID(name)static name(VOID)
  220. #define _(args) args
  221. #else
  222. #define NXT_ARG ;
  223. #define DOTS
  224. #define V_FUNC(name, arglist, args)name arglist args;
  225. #define P_FUNC(name, arglist, args)static name arglist args;
  226. #define V_FUNC_VOID(name)name()
  227. #define P_FUNC_VOID(name)static name()
  228. #define _(args) ()
  229. #endif
  230.  
  231. /* CAN_VAPROTO :
  232.  *      This variable is defined on systems supporting prototype declaration
  233.  *      of functions with a variable number of arguments.
  234.  */
  235. /* _V :
  236.  *      This macro is used to declare function parameters in prototypes for
  237.  *      functions with a variable number of parameters. Use double parentheses.
  238.  *      For example:
  239.  *
  240.  *              int printf _V((char *fmt, ...));
  241.  *
  242.  *      Remember to use the plain simple _() macro when declaring a function
  243.  *      with no variable number of arguments, since it might be possible to
  244.  *      have a non-effect _V() macro and still get prototypes via _().
  245.  */
  246. #define CAN_VAPROTO     /**/
  247. #ifdef CAN_VAPROTO
  248. #define _V(args) args
  249. #else
  250. #define _V(args) ()
  251. #endif
  252.  
  253. /* VOIDFLAGS :
  254.  *      This symbol indicates how much support of the void type is given by this
  255.  *      compiler.  What various bits mean:
  256.  *
  257.  *          1 = supports declaration of void
  258.  *          2 = supports arrays of pointers to functions returning void
  259.  *          4 = supports comparisons between pointers to void functions and
  260.  *                  addresses of void functions
  261.  *          8 = suports declaration of generic void pointers
  262.  *
  263.  *      The package designer should define VOIDUSED to indicate the requirements
  264.  *      of the package.  This can be done either by #defining VOIDUSED before
  265.  *      including config.h, or by defining defvoidused in Myinit.U.  If the
  266.  *      latter approach is taken, only those flags will be tested.  If the
  267.  *      level of void support necessary is not present, defines void to int.
  268.  */
  269. #ifndef VOIDUSED
  270. #define VOIDUSED 9
  271. #endif
  272. #define VOIDFLAGS 9
  273. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  274. #define void int                /* is void to be avoided? */
  275. #define M_VOID                  /* Xenix strikes again */
  276. #endif
  277.  
  278. /* CPP_FILE_COM
  279.  *      This symbol contains the first part of the string which will invoke
  280.  *      the C preprocessor a file and produce to standard output, preserving
  281.  *      comments. Typical value of "cc -E -C" or "/lib/cpp -C".
  282.  */
  283. /* CPP_STDIN_FLAGS
  284.  *      This variable contains any flags necessary to get CPP_FILE_COM to
  285.  *      read from the standard input.
  286.  */
  287. /* CPP_IGN_HDRS
  288.  *      This symbol is defined if CPP_FILE_COM ignores *.h files.
  289.  */
  290. /* CPP_CAN_STDIN
  291.  *      This symbol is defined if CPP_FILE_COM can read standard input
  292.  *      directly.
  293.  */
  294. #ifdef _MSC_VER
  295. #define CPP_FILE_COM "cl -nologo -E -C"
  296. #else
  297. #ifdef __SASC
  298. #define CPP_FILE_COM "cpp -C"
  299. #else
  300. #define CPP_FILE_COM "gcc -E -C"
  301. #endif
  302. #endif
  303. #define CPP_STDIN_FLAGS ""
  304. /*#define CPP_IGN_HDRS          /* does CPP ignore .h files? */
  305. #define CPP_CAN_STDIN         /* can CPP read stdin directly? */
  306.  
  307. #endif
  308.