home *** CD-ROM | disk | FTP | other *** search
/ RBBS in a Box Volume 1 #2 / RBBS_vol1_no2.iso / add2 / fc_v003.exe / FC.H < prev    next >
Text File  |  1989-04-24  |  2KB  |  54 lines

  1. /****************************************************************************
  2.  *
  3.  *     Header File for:     FC-File Commentor
  4.  *
  5.  *              Author:     Ronald C. Bieber
  6.  *                Date:     April 19, 1989
  7.  *
  8.  *         Description:     This file contains the function prototypes
  9.  *                          and type definitions used in File Commentor.
  10.  *
  11.  ***************************************************************************/
  12.  
  13.  
  14. #define ADD         0x80                            /* command line options */
  15. #define DELETE      0x40
  16. #define PAUSE       0x20
  17. #define COMPRESS    0x10
  18.  
  19. #define BEEP()  putch(0x07);                        /* makes the speaker beep */
  20.  
  21. #define ASC(x)  (isascii(x) ? 1: 0)                 /* Macro to find out if a */
  22.                                                     /* character is ascii     */ 
  23.  
  24. #define SUCCESS 1
  25. #define FAILURE 0
  26.  
  27. struct  _fi {                                       /* data structure to hold file info */
  28.     unsigned long   sig;
  29.     char            filename[15];
  30.     char            comment[40];
  31. };
  32.  
  33. typedef struct _fl {                                /* Linked list node format */
  34.     struct  _fi fileinfo;                           /* File information structure */
  35.     struct  _fl *prev;                              /* Reference pointer to record before */
  36.     struct  _fl *next;                              /* Reference pointer to record next */
  37. } FILELIST;
  38.  
  39. /************************** Function Declarations **************************/
  40.  
  41. extern int      mk_info();                          /* create initial comments file */
  42. extern FILELIST *mk_node(FILELIST *);               /* adds entry to linked list */
  43. extern FILELIST *search(FILELIST *, char *);        /* searches list for filespec */
  44. extern int      read_info(FILELIST *, int);         /* reads comments file into list */
  45. extern void     node_delete(FILELIST *, char *);    /* deletes an entry from list */
  46. extern void     compress(FILELIST *);               /* compresses the list      */
  47. extern int      wildcards(char *, char *);          /* wildcard matching routines */
  48.  
  49. extern int      fh,
  50.                 no_found;
  51.  
  52. extern char     comment_file[MAXPATH];
  53. extern unsigned long sig;
  54.