MCPcopy Create free account
hub / github.com/MapServer/MapServer / yy_get_previous_state

Function yy_get_previous_state

maplexer.c:4482–4507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4480/* yy_get_previous_state - get the state just before the EOB char was reached */
4481
4482 static yy_state_type yy_get_previous_state (void)
4483{
4484 register yy_state_type yy_current_state;
4485 register char *yy_cp;
4486
4487 yy_current_state = (yy_start);
4488
4489 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
4490 {
4491 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 82);
4492 if ( yy_accept[yy_current_state] )
4493 {
4494 (yy_last_accepting_state) = yy_current_state;
4495 (yy_last_accepting_cpos) = yy_cp;
4496 }
4497 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
4498 {
4499 yy_current_state = (int) yy_def[yy_current_state];
4500 if ( yy_current_state >= 1807 )
4501 yy_c = yy_meta[(unsigned int) yy_c];
4502 }
4503 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
4504 }
4505
4506 return yy_current_state;
4507}
4508
4509/* yy_try_NUL_trans - try to make a transition on the NUL character
4510 *

Callers 1

maplexer.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected