Dash:
[t2-trunk.git] / package / lua / luaexpat / lxplib-no-compat-5.1.patch
blob776e0db83d258503b9a0ee229b54615120828577
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../luaexpat/lxplib-no-compat-5.1.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- luaexpat-1.0.1-vanilla/src/lxplib.c 2005-03-28 19:53:22.000000000 +0200
18 +++ luaexpat-1.0.1/src/lxplib.c 2006-03-13 21:16:55.000000000 +0100
19 @@ -13,7 +13,6 @@
21 #include "lua.h"
22 #include "lauxlib.h"
23 -#include "compat-5.1.h"
26 #include "lxplib.h"
27 @@ -335,7 +334,7 @@
28 while (lua_next(L, 1)) {
29 lua_pop(L, 1); /* remove value */
30 if (lua_type(L, -1) != LUA_TSTRING ||
31 - luaL_findstring(lua_tostring(L, -1), validkeys) < 0)
32 + luaL_checkoption(L, -1, NULL, validkeys) < 0)
33 luaL_error(L, "invalid key `%s' in callback table", lua_tostring(L, -1));