mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
* src/lex.c (maxtoken, grow_token_buffer): Static.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-01-18 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
|
||||
* src/lex.c (maxtoken, grow_token_buffer): Static.
|
||||
|
||||
2001-01-18 Akim Demaille <akim@epita.fr>
|
||||
|
||||
Since we now use obstacks, more % directives can be enabled.
|
||||
|
||||
@@ -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;
|
||||
|
||||
10
src/lex.h
10
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_ */
|
||||
|
||||
Reference in New Issue
Block a user