lua-users home
lua-l archive

Re: Ordered keys patch for lua-5.1.4 (+extra junk)

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> * 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;

AltStyle によって変換されたページ (->オリジナル) /