comparison lwasm/insn_gen.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 8764142b3192
children 35d4213e6657
comparison
equal deleted inserted replaced
373:00fced888c5d 374:8e25147c2aa8
25 #include <lw_expr.h> 25 #include <lw_expr.h>
26 26
27 #include "lwasm.h" 27 #include "lwasm.h"
28 #include "instab.h" 28 #include "instab.h"
29 29
30 extern void insn_indexed_parse_aux(asmstate_t *as, line_t *l, char **p); 30 void insn_indexed_parse_aux(asmstate_t *as, line_t *l, char **p);
31 extern void insn_indexed_resolve_aux(asmstate_t *as, line_t *l, int force, int elen); 31 void insn_indexed_resolve_aux(asmstate_t *as, line_t *l, int force, int elen);
32 extern void insn_indexed_emit_aux(asmstate_t *as, line_t *l); 32 void insn_indexed_emit_aux(asmstate_t *as, line_t *l);
33 33
34 extern void insn_parse_indexed_aux(asmstate_t *as, line_t *l, char **p); 34 void insn_parse_indexed_aux(asmstate_t *as, line_t *l, char **p);
35 extern void insn_resolve_indexed_aux(asmstate_t *as, line_t *l, int force, int elen); 35 void insn_resolve_indexed_aux(asmstate_t *as, line_t *l, int force, int elen);
36 36
37 // "extra" is required due to the way OIM, EIM, TIM, and AIM work 37 // "extra" is required due to the way OIM, EIM, TIM, and AIM work
38 void insn_parse_gen_aux(asmstate_t *as, line_t *l, char **p, int elen) 38 void insn_parse_gen_aux(asmstate_t *as, line_t *l, char **p, int elen)
39 { 39 {
40 const char *optr2; 40 const char *optr2;