MCPcopy Create free account
hub / github.com/apache/httpd / yy_get_previous_state

Function yy_get_previous_state

server/util_expr_scan.c:1799–1825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1797/* yy_get_previous_state - get the state just before the EOB char was reached */
1798
1799 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1800{
1801 register yy_state_type yy_current_state;
1802 register char *yy_cp;
1803 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1804
1805 yy_current_state = yyg->yy_start;
1806
1807 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1808 {
1809 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1810 if ( yy_accept[yy_current_state] )
1811 {
1812 yyg->yy_last_accepting_state = yy_current_state;
1813 yyg->yy_last_accepting_cpos = yy_cp;
1814 }
1815 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1816 {
1817 yy_current_state = (int) yy_def[yy_current_state];
1818 if ( yy_current_state >= 124 )
1819 yy_c = yy_meta[(unsigned int) yy_c];
1820 }
1821 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1822 }
1823
1824 return yy_current_state;
1825}
1826
1827/* yy_try_NUL_trans - try to make a transition on the NUL character
1828 *

Callers 1

util_expr_scan.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected