diff options
author | cwt <cwt@FreeBSD.org> | 1997-12-15 23:08:46 +0000 |
---|---|---|
committer | cwt <cwt@FreeBSD.org> | 1997-12-15 23:08:46 +0000 |
commit | b1200e5a86469f83f9487d32847b49df6f6e8d81 (patch) | |
tree | 84ffbd5bfaa52e29af60dccffd70e807e7110a91 /contrib/global/gctags/ctags.h | |
parent | d9973ba95ba5804ff9b4d3b5295bc5126726e474 (diff) | |
parent | 2d4696c8a0217d673b65b4f308e71d6ae8f5ebc6 (diff) | |
download | FreeBSD-src-b1200e5a86469f83f9487d32847b49df6f6e8d81.zip FreeBSD-src-b1200e5a86469f83f9487d32847b49df6f6e8d81.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r31750,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/global/gctags/ctags.h')
-rw-r--r-- | contrib/global/gctags/ctags.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/contrib/global/gctags/ctags.h b/contrib/global/gctags/ctags.h index b1bb287..7cd3733 100644 --- a/contrib/global/gctags/ctags.h +++ b/contrib/global/gctags/ctags.h @@ -47,7 +47,11 @@ #endif #define SETLINE {++lineno;lineftell = ftell(inf);} +#ifdef GLOBAL +#define GETC(op,exp) ((((c = getc(inf)) == '\r') ? (c = getc(inf)) : c) op (int)exp) +#else #define GETC(op,exp) ((c = getc(inf)) op (int)exp) +#endif #define iswhite(arg) (_wht[(unsigned)arg]) /* T if char is white */ #define begtoken(arg) (_btk[(unsigned)arg]) /* T if char can start token */ @@ -71,11 +75,13 @@ extern FILE *inf; /* ioptr for current input file */ extern FILE *outf; /* ioptr for current output file */ extern long lineftell; /* ftell after getc( inf ) == '\n' */ extern int lineno; /* line number of current line */ -#ifdef GTAGS +#ifdef GLOBAL +extern int cflag; /* -c: compact index */ extern int eflag; /* -e: '{' at 0 column force function end */ extern int Dflag; /* -D: allow duplicate entrys */ extern int rflag; /* -r: function reference */ -#endif /* GTAGS */ +extern int sflag; /* -s: collect symbols */ +#endif extern int dflag; /* -d: non-macro defines */ extern int tflag; /* -t: create tags for typedefs */ extern int vflag; /* -v: vgrind style index output */ @@ -85,6 +91,7 @@ extern bool _wht[], _etk[], _itk[], _btk[], _gd[]; extern char lbuf[LINE_MAX]; extern char *lbp; extern char searchar; /* ex search character */ +extern char *progname; /* program name */ #ifndef __P #ifdef __STDC__ @@ -105,9 +112,7 @@ void y_entries __P((void)); int PF_funcs __P((void)); void c_entries __P((void)); void skip_comment __P((void)); -#ifdef GTAGS +#ifdef GLOBAL void asm_entries __P((void)); -void gtagopen __P((void)); -int isdefined __P((char *)); -void gtagclose __P((void)); +int portable_getc __P((FILE *)); #endif |