[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ordered keys patch for lua-5.1.4 (+extra junk)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 8 Jan 2010 08:50:58 -0200
> * added a rule to Makefile to trigger rebuilds when the Makefile changes
Better use
$(ALL_O): Makefile
> * added a fix in loadlib.c for pedantic ISO-C rules about pointer casts
But using an union also breaks pedantic ISO-C rules, right?
I think you must use memcpy if you go that way:
void* p = dlsym(lib, sym);
lua_CFunction f;
if (p == NULL) lua_pushstring(L, dlerror());
memcpy(f,p,sizeof(f)); /* let's hope they're the same size */
return f;