Crossfire Server, Trunk
|
Go to the source code of this file.
Data Structures | |
struct | shared_string |
Macros | |
#define | GATHER(n) |
#define | MAXSTRING 20 |
#define | offsetof(type, member) (int)&(((type *)0)->member) |
#define | PADDING ((2*sizeof(long)-sizeof(REFCOUNT_TYPE))%sizeof(long))+1 |
#define | REFCOUNT_TYPE int |
#define | SS(x) ((shared_string *) ((x)-offsetof(shared_string, string))) |
#define | SS_DUMP_TABLE 1 |
#define | SS_DUMP_TOTALS 2 |
#define | TABLESIZE 4133 |
#define | TOPBIT ((unsigned REFCOUNT_TYPE)1<<(sizeof(REFCOUNT_TYPE)*CHAR_BIT-1)) |
Shared-strings defines.
Definition in file shstr.h.
#define MAXSTRING 20 |
#define offsetof | ( | type, | |
member | |||
) | (int)&(((type *)0)->member) |
#define PADDING ((2*sizeof(long)-sizeof(REFCOUNT_TYPE))%sizeof(long))+1 |
#define REFCOUNT_TYPE int |
#define SS | ( | x | ) | ((shared_string *) ((x)-offsetof(shared_string, string))) |
SS(string) will return the address of the shared_string struct which contains "string".
#define TABLESIZE 4133 |
#define TOPBIT ((unsigned REFCOUNT_TYPE)1<<(sizeof(REFCOUNT_TYPE)*CHAR_BIT-1)) |