diff lwasm/pragma.c @ 259:0c4b3e8b4d0b

Fix pragma nosymbolcase interaction with -D Actually make --pragma=nosymbolcase flag symbols defined subsequently on the command line as not being case sensitive. Otherwise, things don't behave quite as expected. There is still a gotcha in that if the -D appears before the --pragma option, the symbol will still be case sensitive.
author William Astle <lost@l-w.ca>
date Fri, 01 Feb 2013 00:04:19 -0700
parents 5d969517db74
children 507f442dc71e
line wrap: on
line diff
--- a/lwasm/pragma.c	Thu Jan 31 19:34:54 2013 -0700
+++ b/lwasm/pragma.c	Fri Feb 01 00:04:19 2013 -0700
@@ -73,6 +73,7 @@
 	while (np)
 	{
 		p = lw_token(np, ',', &np);
+		debug_message(as, 200, "Setting pragma %s", p);
 		for (i = 0; set_pragmas[i].setstr; i++)
 		{
 			if (!strcasecmp(p, set_pragmas[i].setstr))