![]() |
Crossfire Server, Trunk
1.75.0
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | shared_string |
| One actual shared string. More... | |
Macros | |
| #define | GATHER(n) |
| #define | MAXSTRING 20 |
| This specifies how many characters the hashing routine should look at. More... | |
| #define | offsetof(type, member) (int)&(((type *)0)->member) |
| The offsetof macro is part of ANSI C, but many compilers lack it, for example "gcc -ansi". More... | |
| #define | PADDING ((2*sizeof(long)-sizeof(REFCOUNT_TYPE))%sizeof(long))+1 |
| #define | REFCOUNT_TYPE int |
| In the unlikely occurence that 16383 references to a string are too few, you can modify the below type to something bigger. More... | |
| #define | SS(x) ((shared_string *) ((x)-offsetof(shared_string, string))) |
| SS(string) will return the address of the shared_string struct which contains "string". More... | |
| #define | SS_DUMP_TABLE 1 |
| #define | SS_DUMP_TOTALS 2 |
| #define | TABLESIZE 4133 |
| The size of the shared strings hashtable. More... | |
| #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)) |