lua-users home
lua-l archive

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