summaryrefslogtreecommitdiffstats
path: root/libidu/scanners.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1998-11-18 23:54:08 +0000
committerGreg McGary <greg@mcgary.org>1998-11-18 23:54:08 +0000
commit558f2a3dd52cea1fee37719bb6a0b1e86c2e3ab3 (patch)
treee6602b566b584dd974a20f495e9a1656440a2612 /libidu/scanners.c
parentfcb807bafa95a9ca4337bcc213d0f73591389afb (diff)
downloadidutils-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.c4
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;