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

Function yyrealloc

src/parser/ds_lexer.cpp:5007–5020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5005}
5006
5007void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
5008{
5009 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
5010 (void)yyg;
5011
5012 /* The cast to (char *) in the following accommodates both
5013 * implementations that use char* generic pointers, and those
5014 * that use void* generic pointers. It works with the latter
5015 * because both ANSI C and C++ allow castless assignment from
5016 * any pointer type to void*, and deal with argument conversions
5017 * as though doing an assignment.
5018 */
5019 return realloc(ptr, size);
5020}
5021
5022void yyfree (void * ptr , yyscan_t yyscanner)
5023{

Callers 2

yy_get_next_bufferFunction · 0.70
yyensure_buffer_stackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected