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

Function cmListFileLexerDestroy

plugins/cmake/parser/cmListFileLexer.c:2504–2520  ·  view source on GitHub ↗

--------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

2502
2503/*--------------------------------------------------------------------------*/
2504static void cmListFileLexerDestroy(cmListFileLexer* lexer)
2505{
2506 cmListFileLexerSetToken(lexer, 0, 0);
2507 if (lexer->file || lexer->string_buffer) {
2508 cmListFileLexer_yylex_destroy(lexer->scanner);
2509 if (lexer->file) {
2510 fclose(lexer->file);
2511 lexer->file = 0;
2512 }
2513 if (lexer->string_buffer) {
2514 free(lexer->string_buffer);
2515 lexer->string_buffer = 0;
2516 lexer->string_left = 0;
2517 lexer->string_position = 0;
2518 }
2519 }
2520}
2521
2522/*--------------------------------------------------------------------------*/
2523cmListFileLexer* cmListFileLexer_New(void)

Callers 2

Calls 2

cmListFileLexerSetTokenFunction · 0.85

Tested by

no test coverage detected