8 #if !defined(SDBWRITE_HOSTTOOL) 9 #define WIN32_NO_STATUS 22 #if !defined(offsetof) 24 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) 26 #define offsetof(TYPE, MEMBER) ((size_t)&(((TYPE *)0)->MEMBER)) 28 #endif // !defined(offsetof) 30 #define DEFAULT_TABLE_SIZE 0x100 51 SHIM_ERR(
"Failed to allocate 8 bytes.\r\n");
78 if (once &&
depth > 3)
116 if(!wcDest || !numElement)
126 if(
size > numElement)
142 entry = &(*entry)->Next;
163 entry->Tagid = tagid;
178 SHIM_ERR(
"Error creating hash table\n");
186 *tagid = (*entry)->Tagid;
INT Sdbwcscpy(WCHAR *wcDest, size_t numElement, const WCHAR *wcSrc)
void SdbpTableDestroy(struct SdbStringHashTable **pTable)
struct SdbHashEntry * Next
static const unsigned char *static size_t const wchar_t * wcSrc
#define offsetof(TYPE, MEMBER)
static DWORD StringHash(const WCHAR *str)
#define DEFAULT_TABLE_SIZE
static BOOL HashAddString(struct SdbStringHashTable *table, struct SdbHashEntry **position, const WCHAR *str, TAGID tagid)
struct SdbHashEntry ** Entries
GLint GLint GLsizei GLsizei GLsizei depth
int Sdbwcscmp(const WCHAR *s1, const WCHAR *s2)
#define memcpy(s1, s2, n)
struct SdbHashEntry SdbHashEntry
static struct SdbStringHashTable * HashCreate(void)
DWORD SdbpStrlen(PCWSTR string)
static unsigned __int64 next
static const EHCI_PERIOD pTable[]
BOOL SdbpAddStringToTable(struct SdbStringHashTable **table, const WCHAR *str, TAGID *tagid)
static struct SdbHashEntry ** TableFindPtr(struct SdbStringHashTable *table, const WCHAR *str)