Searched refs:frealloc (Results 1 - 4 of 4) sorted by relevance

/netbsd-current/external/mit/lua/dist/src/
H A Dlmem.c32 ** void *frealloc (void *ud, void *ptr, size_t osize, size_t nsize);
35 ** - frealloc(ud, p, x, 0) frees the block 'p' and returns NULL.
36 ** Particularly, frealloc(ud, NULL, 0, 0) does nothing,
39 ** - frealloc(ud, NULL, x, s) creates a new block of size 's'
42 ** - otherwise, frealloc(ud, b, x, y) reallocates the block 'b' from
51 #define callfrealloc(g,block,os,ns) ((*g->frealloc)(g->ud, block, os, ns))
H A Dlstate.h257 lua_Alloc frealloc; /* function to reallocate memory */ member in struct:global_State
258 void *ud; /* auxiliary data to 'frealloc' */
H A Dlstate.c286 (*g->frealloc)(g->ud, fromstate(L), sizeof(LG), 0); /* free main block */
379 g->frealloc = f;
H A Dlapi.c1323 f = G(L)->frealloc;
1332 G(L)->frealloc = f;

Completed in 208 milliseconds