MCPcopy Create free account
hub / github.com/KDE/kdevelop / cmListFileLexer_yyrealloc

Function cmListFileLexer_yyrealloc

plugins/cmake/parser/cmListFileLexer.c:2361–2374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2359}
2360
2361void *cmListFileLexer_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2362{
2363 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2364 (void)yyg;
2365
2366 /* The cast to (char *) in the following accommodates both
2367 * implementations that use char* generic pointers, and those
2368 * that use void* generic pointers. It works with the latter
2369 * because both ANSI C and C++ allow castless assignment from
2370 * any pointer type to void*, and deal with argument conversions
2371 * as though doing an assignment.
2372 */
2373 return realloc(ptr, size);
2374}
2375
2376void cmListFileLexer_yyfree (void * ptr , yyscan_t yyscanner)
2377{

Callers 2

yy_get_next_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected