diff options
author | Vadim A. Misbakh-Soloviov <git@mva.name> | 2017-11-02 13:24:39 +0700 |
---|---|---|
committer | Vadim A. Misbakh-Soloviov <git@mva.name> | 2017-11-02 13:24:39 +0700 |
commit | a50ea72816faadd68763c8f8df9e46b2b5d8bef2 (patch) | |
tree | 6b9bbb73cea80105597a6b629a08797656d72828 /dev-lang/lua/files/patches/5.1.5/conditional/no-deprecated/0001_no-deprecated.patch | |
parent | eselect-luajit: some prefix-related fixes (diff) | |
download | lua-a50ea72816faadd68763c8f8df9e46b2b5d8bef2.tar.gz lua-a50ea72816faadd68763c8f8df9e46b2b5d8bef2.tar.bz2 lua-a50ea72816faadd68763c8f8df9e46b2b5d8bef2.zip |
lua: porting to patch eclass, sync with tree
Diffstat (limited to 'dev-lang/lua/files/patches/5.1.5/conditional/no-deprecated/0001_no-deprecated.patch')
-rw-r--r-- | dev-lang/lua/files/patches/5.1.5/conditional/no-deprecated/0001_no-deprecated.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-lang/lua/files/patches/5.1.5/conditional/no-deprecated/0001_no-deprecated.patch b/dev-lang/lua/files/patches/5.1.5/conditional/no-deprecated/0001_no-deprecated.patch new file mode 100644 index 0000000..8e5296a --- /dev/null +++ b/dev-lang/lua/files/patches/5.1.5/conditional/no-deprecated/0001_no-deprecated.patch @@ -0,0 +1,46 @@ +diff -rdu a/src/luaconf.h b/src/luaconf.h +--- a/src/luaconf.h 2008-02-12 17:00:03.000000000 +0000 ++++ b/src/luaconf.h 2008-02-12 17:07:55.000000000 +0000 +@@ -340,14 +340,14 @@ + ** CHANGE it to undefined as soon as your programs use only '...' to + ** access vararg parameters (instead of the old 'arg' table). + */ +-#define LUA_COMPAT_VARARG ++#undef LUA_COMPAT_VARARG + + /* + @@ LUA_COMPAT_MOD controls compatibility with old math.mod function. + ** CHANGE it to undefined as soon as your programs use 'math.fmod' or + ** the new '%' operator instead of 'math.mod'. + */ +-#define LUA_COMPAT_MOD ++#undef LUA_COMPAT_MOD + + /* + @@ LUA_COMPAT_LSTR controls compatibility with old long string nesting +@@ -355,14 +355,14 @@ + ** CHANGE it to 2 if you want the old behaviour, or undefine it to turn + ** off the advisory error when nesting [[...]]. + */ +-#define LUA_COMPAT_LSTR 1 ++#undef LUA_COMPAT_LSTR + + /* + @@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name. + ** CHANGE it to undefined as soon as you rename 'string.gfind' to + ** 'string.gmatch'. + */ +-#define LUA_COMPAT_GFIND ++#undef LUA_COMPAT_GFIND + + /* + @@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib' +@@ -370,7 +370,7 @@ + ** CHANGE it to undefined as soon as you replace to 'luaL_register' + ** your uses of 'luaL_openlib' + */ +-#define LUA_COMPAT_OPENLIB ++#undef LUA_COMPAT_OPENLIB + + + |