1 | #ifndef SHSTR_H__ |
1 | #ifndef SHSTR_H__ |
2 | #define SHSTR_H__ |
2 | #define SHSTR_H__ |
|
|
3 | |
|
|
4 | //// OLD STUFF |
3 | |
5 | |
4 | /* The size of the shared strings hashtable. This must be smaller than |
6 | /* The size of the shared strings hashtable. This must be smaller than |
5 | * 32767, but 947 ought to be plenty enough. |
7 | * 32767, but 947 ought to be plenty enough. |
6 | */ |
8 | */ |
7 | #define TABLESIZE 4133 |
9 | #define TABLESIZE 4133 |
… | |
… | |
80 | extern void free_string(const char *str); |
82 | extern void free_string(const char *str); |
81 | extern void ss_dump_statistics(void); |
83 | extern void ss_dump_statistics(void); |
82 | extern const char *ss_dump_table(int what); |
84 | extern const char *ss_dump_table(int what); |
83 | extern int buf_overflow(const char *buf1, const char *buf2, int bufsize); |
85 | extern int buf_overflow(const char *buf1, const char *buf2, int bufsize); |
84 | |
86 | |
|
|
87 | //// NEW STUFF |
|
|
88 | |
|
|
89 | #if 0 |
|
|
90 | struct shstr |
|
|
91 | { |
|
|
92 | const char *s; |
|
|
93 | operator const char *() const { return s; }; |
|
|
94 | shstr &operator =(const char *str) { s = str; }; |
|
|
95 | }; |
|
|
96 | #else |
|
|
97 | typedef const char *shstr; |
85 | #endif |
98 | #endif |
86 | |
99 | |
|
|
100 | #endif |
|
|
101 | |