home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / gopher / Unix / gopher-gateways / techinfo / techinpher / v1.0 / pdb.h.Z / pdb.h
Encoding:
C/C++ Source or Header  |  1993-02-08  |  1.9 KB  |  116 lines

  1.  
  2.  /*
  3.  *------------------------------------------------------------------
  4.  * $Source: /afs/net.mit.edu/dapps/project/techinfodev/src/srv_ti/RCS/pdb.h,v $
  5.  * $Revision: 1.1 $
  6.  * $Date: 92/08/04 16:28:02 $
  7.  * $Author: ark $
  8.  *------------------------------------------------------------------
  9.  */
  10. /*
  11.  * pdb.h
  12.  */
  13.  
  14. #include <sys/types.h>
  15.  
  16. #define THENAME         "PennInfo"
  17.  
  18. #ifndef TEST
  19. #define STORE_DIRECTORY "/mit/ti_data/"
  20. #else
  21. #define STORE_DIRECTORY "/penninfo/data/"
  22. #endif
  23.  
  24. #define LOG_MACHINE    "tiserve.mit.edu"
  25.  
  26.  
  27. /* #define MAC */
  28.  
  29. #ifdef MAC
  30. #define    bcopy(src, dest, len)    memcpy(dest, src, len)    
  31. #endif    
  32.  
  33. #ifndef FALSE
  34. #define    FALSE        0
  35. #endif
  36. #ifndef TRUE
  37. #define    TRUE         1
  38. #endif
  39.  
  40. #define    NO        0
  41. #define    YES        1
  42.  
  43. #define    CR    '\015'
  44. #define LF    '\012'
  45. #define DLM     ':'
  46. #define SIMPLE          0    /* display types */
  47. #define FULL            1    /* display types */
  48.  
  49. #define NOMENU          0
  50. #define MENU            1
  51.  
  52. #define flush()            fflush(stdout)
  53.  
  54. #ifndef max
  55. #define    max(a, b)    ((a) > (b) ? (a) : (b))
  56. #define min(a, b)       ((a) < (b) ? (a) : (b))
  57. #endif
  58.  
  59. #define do_free(var) if ((var) !=NULL) free((var))
  60.  
  61. typedef struct server ASERVER;
  62. struct server {
  63.   char *name;
  64.   char *addr;
  65.   char *portnum;
  66.   char *contact;
  67.   char *email;
  68.   char *comment;
  69.   int  idnum;
  70.   int  sock;
  71. };
  72.  
  73.  
  74. #define    HIST_STACK_SIZE    1024
  75. #define MAXBACK 100
  76. #define MAXPATHLEN 256
  77. /*
  78.  * see glob.c for these
  79.  */
  80.  
  81. extern char    HELP_FILE[];
  82. extern char     HELP_FILE_ADV[];
  83. extern char    LOG_FILE[];
  84. extern char     READ_LOG_FILE[];
  85. extern char    WEB_FILE[];
  86. extern char     WEB_BAK_FILE[];
  87. extern char     WEB_TMP_FILE[];
  88. extern char     MSG_FILE[];
  89.  
  90. int      SERVER; 
  91. extern int SERVER; 
  92. int menu;
  93. extern int menu;
  94. int disptype;
  95. extern int disptype;
  96.  
  97. char *    domalloc(unsigned long    bytes);
  98. char *  get_token(char *str,int pos);
  99. char *  find_token(char *str,int pos);
  100. char *  textbuf_line(int id);
  101. char *    index();
  102. /* long    atol(char *); for mac */
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.