Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/bindings/lua Ad...
details: https://anonhg.NetBSD.org/src/rev/6ea2c8357326
branches: trunk
changeset: 318577:6ea2c8357326
user: sevan <sevan%NetBSD.org@localhost>
date: Sun Apr 29 19:34:57 2018 +0000
description:
Add support for Lua 5.3
diffstat:
crypto/external/bsd/netpgp/dist/bindings/lua/glue.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 4dc6057fe5e0 -r 6ea2c8357326 crypto/external/bsd/netpgp/dist/bindings/lua/glue.c
--- a/crypto/external/bsd/netpgp/dist/bindings/lua/glue.c Sun Apr 29 19:31:38 2018 +0000
+++ b/crypto/external/bsd/netpgp/dist/bindings/lua/glue.c Sun Apr 29 19:34:57 2018 +0000
@@ -334,7 +334,7 @@
return 1;
}
-const struct luaL_reg libluanetpgp[] = {
+const struct luaL_Reg libluanetpgp[] = {
{ "new", l_new },
{ "init", l_init },
@@ -358,6 +358,10 @@
int
luaopen_netpgp(lua_State *L)
{
- luaL_openlib(L, "netpgp", libluanetpgp, 0);
+#if LUA_VERSION_NUM >= 502
+ luaL_newlib(L, libluanetpgp);
+#else
+ luaL_register(L, "netpgp", libluanetpgp);
+#endif
return 1;
}
Home |
Main Index |
Thread Index |
Old Index