Back to index

im-sdk  12.3.91
tree.h
Go to the documentation of this file.
00001 #ifndef HASH_TABLE_H
00002 #define HASH_TABLE_H
00003 
00004 #include "hhentry.h"
00005 
00006 typedef struct _TreeNode TreeNode;
00007 
00008 struct _TreeNode{
00009   TreeNode *left;
00010   TreeNode *right;
00011   HHEntry data;
00012 };
00013 
00014 typedef struct _Tree {
00015   TreeNode *root;
00016 } Tree;
00017 
00018 typedef struct _HashTable {
00019   int n_items;
00020   HHEntry **list;
00021 }HashTable;
00022 TreeNode *
00023 tree_search_hangul (Tree *tree, unsigned char *hangul);
00024 
00025 #endif /* HASH_TABLE_H */