home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD2.img / d4xx / d473 / cnewssrc / cnews_src.lzh / relay / hdrint.h < prev    next >
C/C++ Source or Header  |  1990-12-22  |  1KB  |  53 lines

  1. /* :ts=4
  2.  * definitions internal to the header modules (hdr*.c)
  3.  */
  4.  
  5. #ifdef REALSTDC
  6. #  undef REALSTDC
  7. #endif
  8.  
  9. #ifdef __STDC__
  10. #  if __STDC__ >= 1        /* microsoft, etc. brain-damage */
  11. #    define REALSTDC    /* truth in advertising: really ANSI */
  12. #  endif                /* __STDC__ < 1 */
  13. #endif                    /* __STDC__ */
  14.  
  15. /*
  16.  * using const seemed like a good idea at the time.  then i discovered
  17.  * const-poisoning.
  18.  */
  19.  
  20. #ifdef AZTEC_C
  21. # undef CONST
  22. # if __VERSION < 500
  23. #  define CONST        /* const */
  24. #  define DUMB        /* compiler can't handle "offsetof()" macro */
  25. # else
  26. #  define CONST        const
  27. #  define REALSTDC    /* truth in advertising: really ANSI */
  28. # endif
  29. #endif
  30.  
  31. #ifdef LATTICE        /* Still true under v5.05??? */
  32. # undef CONST
  33. # define CONST        /* const */
  34. # define DUMB        /* compiler can't handle "offsetof()" macro */
  35. #endif
  36.  
  37. #ifndef DEFDIST
  38. #  define DEFDIST "world"        /* default Distribution: */
  39. #endif
  40. #define DEFMSGID ""        /* must be empty string or contain whitespace */
  41.  
  42. struct hdrdef {
  43.     CONST char *hdrnm;    /* ascii name */
  44.     unsigned hdrlen;    /* STRLEN(hdrnm) */
  45.     int hdroff;        /* offset into struct header */
  46. };
  47. typedef struct hdrdef *hdrlist[];
  48.  
  49. extern CONST struct hdrdef pathhdr, xrefhdr;
  50. extern CONST struct hdrdef *parsehdrs[], *hdrvilest[];
  51.  
  52. extern boolean headdebug;
  53.