home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_10
/
9n10097a
< prev
next >
Wrap
Text File
|
1991-06-13
|
1KB
|
34 lines
/* ---------------------------------------------------------
CSWITCH.H
This is the header file for the subsystem that
supports generic command-line switches.
Written by: William J. McMahon on: August 25, 1990
--------------------------------------------------------- */
#ifndef CSWITCH_H /* Avoid duplicate definitions. */
#define CSWITCH_H
/* Macros that could be put in a more general header file.*/
typedef unsigned char BOOL; /* ... TRUE or FALSE */
#define MAX_STR 128 /* ... for string buffers.*/
#define TRUE 1
#define FALSE 0
/* --------------- Function Prototypes ------------------ */
BOOL csw_ison(char *, int);
void csw_parse(int, char **);
/* -------- Macro for switchable execution -------------- */
#ifdef NO_CSW
#define CSW_EXEC(x) ((void)0)
#else
#define CSW_EXEC(x) (csw_ison(__FILE__, __LINE__) ? \
(x) : ((void)0) )
#endif
#endif /* #ifndef CSWITCH_H */