diff lwasm/symbol.c @ 236:a58f49a77441

Added os9 target, pragma to control whether $ localizes a symbol, and fixed some condition nesting bugs
author lost
date Fri, 14 Aug 2009 03:22:26 +0000
parents bae1e3ecdce1
children c7a41b4c89b3
line wrap: on
line diff
--- a/lwasm/symbol.c	Fri Jun 12 05:25:41 2009 +0000
+++ b/lwasm/symbol.c	Fri Aug 14 03:22:26 2009 +0000
@@ -85,7 +85,7 @@
 			return -1;
 		}
 		// flag local symbols while we're at it...
-		if (*p == '?' || *p == '@' || *p == '$')
+		if (*p == '?' || *p == '@' || (*p == '$' && !(as -> pragmas & PRAGMA_DOLLARNOTLOCAL)))
 			scontext = as -> context;
 	}