-bool number, /* T if on line starting with # */
- term = FALSE, /* T if print on terminal */
- makefile= TRUE, /* T if to creat "tags" file */
- gotone, /* found a func already on line */
- /* boolean "func" (see init) */
- _wht[0177],_etk[0177],_itk[0177],_btk[0177],_gd[0177];
-
- /* typedefs are recognized using a simple finite automata,
- * tydef is its state variable.
- */
-typedef enum {none, begin, middle, end } TYST;
-
-TYST tydef = none;
-
-char searchar = '/'; /* use /.../ searches */
-
-int lineno; /* line number of current line */
-char line[4*BUFSIZ], /* current input line */
- *curfile, /* current input file name */
- *outfile= "tags", /* output file */
- *white = " \f\t\n", /* white chars */
- *endtk = " \t\n\"'#()[]{}=-+%*/&|^~!<>;,.:?",
- /* token ending chars */
- *begtk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",
- /* token starting chars */
- *intk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz0123456789",
- /* valid in-token chars */
- *notgd = ",;"; /* non-valid after-function chars */
-
-int file_num; /* current file number */
-int aflag; /* -a: append to tags */
-int tflag; /* -t: create tags for typedefs */
-int uflag; /* -u: update tags */
-int wflag; /* -w: suppress warnings */
-int vflag; /* -v: create vgrind style index output */
-int xflag; /* -x: create cxref style output */
-
-char lbuf[BUFSIZ];
-
-FILE *inf, /* ioptr for current input file */
- *outf; /* ioptr for tags file */
-
-long lineftell; /* ftell after getc( inf ) == '\n' */
-
-NODE *head; /* the head of the sorted binary tree */
-
-char *savestr();
-char *rindex(), *index();
-char *toss_comment();
-
-main(ac,av)
-int ac;
-char *av[];