From 18a41d682d6e91e0d28fce23eb75292f477bd620 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 11 Aug 2013 01:21:34 -0700 Subject: Sun Aug 11 01:21:31 PDT 2013 --- community/luasql/lua52.patch | 283 ------------------------------------------- 1 file changed, 283 deletions(-) delete mode 100644 community/luasql/lua52.patch (limited to 'community/luasql/lua52.patch') diff --git a/community/luasql/lua52.patch b/community/luasql/lua52.patch deleted file mode 100644 index 6f4eb59e0..000000000 --- a/community/luasql/lua52.patch +++ /dev/null @@ -1,283 +0,0 @@ -diff -wbBur luasql-2.2.0/src/ls_firebird.c luasql-2.2.0.my/src/ls_firebird.c ---- luasql-2.2.0/src/ls_firebird.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_firebird.c 2012-11-14 19:06:50.508901839 +0400 -@@ -1008,13 +1008,13 @@ - ** Create metatables for each class of object. - */ - static void create_metatables (lua_State *L) { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_gc}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_gc}, - {"close", conn_close}, - {"execute", conn_execute}, -@@ -1024,7 +1024,7 @@ - {"escape", conn_escape}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_gc}, - {"close", cur_close}, - {"fetch", cur_fetch}, -@@ -1043,7 +1043,7 @@ - ** driver open method. - */ - LUASQL_API int luaopen_luasql_firebird (lua_State *L) { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"firebird", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/ls_mysql.c luasql-2.2.0.my/src/ls_mysql.c ---- luasql-2.2.0/src/ls_mysql.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_mysql.c 2012-11-14 19:06:56.782236770 +0400 -@@ -511,13 +511,13 @@ - ** Create metatables for each class of object. - */ - static void create_metatables (lua_State *L) { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_close}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_close}, - {"close", conn_close}, - {"escape", escape_string}, -@@ -528,7 +528,7 @@ - {"getlastautoid", conn_getlastautoid}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_close}, - {"close", cur_close}, - {"getcolnames", cur_getcolnames}, -@@ -562,7 +562,7 @@ - ** driver open method. - */ - LUASQL_API int luaopen_luasql_mysql (lua_State *L) { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"mysql", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/ls_oci8.c luasql-2.2.0.my/src/ls_oci8.c ---- luasql-2.2.0/src/ls_oci8.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_oci8.c 2012-11-14 19:06:39.182232288 +0400 -@@ -814,13 +814,13 @@ - ** Create metatables for each class of object. - */ - static void create_metatables (lua_State *L) { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_close}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_close}, - {"close", conn_close}, - {"execute", conn_execute}, -@@ -829,7 +829,7 @@ - {"setautocommit", conn_setautocommit}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_close}, - {"close", cur_close}, - {"getcolnames", cur_getcolnames}, -@@ -850,7 +850,7 @@ - ** driver open method. - */ - LUASQL_API int luaopen_luasql_oci8 (lua_State *L) { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"oci8", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/ls_odbc.c luasql-2.2.0.my/src/ls_odbc.c ---- luasql-2.2.0/src/ls_odbc.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_odbc.c 2012-11-14 19:06:53.652235973 +0400 -@@ -638,13 +638,13 @@ - ** Create metatables for each class of object. - */ - static void create_metatables (lua_State *L) { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_close}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_close}, - {"close", conn_close}, - {"execute", conn_execute}, -@@ -653,7 +653,7 @@ - {"setautocommit", conn_setautocommit}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_close}, - {"close", cur_close}, - {"fetch", cur_fetch}, -@@ -701,7 +701,7 @@ - ** driver open method. - */ - LUASQL_API int luaopen_luasql_odbc (lua_State *L) { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"odbc", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/ls_postgres.c luasql-2.2.0.my/src/ls_postgres.c ---- luasql-2.2.0/src/ls_postgres.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_postgres.c 2012-11-14 19:06:47.275567683 +0400 -@@ -551,13 +551,13 @@ - ** Create metatables for each class of object. - */ - static void create_metatables (lua_State *L) { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_gc}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_gc}, - {"close", conn_close}, - {"escape", conn_escape}, -@@ -567,7 +567,7 @@ - {"setautocommit", conn_setautocommit}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_gc}, - {"close", cur_close}, - {"getcolnames", cur_getcolnames}, -@@ -600,7 +600,7 @@ - ** driver open method. - */ - LUASQL_API int luaopen_luasql_postgres (lua_State *L) { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"postgres", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/ls_sqlite3.c luasql-2.2.0.my/src/ls_sqlite3.c ---- luasql-2.2.0/src/ls_sqlite3.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_sqlite3.c 2012-11-14 19:06:26.115562295 +0400 -@@ -560,13 +560,13 @@ - */ - static void create_metatables (lua_State *L) - { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_close}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_close}, - {"close", conn_close}, - {"escape", conn_escape}, -@@ -577,7 +577,7 @@ - {"getlastautoid", conn_getlastautoid}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_close}, - {"close", cur_close}, - {"getcolnames", cur_getcolnames}, -@@ -611,7 +611,7 @@ - */ - LUASQL_API int luaopen_luasql_sqlite3(lua_State *L) - { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"sqlite3", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/ls_sqlite.c luasql-2.2.0.my/src/ls_sqlite.c ---- luasql-2.2.0/src/ls_sqlite.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/ls_sqlite.c 2012-11-14 19:06:43.845566808 +0400 -@@ -518,13 +518,13 @@ - */ - static void create_metatables (lua_State *L) - { -- struct luaL_reg environment_methods[] = { -+ struct luaL_Reg environment_methods[] = { - {"__gc", env_close}, - {"close", env_close}, - {"connect", env_connect}, - {NULL, NULL}, - }; -- struct luaL_reg connection_methods[] = { -+ struct luaL_Reg connection_methods[] = { - {"__gc", conn_close}, - {"close", conn_close}, - {"escape", conn_escape}, -@@ -534,7 +534,7 @@ - {"setautocommit", conn_setautocommit}, - {NULL, NULL}, - }; -- struct luaL_reg cursor_methods[] = { -+ struct luaL_Reg cursor_methods[] = { - {"__gc", cur_close}, - {"close", cur_close}, - {"getcolnames", cur_getcolnames}, -@@ -568,7 +568,7 @@ - */ - LUASQL_API int luaopen_luasql_sqlite(lua_State *L) - { -- struct luaL_reg driver[] = { -+ struct luaL_Reg driver[] = { - {"sqlite", create_environment}, - {NULL, NULL}, - }; -diff -wbBur luasql-2.2.0/src/luasql.c luasql-2.2.0.my/src/luasql.c ---- luasql-2.2.0/src/luasql.c 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/luasql.c 2012-11-14 19:06:32.412230565 +0400 -@@ -60,7 +60,7 @@ - /* - ** Create a metatable and leave it on top of the stack. - */ --LUASQL_API int luasql_createmeta (lua_State *L, const char *name, const luaL_reg *methods) { -+LUASQL_API int luasql_createmeta (lua_State *L, const char *name, const luaL_Reg *methods) { - if (!luaL_newmetatable (L, name)) - return 0; - -diff -wbBur luasql-2.2.0/src/luasql.h luasql-2.2.0.my/src/luasql.h ---- luasql-2.2.0/src/luasql.h 2009-10-20 20:38:38.000000000 +0400 -+++ luasql-2.2.0.my/src/luasql.h 2012-11-14 19:06:29.002229695 +0400 -@@ -22,7 +22,7 @@ - - LUASQL_API int luasql_faildirect (lua_State *L, const char *err); - LUASQL_API int luasql_failmsg (lua_State *L, const char *err, const char *m); --LUASQL_API int luasql_createmeta (lua_State *L, const char *name, const luaL_reg *methods); -+LUASQL_API int luasql_createmeta (lua_State *L, const char *name, const luaL_Reg *methods); - LUASQL_API void luasql_setmeta (lua_State *L, const char *name); - LUASQL_API void luasql_set_info (lua_State *L); - -- cgit v1.2.3-54-g00ecf