Mercurial > hg-old > index.cgi
comparison src/pragma.c @ 144:006d737756fd
Made pragmas not be case sensitive
author | lost |
---|---|
date | Thu, 29 Jan 2009 06:12:21 +0000 |
parents | 0ee5f65bccf9 |
children |
comparison
equal
deleted
inserted
replaced
143:0ee5f65bccf9 | 144:006d737756fd |
---|---|
81 *optr = NULL; | 81 *optr = NULL; |
82 } | 82 } |
83 return; | 83 return; |
84 } | 84 } |
85 pragma[c] = 0; | 85 pragma[c] = 0; |
86 if (!strcmp(pragma, "noindex0tonone")) | 86 if (!strcasecmp(pragma, "noindex0tonone")) |
87 { | 87 { |
88 as -> pragmas |= PRAGMA_NOINDEX0TONONE; | 88 as -> pragmas |= PRAGMA_NOINDEX0TONONE; |
89 } | 89 } |
90 else if (!strcmp(pragma, "index0tonone")) | 90 else if (!strcasecmp(pragma, "index0tonone")) |
91 { | 91 { |
92 as -> pragmas &= ~PRAGMA_NOINDEX0TONONE; | 92 as -> pragmas &= ~PRAGMA_NOINDEX0TONONE; |
93 } | 93 } |
94 else if (!strcmp(pragma, "undefextern")) | 94 else if (!strcasecmp(pragma, "undefextern")) |
95 { | 95 { |
96 as -> pragmas |= PRAGMA_UNDEFEXTERN; | 96 as -> pragmas |= PRAGMA_UNDEFEXTERN; |
97 } | 97 } |
98 else if (!strcmp(pragma, "noundefextern")) | 98 else if (!strcasecmp(pragma, "noundefextern")) |
99 { | 99 { |
100 as -> pragmas &= ~PRAGMA_UNDEFEXTERN; | 100 as -> pragmas &= ~PRAGMA_UNDEFEXTERN; |
101 } | 101 } |
102 else | 102 else |
103 { | 103 { |