Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 418311 | Differences between
and this patch

Collapse All | Expand All

(-)lualdap-1.1.0/src/lualdap.c.orig (+8 lines)
Lines 887-893 Link Here
887
		return 0;
887
		return 0;
888
888
889
	/* define methods */
889
	/* define methods */
890
#if LUA_VERSION_NUM >= 501
891
	luaL_register (L, NULL, methods);
892
#else
890
	luaL_openlib (L, NULL, methods, 0);
893
	luaL_openlib (L, NULL, methods, 0);
894
#endif
891
895
892
	/* define metamethods */
896
	/* define metamethods */
893
	lua_pushliteral (L, "__gc");
897
	lua_pushliteral (L, "__gc");
Lines 993-999 Link Here
993
	};
997
	};
994
998
995
	lualdap_createmeta (L);
999
	lualdap_createmeta (L);
1000
#if LUA_VERSION_NUM >= 501
1001
	luaL_register (L, LUALDAP_TABLENAME, lualdap);
1002
#else
996
	luaL_openlib (L, LUALDAP_TABLENAME, lualdap, 0);
1003
	luaL_openlib (L, LUALDAP_TABLENAME, lualdap, 0);
1004
#endif
997
	set_info (L);
1005
	set_info (L);
998
1006
999
	return 1;
1007
	return 1;

Return to bug 418311