home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / csp0194b.zip / CSPLIT.H < prev    next >
C/C++ Source or Header  |  1994-01-17  |  1KB  |  51 lines

  1. /*
  2.  * CSplit.h
  3.  * 08/31/93  Fred Cole     original
  4.  * 09/05/93  Fac           update for CRC routines
  5.  * 09/14/93  Fac           update for link list routines
  6.  */
  7.  
  8. #include <ctype.h>
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <string.h>
  12.  
  13. #ifndef __STDC__
  14. #include "portable.h"
  15. #endif
  16.  
  17. #define VERSION  "1.40"
  18.  
  19. enum { FALSE = 0, TRUE };
  20. enum { NOERR = 0, HELP, MEMORY, INFILE, OUTFILE, PROCESS, READ, WRITE };
  21.  
  22. #define FNAME    12   /* 8.3 filespec character count */
  23. #define LINES    90   /* default source lines per section */    /* TS */
  24. #define LENGTH   75   /* default source chars per line */
  25. #define PATHMAX  80   /* maximum path spec length */
  26. #define TABDEF    4   /* default spaces per tab char */
  27. #define TABMAX   16   /* maximum spaces per tab char */
  28. #define TABMIN    2   /* minimum spaces per tab char */
  29. #define SEP_AR   " >>>>>>>>>>"
  30. #define SEP_BF   "Begin file "
  31. #define SEP_BP   "Begin part "
  32. #define SEP_EF   "End file "
  33. #define SEP_EP   "End part "
  34. #define SEP_ID   ">>>>>>>>>> CSplit: "
  35.  
  36. typedef struct _slst
  37. {
  38.   char srcfile[FNAME+1];          /* no path support */
  39.   struct _slst *next;
  40. } SLST;
  41.  
  42. void cleanup(void);
  43. void disp_help(void);
  44. int  extract(char *);
  45. char *my_fgets(char *, int, FILE *, int);
  46. unsigned short updcrc( unsigned short, unsigned char *, unsigned int );
  47. void initcrctab(void);
  48. SLST *addlist(char *);
  49. void freelist(void);
  50. int  initlist(int, char **, int);
  51.