… | |
… | |
232 | inline bool operator ==(const shstr_tmp &a, const shstr_cmp &b) |
232 | inline bool operator ==(const shstr_tmp &a, const shstr_cmp &b) |
233 | { |
233 | { |
234 | return a.s == b.s; |
234 | return a.s == b.s; |
235 | } |
235 | } |
236 | |
236 | |
237 | struct shstr_const : shstr_tmp |
|
|
238 | { |
|
|
239 | shstr_const (const char *s) |
|
|
240 | : shstr_tmp (0, s) |
|
|
241 | { |
|
|
242 | } |
|
|
243 | }; |
|
|
244 | |
|
|
245 | #define def(str) extern const shstr_const shstr_ ## str; |
237 | #define def(str) extern const shstr shstr_ ## str; |
246 | # include "shstrinc.h" |
238 | # include "shstrinc.h" |
247 | #undef def |
239 | #undef def |
248 | |
240 | |
249 | #endif |
241 | #endif |
250 | |
242 | |