wordrec/closed.h

Go to the documentation of this file.
00001 
00021 #ifndef CLOSED_H
00022 #define CLOSED_H
00023 
00024 /*----------------------------------------------------------------------
00025               I n c l u d e s
00026 ----------------------------------------------------------------------*/
00027 #include <math.h>
00028 #include "states.h"
00029 
00030 /*----------------------------------------------------------------------
00031               T y p e s
00032 ----------------------------------------------------------------------*/
00037 typedef STATE *HASH_TABLE;
00038 #define NO_STATE ~0
00039 
00040 /*----------------------------------------------------------------------
00041               V a r i a b l e s
00042 ----------------------------------------------------------------------*/
00044 extern HASH_TABLE global_hash;
00045 
00046 /*----------------------------------------------------------------------
00047               M a c r o s
00048 ----------------------------------------------------------------------*/
00052 #define free_hash_table(table) \
00053    global_hash = table
00054 
00055 /*---------------------------------------------------------------------
00056               F u n c t i o n s
00057 ----------------------------------------------------------------------*/
00058 int hash_add(HASH_TABLE state_table, STATE *state); 
00059 
00060 int hash_lookup(HASH_TABLE state_table, STATE *state); 
00061 
00062 HASH_TABLE new_hash_table(); 
00063 #endif

Generated on Wed Feb 28 19:49:13 2007 for Tesseract by  doxygen 1.5.1