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

Function cmListFileLexer_yypop_buffer_state

plugins/cmake/parser/cmListFileLexer.c:1875–1890  ·  view source on GitHub ↗

Removes and deletes the top of the stack, if present. * The next element becomes the new top. * @param yyscanner The scanner object. */

Source from the content-addressed store, hash-verified

1873 * @param yyscanner The scanner object.
1874 */
1875void cmListFileLexer_yypop_buffer_state (yyscan_t yyscanner)
1876{
1877 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1878 if (!YY_CURRENT_BUFFER)
1879 return;
1880
1881 cmListFileLexer_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
1882 YY_CURRENT_BUFFER_LVALUE = NULL;
1883 if (yyg->yy_buffer_stack_top > 0)
1884 --yyg->yy_buffer_stack_top;
1885
1886 if (YY_CURRENT_BUFFER) {
1887 cmListFileLexer_yy_load_buffer_state(yyscanner );
1888 yyg->yy_did_buffer_switch_on_eof = 1;
1889 }
1890}
1891
1892/* Allocates the stack if it does not exist.
1893 * Guarantees space for at least one push.

Callers 1

Tested by

no test coverage detected