# HG changeset patch # User William Astle # Date 1360036315 25200 # Node ID f45b2a68c3da80bd864b931acc5968979659ab83 # Parent c5b1dd523ac443e657620158afc091edd6d66434 Make case insensitive symbols error out on duplication Make case insensitive symbols raise multiply defined symbol errors in the following circumstances: * if the original symbol was defined under symbolnocase * if the current symbol is being defined under symbolnocse diff -r c5b1dd523ac4 -r f45b2a68c3da lwasm/symbol.c --- a/lwasm/symbol.c Mon Feb 04 20:35:47 2013 -0700 +++ b/lwasm/symbol.c Mon Feb 04 20:51:55 2013 -0700 @@ -135,7 +135,10 @@ if (!ndir && !(se -> flags & symbol_flag_set)) { if (strcmp(sym, se -> symbol)) - ndir = 1; + { + if (!CURPRAGMA(cl, PRAGMA_SYMBOLNOCASE) && !(se -> flags & symbol_flag_nocase)) + ndir = 1; + } } if (!ndir && se -> context != context) {