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);
2282 static void f_luaopen(lua_State*L,void*ud){
2284 UNUSED(ud);
2320 (*g->frealloc)(g->ud,fromstate(L),state_size(LG),0);
2327 static lua_State*lua_newstate(lua_Alloc f,void*ud){
2331 void*l=(*f)(ud,NULL,0,state_size(LG));
2342 g->ud=ud;
2374 static void callallgcTM(lua_State*L,void*ud){
2375 UNUSED(ud);
5766 static void f_call(lua_State*L,void*ud){
5767 struct CallS*c=cast(struct CallS*,ud);
5926 static void*luaL_checkudata(lua_State*L,int ud,const char*tname){
5927 void*p=lua_touserdata(L,ud);
5929 if(lua_getmetatable(L,ud)){
5937 luaL_typerror(L,ud,tname);
6124 static const char*getF(lua_State*L,void*ud,size_t*size){
6125 LoadF*lf=(LoadF*)ud;
6185 static const char*getS(lua_State*L,void*ud,size_t*size){
6186 LoadS*ls=(LoadS*)ud;
6200 static void*l_alloc(void*ud,void*ptr,size_t osize,size_t nsize){
6201 (void)ud;
6637 void*ud;
6639 ud=lua_touserdata(L,1);
6641 if(ud==NULL||!lua_getmetatable(L,1)||!lua_rawequal(L,-2,-1))
6643 else if(*((FILE**)ud)==NULL)