comparison src/pass1.c @ 22:b704f7ffc8ba

Added reading of input file for pass1
author lost
date Fri, 02 Jan 2009 00:43:19 +0000
parents 3c0e5f311c95
children d2e86babd958
comparison
equal deleted inserted replaced
21:3c0e5f311c95 22:b704f7ffc8ba
120 if (lbloc < 2048) 120 if (lbloc < 2048)
121 linebuff[lbloc++] = c; 121 linebuff[lbloc++] = c;
122 } 122 }
123 if (eol) 123 if (eol)
124 { 124 {
125 fprintf(stderr, "READ: %s\n", linebuff);
126 eol = 0; 125 eol = 0;
127 lbloc = 0; 126 lbloc = 0;
128 nl = lwasm_alloc(sizeof(lwasm_line_t)); 127 nl = lwasm_alloc(sizeof(lwasm_line_t));
129 nl -> text = lwasm_strdup(linebuff); 128 nl -> text = lwasm_strdup(linebuff);
130 nl -> lineno = lineno++; 129 nl -> lineno = lineno++;