* src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.

* src/lex.c (maxtoken, grow_token_buffer): Static.
This commit is contained in:
Akim Demaille
2001-01-18 15:32:11 +00:00
parent 6deb44470e
commit 0d6508efab
3 changed files with 9 additions and 10 deletions

View File

@@ -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.

View File

@@ -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;

View File

@@ -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_ */