home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
x
/
volume10
/
contool
/
part01
/
contool.h
next >
Wrap
C/C++ Source or Header
|
1990-10-30
|
2KB
|
77 lines
/************************************************************************/
/* Copyright 1988-1990 by Chuck Musciano and Harris Corporation */
/* */
/* Permission to use, copy, modify, and distribute this software */
/* and its documentation for any purpose and without fee is */
/* hereby granted, provided that the above copyright notice */
/* appear in all copies and that both that copyright notice and */
/* this permission notice appear in supporting documentation, and */
/* that the name of Chuck Musciano and Harris Corporation not be */
/* used in advertising or publicity pertaining to distribution */
/* of the software without specific, written prior permission. */
/* Chuck Musciano and Harris Corporation make no representations */
/* about the suitability of this software for any purpose. It is */
/* provided "as is" without express or implied warranty. This */
/* software may not be sold without the prior explicit permission */
/* of Harris Corporation. */
/************************************************************************/
/************************************************************************/
/* */
/* contool.h internal contool data structures */
/* */
/************************************************************************/
#define is_null(x) ((x)? x : "")
#define BEEP_BIT 0x01
#define COMMAND_BIT 0x02
#define FLASH_BIT 0x04
#define OPEN_BIT 0x08
#define STAMP_BIT 0x10
typedef struct filter Filter;
typedef struct props Props;
struct filter {char *start;
char *start_re;
int start_circf;
char *stop;
char *stop_re;
int stop_circf;
char *comment;
int save;
int beep;
int flash;
int open;
int stamp;
char *command;
Filter *next;
};
struct props {int beep;
int flash;
int open;
int stamp;
char *command;
char *good_icon;
char *bad_icon;
char *flash_icon;
char *print_filter;
char *log_file;
int log_after;
int stamp_resolution;
int max_size;
int delete_amount;
};
PUBLIC char *compile_exp();
PUBLIC char *expand_tilde();
PUBLIC Props defaults;
PUBLIC Props *parsed_defaults;
PUBLIC Filter *parsed_filters;
PUBLIC Filter *filters;
PUBLIC int parse_errors_occured;
PUBLIC char *filter_file;