Initial Revision
[ohcount] / ext / ohcount_native / compiled_state.h
1 /*
2  *  compiled_state.h
3  *  Ohcount
4  *
5  *  Created by Jason Allen on 6/23/06.
6  *  Copyright 2006 Ohloh. All rights reserved.
7  *
8  */
9
10 typedef struct {
11         State *state;
12         char regex[MAX_REGEX];
13         pcre *pcre;
14         pcre_extra *pcre_extra;
15         Transition *transition_map[MAX_TRANSITIONS];
16 } CompiledState;
17
18
19 Transition *compiled_state_get_transition(CompiledState *compiled_state, int transition_index);
20 void compiled_state_initialize(CompiledState *compiled_state, State *state, Transition *transitions[]);
21