Crossfire Server, Trunk
sstring.h
Go to the documentation of this file.
1 #pragma once
2 typedef const char *sstring;
3 
4 /* shstr.cpp */
5 extern void init_hash_table(void);
6 extern sstring add_string(const char *str);
8 extern int query_refcount(sstring str);
9 extern sstring find_string(const char *str);
10 extern void free_string(sstring str);
11 extern void ss_dump_statistics(char *buf, size_t size);
12 extern char *ss_dump_table(int what, char *buf, size_t size);
13 extern int buf_overflow(const char *buf1, const char *buf2, size_t bufsize);
add_refcount
sstring add_refcount(sstring str)
Definition: shstr.cpp:210
ss_dump_statistics
void ss_dump_statistics(char *buf, size_t size)
Definition: shstr.cpp:323
init_hash_table
void init_hash_table(void)
Definition: shstr.cpp:55
buf
StringBuffer * buf
Definition: readable.cpp:1565
make_face_from_files.str
str
Definition: make_face_from_files.py:30
buf_overflow
int buf_overflow(const char *buf1, const char *buf2, size_t bufsize)
Definition: shstr.cpp:398
query_refcount
int query_refcount(sstring str)
Definition: shstr.cpp:224
add_string
sstring add_string(const char *str)
Definition: shstr.cpp:124
ss_dump_table
char * ss_dump_table(int what, char *buf, size_t size)
Definition: shstr.cpp:354
find_string
sstring find_string(const char *str)
Definition: shstr.cpp:236
free_string
void free_string(sstring str)
Definition: shstr.cpp:280
sstring
const typedef char * sstring
Definition: sstring.h:2