… | |
… | |
23 | #define SHSTR_H__ |
23 | #define SHSTR_H__ |
24 | |
24 | |
25 | #include <sstream> |
25 | #include <sstream> |
26 | |
26 | |
27 | #include "util.h" |
27 | #include "util.h" |
|
|
28 | |
|
|
29 | extern size_t shstr_alloc; |
28 | |
30 | |
29 | extern int buf_overflow (const char *buf1, const char *buf2, int bufsize); |
31 | extern int buf_overflow (const char *buf1, const char *buf2, int bufsize); |
30 | |
32 | |
31 | struct shstr |
33 | struct shstr |
32 | { |
34 | { |
… | |
… | |
177 | inline bool operator ==(const shstr &a, const shstr_cmp &b) |
179 | inline bool operator ==(const shstr &a, const shstr_cmp &b) |
178 | { |
180 | { |
179 | return b == a; |
181 | return b == a; |
180 | } |
182 | } |
181 | |
183 | |
182 | extern const shstr undead_name; /* Used in hit_player() in main.c */ |
184 | #define def(str) extern const shstr shstr_ ## str; |
|
|
185 | # include "shstrinc.h" |
|
|
186 | #undef def |
183 | |
187 | |
184 | #endif |
188 | #endif |
185 | |
189 | |