home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / c / ltick03 / tick.h < prev    next >
C/C++ Source or Header  |  1993-07-06  |  2KB  |  92 lines

  1. /* LazyTick header - tick.h */
  2.  
  3. #define LAZYVERS    "0.3"
  4. #define LAZYNAME    "LazyTick"
  5. #define LAZYLGID    "LTCK"
  6.  
  7. /* system dependancies UNIX */
  8. #ifdef UNIX
  9. #define SYSSTRSEPAR "/"
  10. #define SYSSEPAR '/' 
  11. #define MACHINE "Unix"
  12. #define stricmp strcasecmp     /* common names under unix */
  13. #define strnicmp strncasecmp
  14. #endif
  15.  
  16. /* system dependancies ATARI ST */
  17. #ifdef ATARI
  18. #define SYSSTRSEPAR    "\\"
  19. #define SYSSEPAR '\\'
  20. #define MACHINE "Atari ST"
  21. #endif
  22.  
  23. /* systeme dependancies WINDOWS NT */
  24. #ifdef WIN32
  25. #define SYSSTRSEPAR    "\\"
  26. #define SYSSEPAR '\\'
  27. #define MACHINE "WinNT"
  28. #endif
  29.  
  30. /* config files */
  31. #define FAREASFILE    "fareas.bbs"    /* files areas list */
  32. #define AREASFILE    "areas.bbs"        /* echomail areas list */
  33. #define DEFLOGFILE    "lazytick.log"    /* default log file */
  34. #define FILESBBS    "files.bbs"        /* file desc in fileareas */
  35. #define BERMCFG1    "bermuda.cfg"    /* config file */
  36. #define BERMCFG2    "tb.cfg"
  37.  
  38. /* internal limits */
  39. #define BBSOK         0
  40. #define BBSFAIL     1
  41. #define BBSSTR         160    /* generic string */
  42. #define MAXECHO        400    /* max number of areas */
  43. #define NOLAZYFIX    /* disable LazyFix routines */
  44.  
  45. /* tic file limits */
  46. #define MAXPASSNB    300
  47. #define MAXSEEN     2000
  48. #define PASSLEN        80
  49.  
  50. /* structures */
  51.  
  52. typedef struct _fidonode {
  53.     struct _fidonode *next;
  54.     int position; /* for areafix */
  55.     int zone;
  56.     int net;
  57.     int node;
  58.     int point;
  59. } FIDONODE;
  60.  
  61. typedef struct _echolist {
  62.     char file[BBSSTR];  /* Name of HDR/MSG */
  63.     char name[BBSSTR];    /* Fido Name */
  64.     char desc[BBSSTR];    /* Description */
  65.     char group[BBSSTR];    /* Group */
  66.     int line;            /* areas.bbs line number for areafix */
  67.     int modify;            /* for areafix */
  68.     FIDONODE *firstnode;
  69. } ECHOLIST;
  70.  
  71. typedef struct _ticfile {
  72.     /* file ID */
  73.     char area[BBSSTR];
  74.     char file[BBSSTR];
  75.     char desc[BBSSTR];
  76.     char password[BBSSTR];
  77.     unsigned long crc;
  78.     unsigned long size;
  79.     FIDONODE origin;
  80.     FIDONODE from;
  81.     /* Pass-thru lines (Path, App, etc) */
  82.     char pass[MAXPASSNB][PASSLEN];
  83.     int pass_nb;
  84.     /* Seen by lines */
  85.     FIDONODE seenby[MAXSEEN];
  86.     int seenby_nb;
  87.     /* local info */
  88.     char filepath[BBSSTR];
  89. } BTICFILE;
  90.  
  91. /* end of tick.h */
  92.