diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-13 17:50:30 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-01-13 17:50:30 -0200 |
commit | 965f74525b10de3b0c0c1f0a1eef5141e66da8c6 (patch) | |
tree | 2169211238cbb95a1c4e1bdc7b8247712281f6f4 | |
parent | 3f2e21f0ea97e09cf4d6360803705b9d9281a215 (diff) | |
download | lua-965f74525b10de3b0c0c1f0a1eef5141e66da8c6.tar.gz lua-965f74525b10de3b0c0c1f0a1eef5141e66da8c6.tar.bz2 lua-965f74525b10de3b0c0c1f0a1eef5141e66da8c6.zip |
removed macro LUAI_FIRSTPSEUDOIDX (that stuff does not need
to be configurable)
-rw-r--r-- | lua.h | 8 | ||||
-rw-r--r-- | luaconf.h | 5 |
2 files changed, 6 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.324 2014/12/08 15:12:07 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.325 2014/12/26 17:24:27 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -35,9 +35,11 @@ | |||
35 | 35 | ||
36 | 36 | ||
37 | /* | 37 | /* |
38 | ** pseudo-indices | 38 | ** Pseudo-indices |
39 | ** (-LUAI_MAXSTACK is the minimum valid index; we keep some free empty | ||
40 | ** space after that to help overflow detection) | ||
39 | */ | 41 | */ |
40 | #define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX | 42 | #define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) |
41 | #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) | 43 | #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) |
42 | 44 | ||
43 | 45 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.238 2014/12/29 13:27:55 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.239 2015/01/13 17:24:22 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -671,9 +671,6 @@ | |||
671 | #define LUAI_MAXSTACK 15000 | 671 | #define LUAI_MAXSTACK 15000 |
672 | #endif | 672 | #endif |
673 | 673 | ||
674 | /* reserve some space for error handling */ | ||
675 | #define LUAI_FIRSTPSEUDOIDX (-LUAI_MAXSTACK - 1000) | ||
676 | |||
677 | 674 | ||
678 | /* | 675 | /* |
679 | @@ LUA_EXTRASPACE defines the size of a raw memory area associated with | 676 | @@ LUA_EXTRASPACE defines the size of a raw memory area associated with |