MCPcopy Create free account
hub / github.com/Kitware/CMake / yyrealloc

Function yyrealloc

Source/LexerParser/cmListFileLexer.c:2540–2553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2538}
2539
2540void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2541{
2542 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2543 (void)yyg;
2544
2545 /* The cast to (char *) in the following accommodates both
2546 * implementations that use char* generic pointers, and those
2547 * that use void* generic pointers. It works with the latter
2548 * because both ANSI C and C++ allow castless assignment from
2549 * any pointer type to void*, and deal with argument conversions
2550 * as though doing an assignment.
2551 */
2552 return realloc(ptr, size);
2553}
2554
2555void yyfree (void * ptr , yyscan_t yyscanner)
2556{

Callers 2

yy_get_next_bufferFunction · 0.70
yyensure_buffer_stackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…