comparison 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
comparison
equal deleted inserted replaced
258:ebda5c96665e 259:0c4b3e8b4d0b
71 int pragmas = as -> pragmas; 71 int pragmas = as -> pragmas;
72 72
73 while (np) 73 while (np)
74 { 74 {
75 p = lw_token(np, ',', &np); 75 p = lw_token(np, ',', &np);
76 debug_message(as, 200, "Setting pragma %s", p);
76 for (i = 0; set_pragmas[i].setstr; i++) 77 for (i = 0; set_pragmas[i].setstr; i++)
77 { 78 {
78 if (!strcasecmp(p, set_pragmas[i].setstr)) 79 if (!strcasecmp(p, set_pragmas[i].setstr))
79 { 80 {
80 pragmas |= set_pragmas[i].flag; 81 pragmas |= set_pragmas[i].flag;