MCPcopy Create free account
hub / github.com/Kitware/CMake / yy_get_previous_state

Function yy_get_previous_state

Source/LexerParser/cmListFileLexer.c:1664–1690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1662/* yy_get_previous_state - get the state just before the EOB char was reached */
1663
1664 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1665{
1666 yy_state_type yy_current_state;
1667 char *yy_cp;
1668 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1669
1670 yy_current_state = yyg->yy_start;
1671
1672 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1673 {
1674 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1675 if ( yy_accept[yy_current_state] )
1676 {
1677 yyg->yy_last_accepting_state = yy_current_state;
1678 yyg->yy_last_accepting_cpos = yy_cp;
1679 }
1680 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1681 {
1682 yy_current_state = (int) yy_def[yy_current_state];
1683 if ( yy_current_state >= 77 )
1684 yy_c = yy_meta[yy_c];
1685 }
1686 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1687 }
1688
1689 return yy_current_state;
1690}
1691
1692/* yy_try_NUL_trans - try to make a transition on the NUL character
1693 *

Callers 1

cmListFileLexer.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…