MCPcopy Create free account
hub / github.com/Gecode/gecode / yyrealloc

Function yyrealloc

gecode/flatzinc/lexer.yy.cpp:2493–2506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2491}
2492
2493void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2494{
2495 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2496 (void)yyg;
2497
2498 /* The cast to (char *) in the following accommodates both
2499 * implementations that use char* generic pointers, and those
2500 * that use void* generic pointers. It works with the latter
2501 * because both ANSI C and C++ allow castless assignment from
2502 * any pointer type to void*, and deal with argument conversions
2503 * as though doing an assignment.
2504 */
2505 return realloc(ptr, size);
2506}
2507
2508void yyfree (void * ptr , yyscan_t yyscanner)
2509{

Callers 2

yy_get_next_bufferFunction · 0.85
yyensure_buffer_stackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected