OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- luaexpat-1.0.1-vanilla/src/lxplib.c 2005-03-28 19:53:22.000000000 +0200
  17. +++ luaexpat-1.0.1/src/lxplib.c 2006-03-13 21:16:55.000000000 +0100
  18. @@ -13,7 +13,6 @@
  19. #include "lua.h"
  20. #include "lauxlib.h"
  21. -#include "compat-5.1.h"
  22. #include "lxplib.h"
  23. @@ -335,7 +334,7 @@
  24. while (lua_next(L, 1)) {
  25. lua_pop(L, 1); /* remove value */
  26. if (lua_type(L, -1) != LUA_TSTRING ||
  27. - luaL_findstring(lua_tostring(L, -1), validkeys) < 0)
  28. + luaL_checkoption(L, -1, NULL, validkeys) < 0)
  29. luaL_error(L, "invalid key `%s' in callback table", lua_tostring(L, -1));
  30. }
  31. }