diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-27 14:32:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-12-27 14:32:29 -0200 |
commit | ba7da13ec5938f978c37d63aa40a3e340b301f79 (patch) | |
tree | c1f22403954f6e0c6d17c8495c11509103313c9a /llimits.h | |
parent | da37ac9c7894186a0e2e0e6f1f5f00b825fd1555 (diff) | |
download | lua-ba7da13ec5938f978c37d63aa40a3e340b301f79.tar.gz lua-ba7da13ec5938f978c37d63aa40a3e340b301f79.tar.bz2 lua-ba7da13ec5938f978c37d63aa40a3e340b301f79.zip |
Changes in the control of C-stack overflow
* unification of the 'nny' and 'nCcalls' counters;
* external C functions ('lua_CFunction') count more "slots" in
the C stack (to allow for their possible use of buffers)
* added a new test script specific for C-stack overflows. (Most
of those tests were already present, but concentrating them
in a single script easies the task of checking whether
'LUAI_MAXCCALLS' is adequate in a system.)
Diffstat (limited to 'llimits.h')
-rw-r--r-- | llimits.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -184,11 +184,13 @@ typedef LUAI_UACINT l_uacInt; | |||
184 | ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) | 184 | ** must be an unsigned with (at least) 4 bytes (see details in lopcodes.h) |
185 | */ | 185 | */ |
186 | #if LUAI_BITSINT >= 32 | 186 | #if LUAI_BITSINT >= 32 |
187 | typedef unsigned int Instruction; | 187 | typedef unsigned int l_uint32; |
188 | #else | 188 | #else |
189 | typedef unsigned long Instruction; | 189 | typedef unsigned long l_uint32; |
190 | #endif | 190 | #endif |
191 | 191 | ||
192 | typedef l_uint32 Instruction; | ||
193 | |||
192 | 194 | ||
193 | 195 | ||
194 | /* | 196 | /* |