diff options
Diffstat (limited to 'ddb/db_lex.c')
-rw-r--r-- | ddb/db_lex.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/ddb/db_lex.c b/ddb/db_lex.c index ebffe062..8ab69106 100644 --- a/ddb/db_lex.c +++ b/ddb/db_lex.c @@ -50,7 +50,7 @@ db_expr_t db_look_token = 0; int db_read_line(repeat_last) - char *repeat_last; + const char *repeat_last; { int i; @@ -82,9 +82,9 @@ db_flush_line(void) } void -db_switch_input(buffer, size) - char *buffer; - int size; +db_switch_input( + char *buffer, + int size) { db_lp = buffer; db_last_lp = db_lp; @@ -94,8 +94,7 @@ db_switch_input(buffer, size) } void -db_save_lex_context(lp) - register struct db_lex_context *lp; +db_save_lex_context(struct db_lex_context *lp) { lp->l_ptr = db_lp; lp->l_eptr = db_endlp; @@ -105,7 +104,7 @@ db_save_lex_context(lp) void db_restore_lex_context(lp) - register struct db_lex_context *lp; + const struct db_lex_context *lp; { db_lp = lp->l_ptr; db_last_lp = db_lp; @@ -131,15 +130,13 @@ db_read_char(void) } void -db_unread_char(c) - int c; +db_unread_char(int c) { db_look_char = c; } void -db_unread_token(t) - int t; +db_unread_token(int t) { db_look_token = t; } @@ -179,10 +176,10 @@ db_flush_lex(void) void db_skip_to_eol(void) { - register int skip; - register int t; - register int n; - register char *p; + int skip; + int t; + int n; + char *p; t = db_read_token(); p = db_last_lp; @@ -205,8 +202,8 @@ db_skip_to_eol(void) int db_lex(void) { - register char *cp; - register int c; + char *cp; + int c; c = db_read_char(); while (c <= ' ' || c > '~') { |