esd.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*+-----------------------------------------------------------------------
  2. esd.h -- support header for users of esdutil.c
  3. wht@wht.net
  4. ------------------------------------------------------------------------*/
  5. /*+:EDITS:*/
  6. /*:04-26-2000-11:15-wht@bob-RELEASE 4.42 */
  7. /*:01-24-1997-02:37-wht@yuriatin-SOURCE RELEASE 4.00 */
  8. /*:09-11-1996-20:00-wht@yuriatin-3.48-major telnet,curses,structural overhaul */
  9. /*:11-23-1995-11:20-wht@kepler-source control 3.37 for tsx-11 */
  10. /*:11-14-1995-10:23-wht@kepler-3.37.80-source control point: SOCKETS */
  11. /*:05-04-1994-04:39-wht@n4hgf-ECU release 3.30 */
  12. /*:09-10-1992-13:59-wht@n4hgf-ECU release 3.20 */
  13. /*:08-22-1992-15:38-wht@n4hgf-ECU release 3.20 BETA */
  14. /*:03-27-1992-16:21-wht@n4hgf-re-include protection for all .h files */
  15. /*:03-20-1992-06:28-wht@n4hgf-max size of esd now 16384 */
  16. /*:08-29-1991-02:02-wht@n4hgf2-larger max string size for sun and SVR4 */
  17. /*:07-25-1991-12:57-wht@n4hgf-ECU release 3.10 */
  18. /*:04-24-1991-18:49-wht@n4hgf-add ESD_MAXSZ */
  19. /*:08-14-1990-20:40-wht@n4hgf-ecu3.00-flush old edit history */
  20. #ifndef _esd_h
  21. #define _esd_h
  22. #define ESD_MAXSZ 16384
  23. #define ESD_NOMSZ 256
  24. typedef struct esd
  25. {
  26. char *pb; /* pointer to string buffer */
  27. short cb; /* count of bytes */
  28. short maxcb; /* maximum bytes allowed */
  29. short index; /* next character of significance */
  30. short old_index; /* last token (backup or error reporting) */
  31. }
  32. ESD;
  33. typedef struct keyword_table_type /* table terminated with null key_word */
  34. {
  35. char *key_word; /* 12 char max key word */
  36. int key_token; /* token returned on match */
  37. }
  38. KEYTAB;
  39. ESD *esdalloc();
  40. #endif /* _esd_h */
  41. /* vi: set tabstop=4 shiftwidth=4: */
  42. /* end of esd.h */