--- deliantra/server/include/shstr.h 2006/08/29 08:01:36 1.3 +++ deliantra/server/include/shstr.h 2006/08/31 17:54:14 1.4 @@ -1,6 +1,8 @@ #ifndef SHSTR_H__ #define SHSTR_H__ +//// OLD STUFF + /* The size of the shared strings hashtable. This must be smaller than * 32767, but 947 ought to be plenty enough. */ @@ -82,5 +84,18 @@ extern const char *ss_dump_table(int what); extern int buf_overflow(const char *buf1, const char *buf2, int bufsize); +//// NEW STUFF + +#if 0 +struct shstr +{ + const char *s; + operator const char *() const { return s; }; + shstr &operator =(const char *str) { s = str; }; +}; +#else +typedef const char *shstr; +#endif + #endif