-
void *wkt_yyalloc (yy_size_t size )
{
return (void *) lwalloc( size );
void *wkt_yyrealloc (void * ptr, yy_size_t size )
{
- /* The cast to (char *) in the following accommodates both
- * implementations that use char* generic pointers, and those
- * that use void* generic pointers. It works with the latter
- * because both ANSI C and C++ allow castless assignment from
- * any pointer type to void*, and deal with argument conversions
- * as though doing an assignment.
- */
return (void *) lwrealloc( (char *) ptr, size );
}