comparison src/main.c @ 46:b962cee20bf4

Ported output modules forward from old version
author lost
date Sun, 04 Jan 2009 07:07:00 +0000
parents 9bd584bb6296
children c8c772ef5df9
comparison
equal deleted inserted replaced
45:be459d69f481 46:b962cee20bf4
35 35
36 // external declarations 36 // external declarations
37 extern void lwasm_pass1(asmstate_t *as); 37 extern void lwasm_pass1(asmstate_t *as);
38 extern void lwasm_pass2(asmstate_t *as); 38 extern void lwasm_pass2(asmstate_t *as);
39 extern void lwasm_list(asmstate_t *as); 39 extern void lwasm_list(asmstate_t *as);
40 extern void lwasm_output(asmstate_t *as);
40 41
41 // command line option handling 42 // command line option handling
42 const char *argp_program_version = PACKAGE_STRING; 43 const char *argp_program_version = PACKAGE_STRING;
43 const char *argp_program_bug_address = PACKAGE_BUGREPORT; 44 const char *argp_program_bug_address = PACKAGE_BUGREPORT;
44 45
172 173
173 // now make a pretty listing 174 // now make a pretty listing
174 lwasm_list(&asmstate); 175 lwasm_list(&asmstate);
175 176
176 // now write the code out to the output file 177 // now write the code out to the output file
177 // lwasm_output(&asmstate); 178 lwasm_output(&asmstate);
178 179
179 if (asmstate.errorcount > 0) 180 if (asmstate.errorcount > 0)
180 exit(1); 181 exit(1);
181 182
182 exit(0); 183 exit(0);