Mercurial > hg > index.cgi
comparison lwasm/main.c @ 374:8e25147c2aa8
Clean up various "externs"
Apparently some compilers seriously choke on the "extern" keyword in some
circumstances where GCC does not. Remove most instances of "extern" to guard
against that.
Thanks to Erik G <erik@6809.org> for the patch.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 13 Jul 2015 20:31:56 -0600 |
parents | c6d2a1f54e0c |
children | 71f507f404f1 |
comparison
equal
deleted
inserted
replaced
373:00fced888c5d | 374:8e25147c2aa8 |
---|---|
30 #include <lw_cmdline.h> | 30 #include <lw_cmdline.h> |
31 | 31 |
32 #include "lwasm.h" | 32 #include "lwasm.h" |
33 #include "input.h" | 33 #include "input.h" |
34 | 34 |
35 extern void lwasm_do_unicorns(asmstate_t *as); | 35 void lwasm_do_unicorns(asmstate_t *as); |
36 | 36 |
37 extern int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr); | 37 int parse_pragma_string(asmstate_t *as, char *str, int ignoreerr); |
38 | 38 |
39 /* command line option handling */ | 39 /* command line option handling */ |
40 #define PROGVER "lwasm from " PACKAGE_STRING | 40 #define PROGVER "lwasm from " PACKAGE_STRING |
41 char *program_name; | 41 char *program_name; |
42 | 42 |
241 | 241 |
242 /* | 242 /* |
243 main function; parse command line, set up assembler state, and run the | 243 main function; parse command line, set up assembler state, and run the |
244 assembler on the first file | 244 assembler on the first file |
245 */ | 245 */ |
246 extern void do_pass1(asmstate_t *as); | 246 void do_pass1(asmstate_t *as); |
247 extern void do_pass2(asmstate_t *as); | 247 void do_pass2(asmstate_t *as); |
248 extern void do_pass3(asmstate_t *as); | 248 void do_pass3(asmstate_t *as); |
249 extern void do_pass4(asmstate_t *as); | 249 void do_pass4(asmstate_t *as); |
250 extern void do_pass5(asmstate_t *as); | 250 void do_pass5(asmstate_t *as); |
251 extern void do_pass6(asmstate_t *as); | 251 void do_pass6(asmstate_t *as); |
252 extern void do_pass7(asmstate_t *as); | 252 void do_pass7(asmstate_t *as); |
253 extern void do_output(asmstate_t *as); | 253 void do_output(asmstate_t *as); |
254 extern void do_list(asmstate_t *as); | 254 void do_list(asmstate_t *as); |
255 extern void do_map(asmstate_t *as); | 255 void do_map(asmstate_t *as); |
256 extern lw_expr_t lwasm_evaluate_special(int t, void *ptr, void *priv); | 256 lw_expr_t lwasm_evaluate_special(int t, void *ptr, void *priv); |
257 extern lw_expr_t lwasm_evaluate_var(char *var, void *priv); | 257 lw_expr_t lwasm_evaluate_var(char *var, void *priv); |
258 extern lw_expr_t lwasm_parse_term(char **p, void *priv); | 258 lw_expr_t lwasm_parse_term(char **p, void *priv); |
259 extern void lwasm_dividezero(void *priv); | 259 void lwasm_dividezero(void *priv); |
260 | 260 |
261 struct passlist_s | 261 struct passlist_s |
262 { | 262 { |
263 char *passname; | 263 char *passname; |
264 void (*fn)(asmstate_t *as); | 264 void (*fn)(asmstate_t *as); |