home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / macraysh.sit / Code / Headers / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-24  |  3.7 KB  |  121 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. #define BSD        /**/
  12.  
  13. /* bzero:
  14.  *    This symbol is maped to memset if the  bzero() routine is not
  15.  *    available to set memory to 0.
  16.  */
  17. #define    bzero(s,l)    memset((s),0,(l))    ;    /* mapped to memset */
  18.  
  19. /* index:
  20.  *    This preprocessor symbol is defined, along with rindex, if the system
  21.  *    uses the strchr and strrchr routines instead.
  22.  */
  23. /* rindex:
  24.  *    This preprocessor symbol is defined, along with index, if the system
  25.  *    uses the strchr and strrchr routines instead.
  26.  */
  27. #define    index strchr    /* cultural */
  28. #define    rindex strrchr    /*  differences? */
  29.  
  30. /* MEMSET:
  31.  *    This symbol, if defined, indicates that the memset routine is available
  32.  *    to set blocks of memory. You should always use bzero() instead of
  33.  *    memset() because bzero is remaped to memset if necessary. This means
  34.  *    that a memset() routine must be provided in case MEMSET is not defined
  35.  *    and no bzero() is found.
  36.  */
  37. #define    MEMSET        /**/
  38.  
  39. /* CLOCKTYPE:
  40.  *    This symbol holds the type returned by times(). It can be long,
  41.  *    or clock_t on BSD sites (in which case <sys/types.h> should be
  42.  *    included). Moreover, the Clock_t symbol is defined in common.h
  43.  *    and should be used for easy clean reference.
  44.  */
  45. #define TIMES        /**/
  46. #define CLOCKTYPE long        /**/
  47.  
  48. /* I_STRING:
  49.  *    This symbol, if defined, indicates to the C program that it should
  50.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  51.  */
  52. #define I_STRING        /**/
  53.  
  54. /* I_SYSRESOURCE:
  55.  *    This symbol, if defined, indicates to the C program that it should
  56.  *    include <sys/resource.h>.
  57.  */
  58. #define    I_SYSRESOURCE        /**/
  59.  
  60. /* I_SYSTYPES:
  61.  *    This symbol, if defined, indicates to the C program that it should
  62.  *    include <sys/types.h>.
  63.  */
  64. #define    I_SYSTYPES        /**/
  65.  
  66. /* I_TIME:
  67.  *    This symbol, if defined, indicates to the C program that it should
  68.  *    include <time.h>.
  69.  */
  70. /* I_SYSTIME:
  71.  *    This symbol, if defined, indicates to the C program that it should
  72.  *    include <sys/time.h>.
  73.  */
  74. /* I_SYSTIMEKERNEL:
  75.  *    This symbol, if defined, indicates to the C program that it should
  76.  *    include <sys/time.h> with KERNEL defined.
  77.  */
  78. /*#undef I_TIME        /**/
  79. #define I_SYSTIME        /**/
  80. /*#undef I_SYSTIMEKERNEL        /**/
  81.  
  82. /* nrand:
  83.  *    This macro is to be used to generate uniformly distributed
  84.  *    random numbers over the range [0., 1.].
  85.  */
  86. /* seednrand:
  87.  *    This symbol defines the macro to be used in seeding the
  88.  *    random number generator (see nrand).
  89.  */
  90. #define nrand()        ((double)rand() / (double) 32767)
  91.  
  92. #define seednrand(x)    srand(x)
  93.  
  94. /* VOIDFLAGS:
  95.  *    This symbol indicates how much support of the void type is given by this
  96.  *    compiler.  What various bits mean:
  97.  *
  98.  *        1 = supports declaration of void
  99.  *        2 = supports arrays of pointers to functions returning void
  100.  *        4 = supports comparisons between pointers to void functions and
  101.  *            addresses of void functions
  102.  *        8 = suports declaration of generic void pointers
  103.  *
  104.  *    The package designer should define VOIDUSED to indicate the requirements
  105.  *    of the package.  This can be done either by #defining VOIDUSED before
  106.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  107.  *    latter approach is taken, only those flags will be tested.  If the
  108.  *    level of void support necessary is not present, defines void to int.
  109.  */
  110. /*
  111.  * ifndef VOIDUSED
  112.  * define VOIDUSED 9
  113.  * endif
  114.  * define VOIDFLAGS 15
  115.  * if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  116.  * define void int        / is void to be avoided? /
  117.  * define M_VOID        / Xenix strikes again /
  118.  * endif
  119.  */
  120.  
  121.