comparison lwasm/lwasm.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 71f507f404f1
comparison
equal deleted inserted replaced
373:00fced888c5d 374:8e25147c2aa8
16 more details. 16 more details.
17 17
18 You should have received a copy of the GNU General Public License along with 18 You should have received a copy of the GNU General Public License along with
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
22 #define ___lwasm_c_seen___
23 21
24 #include <stdio.h> 22 #include <stdio.h>
25 #include <stdarg.h> 23 #include <stdarg.h>
26 #include <string.h> 24 #include <string.h>
27 #include <ctype.h> 25 #include <ctype.h>
998 996
999 /* 997 /*
1000 this does any passes and other gymnastics that might be useful 998 this does any passes and other gymnastics that might be useful
1001 to see if an expression reduces early 999 to see if an expression reduces early
1002 */ 1000 */
1003 extern void do_pass3(asmstate_t *as); 1001 void do_pass3(asmstate_t *as);
1004 extern void do_pass4_aux(asmstate_t *as, int force); 1002 void do_pass4_aux(asmstate_t *as, int force);
1005 1003
1006 void lwasm_interim_reduce(asmstate_t *as) 1004 void lwasm_interim_reduce(asmstate_t *as)
1007 { 1005 {
1008 do_pass3(as); 1006 do_pass3(as);
1009 // do_pass4_aux(as, 0); 1007 // do_pass4_aux(as, 0);