Mercurial > hg > index.cgi
comparison lwasm/pass1.c @ 2:7317fbe024af
Clean up insane number of compiler warnings under -Wall
author | lost@l-w.ca |
---|---|
date | Thu, 20 Jan 2011 22:39:46 -0700 |
parents | 2c24602be78f |
children | d96037ea0b80 |
comparison
equal
deleted
inserted
replaced
1:96c4dc89016e | 2:7317fbe024af |
---|---|
19 this program. If not, see <http://www.gnu.org/licenses/>. | 19 this program. If not, see <http://www.gnu.org/licenses/>. |
20 */ | 20 */ |
21 | 21 |
22 #include <stdio.h> | 22 #include <stdio.h> |
23 #include <string.h> | 23 #include <string.h> |
24 #include <ctype.h> | |
25 #include <stdlib.h> | |
24 | 26 |
25 #include <lw_alloc.h> | 27 #include <lw_alloc.h> |
26 #include <lw_string.h> | 28 #include <lw_string.h> |
27 | 29 |
28 #include "lwasm.h" | 30 #include "lwasm.h" |
29 #include "instab.h" | 31 #include "instab.h" |
30 #include "input.h" | 32 #include "input.h" |
31 | 33 |
32 extern int expand_macro(asmstate_t *as, line_t *l, char **p, char *opc); | 34 extern int expand_macro(asmstate_t *as, line_t *l, char **p, char *opc); |
33 extern int expand_struct(asmstate_t *as, line_t *l, char **p, char *opc); | 35 extern int expand_struct(asmstate_t *as, line_t *l, char **p, char *opc); |
36 extern int add_macro_line(asmstate_t *as, char *optr); | |
34 | 37 |
35 /* | 38 /* |
36 pass 1: parse the lines | 39 pass 1: parse the lines |
37 | 40 |
38 line format: | 41 line format: |