diff options
| author | Toby Goodwin <tgoodwin@cygnus.co.uk> | 1997-07-07 00:00:01 +0100 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:22:09 +0100 |
| commit | 671e1e2d1599aa8c5f1010b3fe75c151c56a7403 (patch) | |
| tree | 906ba5d55d6993f59d7bb1def63d494bafd38728 /lex.c | |
| parent | a076248389c82276e079756bee26c011b03f70f2 (diff) | |
beta: rc-1.5b2
Diffstat (limited to 'lex.c')
| -rw-r--r-- | lex.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,7 +20,7 @@ it declared in rc.h) */ -#define BUFSIZE ((SIZE_T) 1000) /* malloc hates power of 2 buffers? */ +#define BUFSIZE ((size_t) 1000) /* malloc hates power of 2 buffers? */ #define BUFMAX (8 * BUFSIZE) /* How big the buffer can get before we re-allocate the space at BUFSIZE again. Premature optimization? Maybe. */ @@ -55,7 +55,7 @@ const char dnw[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; -static SIZE_T bufsize = BUFSIZE; +static size_t bufsize = BUFSIZE; static char *realbuf = NULL; static bool newline = FALSE; static bool errset = FALSE; @@ -73,7 +73,7 @@ extern int yylex() { static bool dollar = FALSE; bool saw_meta = FALSE; int c; - SIZE_T i; /* The purpose of all these local assignments is to */ + size_t i; /* The purpose of all these local assignments is to */ const char *meta; /* allow optimizing compilers like gcc to load these */ char *buf = realbuf; /* values into registers. On a sparc this is a */ YYSTYPE *y = &yylval; /* win, in code size *and* execution time */ @@ -338,7 +338,7 @@ extern void inityy() { extern void print_prompt2() { lineno++; -#ifdef READLINE +#if READLINE prompt = prompt2; #else if (interactive) |