Trailing-Edge
-
PDP-10 Archives
-
SRI_NIC_PERM_SRC_3_19910112
-
unix-stuff/cmswi.cnf
There is 1 other file named cmswi.cnf in the archive. Click here to see a list.
_ Author: Andrew Lowry
_
_ Columbia University Center for Computing Activities, July 1986.
_ Copyright (C) 1986, 1987, Trustees of Columbia University in the
_ City of New York. Permission is granted to any individual or
_ institution to use, copy, or redistribute this software so long as
_ it is not sold for profit, provided this copyright notice is
_ retained.
_
/* switch parsing errors */
fnerror(NM,`Does not match switch')
fnerror(AMB,`Ambiguous')
fnerror(ABR,`Invalid abbreviation chain in switch table')
fnerror(BEG,`Switch does not begin with required punctuation')
fnerror(END,`Final switch punctuation not allowed on selected switch')
/*
* SWTCH structure specifies one entry in a switch table. SWITAB
* structure describes a table of switches. (We use the name
* swtch instead of switch because the latter is a C reserved word.)
*/
typedef struct SWTCH {
char * _swswi; /* switch string (without punctuation) */
short _swflg; /* flags (see below) */
int _swval; /* arbitrary value, not used internally */
/* except for abbreviations... see SWI_ABR */
/* flag below */
} swtch;
typedef struct SWITAB {
int _stcnt; /* number of switches in table */
swtch * _stwds; /* array of switch entries */
} switab;
/* Flags that can be present in a switch entry */
fnflag(ABR) /* switch is an abbreviation for the */
/* switch indexed by this entry's _swval */
/* value */
fnflag(NOR) /* Ignore this switch (do not recognize */
/* any prefix, or even an exact match) */
fnflag(INV) /* Invisible switch (not shown with help) */
fnflag(MAT) /* This switch matches current input (used */
/* internally) */