Lines Matching refs:ud
166 typedef const char*(*lua_Reader)(lua_State*L,void*ud,size_t*sz);
167 typedef void*(*lua_Alloc)(void*ud,void*ptr,size_t osize,size_t nsize);
437 void*ud; member
524 typedef void(*Pfunc)(lua_State*L,void*ud);
554 block=(*g->frealloc)(g->ud,block,osize,nsize); in luaM_realloc_()
1039 static int luaD_rawrunprotected(lua_State*L,Pfunc f,void*ud){
1045 (*f)(L,ud);
1235 static void f_parser(lua_State*L,void*ud){
1239 struct SParser*p=cast(struct SParser*,ud);
2281 static void f_luaopen(lua_State*L,void*ud){
2283 UNUSED(ud);
2319 (*g->frealloc)(g->ud,fromstate(L),state_size(LG),0);
2326 static lua_State*lua_newstate(lua_Alloc f,void*ud){
2330 void*l=(*f)(ud,NULL,0,state_size(LG));
2341 g->ud=ud;
2373 static void callallgcTM(lua_State*L,void*ud){
2374 UNUSED(ud);
5765 static void f_call(lua_State*L,void*ud){
5766 struct CallS*c=cast(struct CallS*,ud);
5925 static void*luaL_checkudata(lua_State*L,int ud,const char*tname){
5926 void*p=lua_touserdata(L,ud);
5928 if(lua_getmetatable(L,ud)){
5936 luaL_typerror(L,ud,tname);
6123 static const char*getF(lua_State*L,void*ud,size_t*size){
6124 LoadF*lf=(LoadF*)ud;
6184 static const char*getS(lua_State*L,void*ud,size_t*size){
6185 LoadS*ls=(LoadS*)ud;
6199 static void*l_alloc(void*ud,void*ptr,size_t osize,size_t nsize){
6200 (void)ud;
6636 void*ud;
6638 ud=lua_touserdata(L,1);
6640 if(ud==NULL||!lua_getmetatable(L,1)||!lua_rawequal(L,-2,-1))
6642 else if(*((FILE**)ud)==NULL)