/[eliot]/eliot/dic/automaton.c
ViewVC logotype

Diff of /eliot/dic/automaton.c

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

revision 1.7 by afrab, Thu May 5 23:45:04 2005 UTC revision 1.8 by afrab, Sat May 28 20:59:14 2005 UTC
# Line 160  automaton_get_init(automaton a) Line 160  automaton_get_init(automaton a)
160  inline int  inline int
161  automaton_get_accept(automaton a, int state)  automaton_get_accept(automaton a, int state)
162  {  {
   assert(0 <= state && state <= a->nstates);  
163    return a->accept[state];    return a->accept[state];
164  }  }
165    
166  inline int  inline int
167  automaton_get_next_state(automaton a, int state, char l)  automaton_get_next_state(automaton a, int state, char l)
168  {  {
   assert(0 <= state && state <= a->nstates);  
169    return a->trans[state][(int)l];    return a->trans[state][(int)l];
170  }  }
171    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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