diff lwasm/pseudo.c @ 348:11a95c6414b4

Added third func to instab to split resolve and emit logic
author lost@starbug
date Sat, 27 Mar 2010 22:15:07 -0600
parents 1649bc7bda5a
children dcd2978a7d18
line wrap: on
line diff
--- a/lwasm/pseudo.c	Sat Mar 27 20:16:24 2010 -0600
+++ b/lwasm/pseudo.c	Sat Mar 27 22:15:07 2010 -0600
@@ -24,15 +24,6 @@
 #include "lwasm.h"
 #include "instab.h"
 
-// for no-op pseudos
-PARSEFUNC(pseudo_parse_noop)
-{
-}
-
-RESOLVEFUNC(pseudo_resolve_noop)
-{
-}
-
 // for "end"
 PARSEFUNC(pseudo_parse_end)
 {
@@ -55,7 +46,7 @@
 	lwasm_save_expr(l, 0, addr);
 }
 
-RESOLVEFUNC(pseudo_resolve_end)
+EMITFUNC(pseudo_emit_end)
 {
 	lw_expr_t addr;
 	
@@ -91,7 +82,7 @@
 	l -> len = i;
 }
 
-RESOLVEFUNC(pseudo_resolve_fcb)
+EMITFUNC(pseudo_emit_fcb)
 {
 	int i;
 	lw_expr_t e;
@@ -124,7 +115,7 @@
 	l -> len = i * 2;
 }
 
-RESOLVEFUNC(pseudo_resolve_fdb)
+EMITFUNC(pseudo_emit_fdb)
 {
 	int i;
 	lw_expr_t e;
@@ -157,7 +148,7 @@
 	l -> len = i * 4;
 }
 
-RESOLVEFUNC(pseudo_resolve_fqb)
+EMITFUNC(pseudo_emit_fqb)
 {
 	int i;
 	lw_expr_t e;