MCPcopy Create free account
hub / github.com/KDE/kdevelop / yy_get_previous_state

Function yy_get_previous_state

plugins/cmake/parser/cmListFileLexer.c:1481–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1479/* yy_get_previous_state - get the state just before the EOB char was reached */
1480
1481 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1482{
1483 yy_state_type yy_current_state;
1484 char *yy_cp;
1485 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1486
1487 yy_current_state = yyg->yy_start;
1488
1489 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1490 {
1491 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1492 if ( yy_accept[yy_current_state] )
1493 {
1494 yyg->yy_last_accepting_state = yy_current_state;
1495 yyg->yy_last_accepting_cpos = yy_cp;
1496 }
1497 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1498 {
1499 yy_current_state = (int) yy_def[yy_current_state];
1500 if ( yy_current_state >= 77 )
1501 yy_c = yy_meta[(unsigned int) yy_c];
1502 }
1503 yy_current_state = yy_nxt[yy_base[yy_current_state] + (flex_int16_t) yy_c];
1504 }
1505
1506 return yy_current_state;
1507}
1508
1509/* yy_try_NUL_trans - try to make a transition on the NUL character
1510 *

Callers 1

cmListFileLexer.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected