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 >
Wrap
Text File
|
1989-04-24
|
2KB
|
54 lines
/****************************************************************************
*
* Header File for: FC-File Commentor
*
* Author: Ronald C. Bieber
* Date: April 19, 1989
*
* Description: This file contains the function prototypes
* and type definitions used in File Commentor.
*
***************************************************************************/
#define ADD 0x80 /* command line options */
#define DELETE 0x40
#define PAUSE 0x20
#define COMPRESS 0x10
#define BEEP() putch(0x07); /* makes the speaker beep */
#define ASC(x) (isascii(x) ? 1: 0) /* Macro to find out if a */
/* character is ascii */
#define SUCCESS 1
#define FAILURE 0
struct _fi { /* data structure to hold file info */
unsigned long sig;
char filename[15];
char comment[40];
};
typedef struct _fl { /* Linked list node format */
struct _fi fileinfo; /* File information structure */
struct _fl *prev; /* Reference pointer to record before */
struct _fl *next; /* Reference pointer to record next */
} FILELIST;
/************************** Function Declarations **************************/
extern int mk_info(); /* create initial comments file */
extern FILELIST *mk_node(FILELIST *); /* adds entry to linked list */
extern FILELIST *search(FILELIST *, char *); /* searches list for filespec */
extern int read_info(FILELIST *, int); /* reads comments file into list */
extern void node_delete(FILELIST *, char *); /* deletes an entry from list */
extern void compress(FILELIST *); /* compresses the list */
extern int wildcards(char *, char *); /* wildcard matching routines */
extern int fh,
no_found;
extern char comment_file[MAXPATH];
extern unsigned long sig;