home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / MISC / MN321SRC.ZIP / fts5.h < prev    next >
C/C++ Source or Header  |  2004-07-13  |  2KB  |  55 lines

  1. /* $Id: fts5.h,v 1.5 2004/07/12 21:59:57 fido Exp $ */
  2.  
  3. /* Indices for 3D-Adresses */
  4. #define A_ZONE 0
  5. #define A_NET 1
  6. #define A_NODE 2
  7. #define A_POINT 3
  8.  
  9. enum level_enum
  10. {
  11.     LEVEL_TOP, LEVEL_ZONE, LEVEL_REGION, LEVEL_HOST, LEVEL_HUB,
  12.     LEVEL_NODE, LEVEL_OGATE, LEVEL_PRIVATE, LEVEL_DOWN, LEVEL_HOLD,
  13.     LEVEL_POINT, LEVEL_COMMENT, LEVEL_EMPTY
  14. };
  15.  
  16. /* maximal *length* of phone numbers */
  17. #define MAXPHONE 30
  18.  
  19. /* minimal *parts* of phone numbers */
  20. extern int Minphone;
  21.  
  22. /* Allow Alpha Character in Phone */
  23. extern int Alphaphone;
  24.  
  25. /* Allow -Unpublished w/o Pvt */
  26. extern int Allowunpub;
  27.  
  28. extern char namebuf[16];
  29. extern const char *const LevelsSimple[];
  30. extern char *Levels[];
  31. extern char *FTS5Line[8];
  32. extern const int Level4DPos[];
  33. extern int PrivateLevel;
  34. extern int PointLevel;
  35. extern char ErrorMessage[linelength];
  36.  
  37. #define FTS5Keyword FTS5Line[0]
  38. #define FTS5Number FTS5Line[1]
  39. #define FTS5Nodename FTS5Line[2]
  40. #define FTS5Location FTS5Line[3]
  41. #define FTS5Sysopname FTS5Line[4]
  42. #define FTS5Phone FTS5Line[5]
  43. #define FTS5Baud FTS5Line[6]
  44. #define FTS5Flags FTS5Line[7]
  45.  
  46. int GetBaudrateTable(const char *list);
  47. int getnodenum(char **instring, int *linelevel, int *linenum);
  48. int ParseFTS5(char *line, int *a, int *b);
  49. int OutputErrorLine(FILE * where, const char *pre, const char *wrongy,
  50.                     const char *post, unsigned short *crc);
  51. int OutputFTS5Line(FILE * file, const char *prefix, const char *postfix,
  52.                    unsigned short *crc);
  53. int CopyComment(FILE * output, char *Copyfile, const char *year,
  54.                 unsigned short *crc);
  55.