ReactOS
0.4.15-dev-5608-gafb953a
|
#include "windows.h"
#include <appcompat/sdbtypes.h>
#include "sdbpapi.h"
#include "sdbstringtable.h"
Go to the source code of this file.
Classes | |
struct | SdbHashEntry |
struct | SdbStringHashTable |
Macros | |
#define | WIN32_NO_STATUS |
#define | offsetof(TYPE, MEMBER) ((size_t)&(((TYPE *)0)->MEMBER)) |
#define | DEFAULT_TABLE_SIZE 0x100 |
Typedefs | |
typedef struct SdbHashEntry | SdbHashEntry |
Functions | |
static struct SdbStringHashTable * | HashCreate (void) |
void | SdbpTableDestroy (struct SdbStringHashTable **pTable) |
static DWORD | StringHash (const WCHAR *str) |
int | Sdbwcscmp (const WCHAR *s1, const WCHAR *s2) |
INT | Sdbwcscpy (WCHAR *wcDest, size_t numElement, const WCHAR *wcSrc) |
static struct SdbHashEntry ** | TableFindPtr (struct SdbStringHashTable *table, const WCHAR *str) |
static BOOL | HashAddString (struct SdbStringHashTable *table, struct SdbHashEntry **position, const WCHAR *str, TAGID tagid) |
BOOL | SdbpAddStringToTable (struct SdbStringHashTable **table, const WCHAR *str, TAGID *tagid) |
#define DEFAULT_TABLE_SIZE 0x100 |
Definition at line 30 of file sdbstringtable.c.
Definition at line 26 of file sdbstringtable.c.
#define WIN32_NO_STATUS |
Definition at line 9 of file sdbstringtable.c.
typedef struct SdbHashEntry SdbHashEntry |
|
static |
Definition at line 147 of file sdbstringtable.c.
Referenced by SdbpAddStringToTable().
|
static |
Definition at line 46 of file sdbstringtable.c.
Referenced by SdbpAddStringToTable().
Find an entry in the stringtable, or allocate it when an entry could not be found.
[in] | table | Pointer to table pointer, will be allocated when needed. |
[in] | str | The string to search for |
[in,out] | pTagid | the data written (in bytes) |
Definition at line 169 of file sdbstringtable.c.
Referenced by SdbpGetOrAddStringRef().
void SdbpTableDestroy | ( | struct SdbStringHashTable ** | table | ) |
Destroy the hashtable and release all resources.
[in] | table | Pointer to table pointer, will be cleared after use |
Definition at line 60 of file sdbstringtable.c.
Referenced by SdbCloseDatabase().
Definition at line 89 of file sdbstringtable.c.
Referenced by ConvertCoffs(), ConvertStabs(), and TableFindPtr().
|
static |
Definition at line 134 of file sdbstringtable.c.
Referenced by HashAddString(), and SdbpAddStringToTable().