Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
573 B

  1. // strtable.h
  2. // Angshuman Guha
  3. // aguha
  4. // Dec 1, 2000
  5. #ifndef __INC_STRTABLE_H
  6. #define __INC_STRTABLE_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef struct tagStringNode {
  11. WCHAR *wsz;
  12. short value;
  13. struct tagStringNode *left;
  14. struct tagStringNode *right;
  15. } STRINGNODE;
  16. typedef struct tagStringTable {
  17. int count;
  18. STRINGNODE *root;
  19. } STRINGTABLE;
  20. int InsertSymbol(WCHAR *wsz, int length, STRINGTABLE *strtable);
  21. WCHAR **FlattenSymbolTable(STRINGTABLE *strtable);
  22. void DestroySymbolTable(STRINGNODE *root, BOOL bStringsToo);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif