From 0d6508efab13d47fb08e9b49a90579abfb3a6d20 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 18 Jan 2001 15:32:11 +0000 Subject: [PATCH] * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private. * src/lex.c (maxtoken, grow_token_buffer): Static. --- ChangeLog | 5 +++++ src/lex.c | 4 ++-- src/lex.h | 10 ++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index c4380a93..a7f4dc31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-01-18 Akim Demaille + + * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private. + * src/lex.c (maxtoken, grow_token_buffer): Static. + 2001-01-18 Akim Demaille Since we now use obstacks, more % directives can be enabled. diff --git a/src/lex.c b/src/lex.c index 6e547124..371fbed9 100644 --- a/src/lex.c +++ b/src/lex.c @@ -33,7 +33,7 @@ char *token_buffer; /* Allocated size of token_buffer, not including space for terminator. */ -int maxtoken; +static int maxtoken; bucket *symval; int numval; @@ -51,7 +51,7 @@ init_lex (void) } -char * +static char * grow_token_buffer (char *p) { int offset = p - token_buffer; diff --git a/src/lex.h b/src/lex.h index 3e4560f5..d14479aa 100644 --- a/src/lex.h +++ b/src/lex.h @@ -49,13 +49,10 @@ # define SETOPT 26 # define ILLEGAL 27 -# define MAXTOKEN 1024 - -/* Allocated size of token_buffer, not including space for terminator. */ -extern int maxtoken; extern char *token_buffer; -char *grow_token_buffer PARAMS ((char *)); +extern bucket *symval; +extern int numval; void init_lex PARAMS ((void)); int skip_white_space PARAMS ((void)); @@ -71,7 +68,4 @@ int lex PARAMS ((void)); int parse_percent_token PARAMS ((void)); -extern bucket *symval; -extern int numval; - #endif /* !LEX_H_ */ -- 2.45.2