diff src/pass1.c @ 35:39d750ee8d34

Added error display and fixed infinite loop in lwasm_parse_line()
author lost
date Fri, 02 Jan 2009 06:07:10 +0000
parents c0ff62e5ad39
children 538e15927776
line wrap: on
line diff
--- a/src/pass1.c	Fri Jan 02 05:17:00 2009 +0000
+++ b/src/pass1.c	Fri Jan 02 06:07:10 2009 +0000
@@ -60,6 +60,9 @@
 #include "lwasm.h"
 #include "util.h"
 
+
+extern int lwasm_parse_line(asmstate_t *as, lwasm_line_t *l);
+
 // we can't use standard line inputting functions here because we have to
 // handle non-standard line terminations (CR, LF, CRLF, or LFCR)
 int lwasm_read_file(asmstate_t *as, const char *filename)
@@ -138,6 +141,7 @@
 				as -> linestail = nl;
 			if (!(as -> lineshead))
 				as -> lineshead = nl;
+			lwasm_parse_line(as, nl);
 		}
 		if (c == EOF)
 			break;