1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../luaexpat/lxplib-no-compat-5.1.patch
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
23 -#include "compat-5.1.h"
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));