diff lwcc/lex.c @ 296:83fcc1ed6ad6 ccdev

Checkpoint lwcc development Initial untested version of the preprocessor with macro expansion but without file inclusion.
author William Astle <lost@l-w.ca>
date Sat, 14 Sep 2013 20:04:38 -0600
parents 4b17780f2777
children 6112c67728ba
line wrap: on
line diff
--- a/lwcc/lex.c	Thu Sep 12 22:06:26 2013 -0600
+++ b/lwcc/lex.c	Sat Sep 14 20:04:38 2013 -0600
@@ -701,6 +701,7 @@
 	case '5': case '6': case '7': case '8': case '9':
 		strbuf = strbuf_new();
 numlit:
+		ttype = TOK_NUMBER;
 		strbuf_add(strbuf, c);
 		for (;;)
 		{