shithub: scc

Download patch

ref: 8c3f4becbfcf1c268d58909bd61d4045d0e21302
parent: aea5de4f99d00f5ca4c7f7503be3208f9666e623
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Jun 12 17:46:12 EDT 2012

Small modifications in parameters of expect and open_file

Declared parameters as register.

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