MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / yyrealloc

Function yyrealloc

src/parser/ds2_lexer.cpp:4574–4587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4572}
4573
4574void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
4575{
4576 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
4577 (void)yyg;
4578
4579 /* The cast to (char *) in the following accommodates both
4580 * implementations that use char* generic pointers, and those
4581 * that use void* generic pointers. It works with the latter
4582 * because both ANSI C and C++ allow castless assignment from
4583 * any pointer type to void*, and deal with argument conversions
4584 * as though doing an assignment.
4585 */
4586 return realloc(ptr, size);
4587}
4588
4589void yyfree (void * ptr , yyscan_t yyscanner)
4590{

Callers 2

yy_get_next_bufferFunction · 0.70
yyensure_buffer_stackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected