MCPcopy Create free account
hub / github.com/carbonengine/trinity / ParseFinalize

Function ParseFinalize

shadercompiler/lempar.c:431–437  ·  view source on GitHub ↗

** Clear all secondary memory allocations from the parser */

Source from the content-addressed store, hash-verified

429** Clear all secondary memory allocations from the parser
430*/
431void ParseFinalize(void *p){
432 yyParser *pParser = (yyParser*)p;
433 while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
434#if YYSTACKDEPTH<=0
435 if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
436#endif
437}
438
439#ifndef Parse_ENGINEALWAYSONSTACK
440/*

Callers 1

ParseFreeFunction · 0.85

Calls 1

yy_pop_parser_stackFunction · 0.70

Tested by

no test coverage detected