/[eliot]/eliot/dic/dic_internals.h
ViewVC logotype

Diff of /eliot/dic/dic_internals.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ipkiss, Sun Oct 23 14:53:43 2005 UTC revision 1.4.2.1 by ipkiss, Sun Oct 23 20:58:19 2005 UTC
# Line 17  Line 17 
17  /* along with this program; if not, write to the Free Software               */  /* along with this program; if not, write to the Free Software               */
18  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */  /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
19    
 /*  
  * $Id$  
  */  
   
20  /**  /**
21   *  \file dic_internals.h   *  \file dic_internals.h
22   *  \brief  Internal dictionary structures   *  \brief  Internal dictionary structures
# Line 31  Line 27 
27  #ifndef _DIC_INTERNALS_H  #ifndef _DIC_INTERNALS_H
28  #define _DIC_INTERNALS_H  #define _DIC_INTERNALS_H
29  #if defined(__cplusplus)  #if defined(__cplusplus)
30  extern "C"  extern "C"
31    {    {
32  #endif  #endif
33    
34  /**  /**
35   * bit masking for ascii characters \n   * bit masking for ascii characters \n
36   * ('a' & CHAR) == ('A' & CHAR) == 1       * ('a' & CHAR) == ('A' & CHAR) == 1
37   */   */
38  #define DIC_CHAR_MASK    0x1F  #define DIC_CHAR_MASK    0x1F
39    
# Line 61  extern "C" Line 57  extern "C"
57   *  ----------------   *  ----------------
58   */   */
59    
60  typedef struct _Dawg_edge {  typedef struct _Dawg_edge {
61     unsigned int ptr  : 24;     unsigned int ptr  : 24;
62     unsigned int term : 1;       unsigned int term : 1;
63     unsigned int last : 1;       unsigned int last : 1;
64     unsigned int fill : 1;       unsigned int fill : 1;
65     unsigned int chr  : 5;       unsigned int chr  : 5;
66  } Dawg_edge;      } Dawg_edge;
67    
68  typedef struct _Dict_header {  typedef struct _Dict_header {
69    char ident[sizeof(_COMPIL_KEYWORD_)];    char ident[sizeof(_COMPIL_KEYWORD_)];
# Line 83  typedef struct _Dict_header { Line 79  typedef struct _Dict_header {
79    
80  struct _Dictionary  struct _Dictionary
81  {  {
82    Dawg_edge *dawg;    Dawg_edge *dawg;
83    unsigned int root;    unsigned int root;
84    int nwords;    int nwords;
85    int nnodes;    int nnodes;
# Line 92  struct _Dictionary Line 88  struct _Dictionary
88    
89  #if defined(__cplusplus)  #if defined(__cplusplus)
90    }    }
91  #endif  #endif
92  #endif /* _DIC_INTERNALS_H */  #endif /* _DIC_INTERNALS_H */
93    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26