diff 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
line wrap: on
line diff
--- a/lwasm/lwasm.c	Wed Jun 24 19:39:13 2015 -0600
+++ b/lwasm/lwasm.c	Mon Jul 13 20:31:56 2015 -0600
@@ -19,8 +19,6 @@
 this program. If not, see <http://www.gnu.org/licenses/>.
 */
 
-#define ___lwasm_c_seen___
-
 #include <stdio.h>
 #include <stdarg.h>
 #include <string.h>
@@ -1000,8 +998,8 @@
 this does any passes and other gymnastics that might be useful
 to see if an expression reduces early
 */
-extern void do_pass3(asmstate_t *as);
-extern void do_pass4_aux(asmstate_t *as, int force);
+void do_pass3(asmstate_t *as);
+void do_pass4_aux(asmstate_t *as, int force);
 
 void lwasm_interim_reduce(asmstate_t *as)
 {