diff options
author | Greg McGary <greg@mcgary.org> | 1998-11-18 23:54:08 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 1998-11-18 23:54:08 +0000 |
commit | 558f2a3dd52cea1fee37719bb6a0b1e86c2e3ab3 (patch) | |
tree | e6602b566b584dd974a20f495e9a1656440a2612 /libidu/scanners.c | |
parent | fcb807bafa95a9ca4337bcc213d0f73591389afb (diff) | |
download | idutils-558f2a3dd52cea1fee37719bb6a0b1e86c2e3ab3.tar.gz idutils-558f2a3dd52cea1fee37719bb6a0b1e86c2e3ab3.tar.bz2 idutils-558f2a3dd52cea1fee37719bb6a0b1e86c2e3ab3.zip |
* libidu/scanners.c (id_0): Increase size and make file static.
Diffstat (limited to 'libidu/scanners.c')
-rw-r--r-- | libidu/scanners.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libidu/scanners.c b/libidu/scanners.c index fceeb1c..d60f939 100644 --- a/libidu/scanners.c +++ b/libidu/scanners.c @@ -473,6 +473,7 @@ parse_args_c (char **argv, int argc) return args; } +static char id_0[1<<020]; /* Grab the next identifier from the C source file. This state machine is built for speed, not elegance. */ @@ -483,7 +484,6 @@ get_token_c (FILE *in_FILE, void const *args, int *flags) #define ARGS ((struct args_c const *) args) static int new_line = 1; unsigned short const *rct = &ARGS->ctype[1]; - char id_0[BUFSIZ]; char *id = id_0; int c; @@ -869,7 +869,6 @@ get_token_asm (FILE *in_FILE, void const *args, int *flags) #define ARGS ((struct args_asm const *) args) static int new_line = 1; unsigned char const *rct = &ARGS->ctype[1]; - char id_0[BUFSIZ]; char *id = id_0; int c; @@ -1154,7 +1153,6 @@ static struct token * get_token_text (FILE *in_FILE, void const *args, int *flags) { #define ARGS ((struct args_text const *) args) - static char id_0[BUFSIZ]; unsigned char const *rct = &ARGS->ctype[1]; int c; char *id = id_0; |