summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
authorToby Goodwin <tgoodwin@cygnus.co.uk>1997-07-07 00:00:01 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:59 +0100
commitb87bfedf65c289bf0ee5338c9e10492b70b1e8e0 (patch)
tree906ba5d55d6993f59d7bb1def63d494bafd38728 /lex.c
parent5556dde4d3ad4e34267320b1411fc090b18a24b0 (diff)
beta: rc-1.5b2
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lex.c b/lex.c
index a4e4106..a763ce4 100644
--- a/lex.c
+++ b/lex.c
@@ -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)