scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 8c3f4becbfcf1c268d58909bd61d4045d0e21302
parent aea5de4f99d00f5ca4c7f7503be3208f9666e623
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 12 Jun 2012 21:46:12 +0200

Small modifications in parameters of expect and open_file

Declared parameters as register.

Diffstat:
Mlex.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lex.c b/lex.c @@ -181,14 +181,14 @@ char accept(register unsigned char tok) return 0; } -void expect(unsigned char tok) +void expect(register unsigned char tok) { if (yytoken != tok) error("unexpected %s", yytext); next(); } -void open_file(const char *file) +void open_file(register const char *file) { if (yyin != NULL) fclose(yyin);