Lines Matching refs:state
89 dbg_Token dbg_char2token( dbg_Token *state, int c )
93 * Input: state - A pointer to a token variable. This is used to
94 * maintain the parser state between calls. For
96 * state variable and initialize it to dbg_null.
108 * This resets the parser to its initial state
151 *state = dbg_null; /* Set state to null (initial state) so */
155 *state = dbg_null; /* A newline or eoln resets to the null state. */
160 * can cause a change of state. We've already checked for line
161 * terminators, so if the current state is dbg_msgtxt, simply
164 if( dbg_message == *state )
171 if( dbg_null == *state )
175 *state = dbg_timestamp;
178 *state = dbg_message;
193 if( (' ' == c) && (dbg_timestamp == *state) )
206 if( dbg_timestamp == *state )
208 *state = dbg_level;
213 if( dbg_level == *state )
215 *state = dbg_sourcefile;
220 if( dbg_sourcefile == *state )
222 *state = dbg_function;
227 if( dbg_function == *state )
229 *state = dbg_lineno;
234 if( dbg_lineno == *state )
236 *state = dbg_null;
242 /* If the previous block did not result in a state change, then
243 * return the current state as the current token.
245 return( *state );
266 state = dbg_null;
273 new = dbg_char2token( &state, bufr[i] );