home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / auucp+-1.02 / fuucp_plus_src.lzh / pathalias / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-17  |  2.5 KB  |  95 lines

  1. /* pathalias -- by steve bellovin, as told to peter honeyman */
  2.  
  3. /**************************************************************************
  4.  * +--------------------------------------------------------------------+ *
  5.  * |                    begin configuration section                     | *
  6.  * +--------------------------------------------------------------------+ *
  7.  **************************************************************************/
  8.  
  9. #define STRCHR        /* have strchr -- system v and many others */
  10.  
  11. #undef  UNAME        /* have uname() -- probably system v or 8th ed. */
  12. #define MEMSET        /* have memset() -- probably system v or 8th ed. */
  13.  
  14. #undef GETHOSTNAME    /* have gethostname() -- probably bsd */
  15. #undef BZERO        /* have bzero() -- probably bsd */
  16.  
  17. /* default place for dbm output of makedb (or use -o at run-time) */
  18. #ifndef AMIGA
  19. #define    ALIASDB    "/usr/local/lib/palias"
  20. #else /* AMIGA */
  21. #define ALIASDB "UULIB:palias"
  22. #endif AMIGA
  23.  
  24. /**************************************************************************
  25.  * +--------------------------------------------------------------------+ *
  26.  * |                    end of configuration section                    | *
  27.  * +--------------------------------------------------------------------+ *
  28.  **************************************************************************/
  29.  
  30.  
  31.  
  32. #ifdef MAIN
  33. #ifndef lint
  34. static char    *c_sccsid = "@(#)config.h    9.2 89/03/03";
  35. #endif /*lint*/
  36. #endif /*MAIN*/
  37.  
  38. /*
  39.  * malloc/free fine tuned for pathalias.
  40.  *
  41.  * MYMALLOC should work everwhere, so it's not a configuration
  42.  * option (anymore).  nonetheless, if you're getting strange
  43.  * core dumps (or panics!), comment out the following manifest,
  44.  * and use the inferior C library malloc/free.
  45.  */
  46. #define MYMALLOC    /**/
  47.  
  48. #ifdef MYMALLOC
  49. #define malloc mymalloc
  50. #define calloc(n, s) malloc ((n)*(s))
  51. #define free(s)
  52. #define cfree(s)
  53. extern char *memget();
  54. #else /* !MYMALLOC */
  55. extern char *calloc();
  56. #endif /* MYMALLOC */
  57.  
  58. #ifdef STRCHR
  59. #define index strchr
  60. #define rindex strrchr
  61. #else
  62. #define strchr index
  63. #define strrchr rindex
  64. #endif
  65.  
  66. #ifdef BZERO
  67. #define strclear(s, n)    ((void) bzero((s), (n)))
  68. #else /*!BZERO*/
  69.  
  70. #ifdef MEMSET
  71. #ifndef AMIGA
  72. extern char    *memset();
  73. #endif AMIGA
  74. #define strclear(s, n)    ((void) memset((s), 0, (n)))
  75. #else /*!MEMSET*/
  76. extern void    strclear();
  77. #endif /*MEMSET*/
  78.  
  79. #endif /*BZERO*/
  80.  
  81. extern char    *malloc();
  82. #ifndef AMIGA
  83. extern char    *strcpy(), *index(), *rindex();
  84. #endif AMIGA
  85.  
  86. #ifndef STATIC
  87.  
  88. #ifdef DEBUG
  89. #define STATIC extern
  90. #else /*DEBUG*/
  91. #define STATIC static
  92. #endif /*DEBUG*/
  93.  
  94. #endif /*STATIC*/
  95.