windows-nt/Source/XPSP1/NT/drivers/tpg/hwx/factoid/inc/strtable.h
2020-09-26 16:20:57 +08:00

34 lines
573 B
C

// strtable.h
// Angshuman Guha
// aguha
// Dec 1, 2000
#ifndef __INC_STRTABLE_H
#define __INC_STRTABLE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct tagStringNode {
WCHAR *wsz;
short value;
struct tagStringNode *left;
struct tagStringNode *right;
} STRINGNODE;
typedef struct tagStringTable {
int count;
STRINGNODE *root;
} STRINGTABLE;
int InsertSymbol(WCHAR *wsz, int length, STRINGTABLE *strtable);
WCHAR **FlattenSymbolTable(STRINGTABLE *strtable);
void DestroySymbolTable(STRINGNODE *root, BOOL bStringsToo);
#ifdef __cplusplus
}
#endif
#endif