Commit Graph

4516 Commits

Author SHA1 Message Date
Roberto Ierusalimschy
9a38c08011 no need to ensure any stack space for panic function + some changes
in 'tryfuncTM' (small simplification)
2014-11-11 15:13:39 -02:00
Roberto Ierusalimschy
be87789a6c details 2014-11-11 15:08:19 -02:00
Roberto Ierusalimschy
d1d1ddec1e details 2014-11-10 16:41:19 -02:00
Roberto Ierusalimschy
bfa0898312 bug: memory error in panic mode does not push error message on
the stack + stack check in tryfuncTM + comments
2014-11-10 15:42:04 -02:00
Roberto Ierusalimschy
79b0d05480 new function 'T.checkpanic' (to check panic errors) 2014-11-10 15:41:36 -02:00
Roberto Ierusalimschy
779381fe9e detail (comment) 2014-11-10 15:24:43 -02:00
Roberto Ierusalimschy
b6911c177d luaL_loadbuffer replaced by luaL_loadstring (to test luaL_loadstring)
+ 'rawgetp'/'rawsetp' added to C interpreter
2014-11-10 12:47:29 -02:00
Roberto Ierusalimschy
9212175ffb added missing cases for debug info about tag methods +
better error message for bitwise operators
2014-11-10 12:46:46 -02:00
Roberto Ierusalimschy
ad20689feb better error message for bitwise operators (they are not arithmetic...) 2014-11-10 12:46:05 -02:00
Roberto Ierusalimschy
e320790154 using address instead of string for key for table 'CLIBS' in the
registry
2014-11-10 12:28:31 -02:00
Roberto Ierusalimschy
fee3aa518d using address key (light userdata) for hook table, instead of
string
2014-11-10 12:27:16 -02:00
Roberto Ierusalimschy
b58602d93d removed unneeded test (result of b_str2int is already checked
against length)
2014-11-10 12:25:52 -02:00
Roberto Ierusalimschy
74e10b9c3b details (error messages) 2014-11-08 16:12:53 -02:00
Roberto Ierusalimschy
b044b8c182 detail (line break) 2014-11-08 15:57:08 -02:00
Roberto Ierusalimschy
a113e1498d when checking thread consistency, check its entire stack (always
the entire stack must have valid values)
2014-11-07 16:07:17 -02:00
Roberto Ierusalimschy
17ca3b1763 cleaner test for overflow for range of 'math.random' 2014-11-07 09:31:58 -02:00
Roberto Ierusalimschy
50b18f60cb detail 2014-11-05 16:55:43 -02:00
Roberto Ierusalimschy
ad73e5156e more direct way to fill sign-extension extra bytes when packing
integers with sizes larger than lua_Integer + added comments
2014-11-05 16:50:29 -02:00
Roberto Ierusalimschy
720c68dabb removed repeated flags (-Wall/-Wdisabled-optimization) + removed flag
-Wcast-align (Lua does some unconventional casts) + added flag -std=c99
+ added file lprefix.h in dependency lists
2014-11-05 11:02:26 -02:00
Roberto Ierusalimschy
81c39a5244 no need to cast '*s' to unsigned char when we know it is a digit +
no need to call 'luaO_hexavalue' for decimal digits
2014-11-04 17:16:25 -02:00
Roberto Ierusalimschy
cfabcbfb17 added macro for configuring padding value in 'string.pack' 2014-11-04 12:34:43 -02:00
Roberto Ierusalimschy
bde14c3adc macro to change method of conversion from float to integer (make it
use floor intead of requiring an exact integral value)
2014-11-03 18:07:47 -02:00
Roberto Ierusalimschy
4b839d7c72 Definitions for Lua code that must come before any other header file 2014-11-03 13:12:44 -02:00
Roberto Ierusalimschy
c49edc4566 keep "#include <windows.h>" in this file, but without the
previous requirement that it must be included before any other
header file (it doesn't seem to matter)
2014-11-03 13:11:10 -02:00
Roberto Ierusalimschy
c5d52a5468 Windows uses "LONGLONG" option, even not having long long (it has __int64) 2014-11-02 17:35:39 -02:00
Roberto Ierusalimschy
e75c0148c3 comments (references to "ANSI C" changed to "ISO C", which is the
international name
2014-11-02 17:33:33 -02:00
Roberto Ierusalimschy
28fdbcf393 added include for 'lprefix.h', for stuff that must be added before
any other header file
2014-11-02 17:19:04 -02:00
Roberto Ierusalimschy
c25072a246 'lua_load' sets _ENV for any chunk with upvalues (not just those
with exactly one upvalue)
2014-10-31 15:41:51 -02:00
Roberto Ierusalimschy
1a69a3ecea LUA_WIN -> LUA_USE_WINDOWS 2014-10-31 13:54:06 -02:00
Roberto Ierusalimschy
dcfc3c9405 new option '=' (native endian) for pack/unpack 2014-10-31 13:53:31 -02:00
Roberto Ierusalimschy
4542fb9f78 comments (a few extra quotes around identifiers) 2014-10-30 16:53:28 -02:00
Roberto Ierusalimschy
80e817719d default changed from C89 to C99 + extra tests before using C99
features (when possible) + LUA_32BITS use 'int' when possible
('long' can be 64 bits)
2014-10-30 16:50:03 -02:00
Roberto Ierusalimschy
96f3a31b24 Better organization of definitions in categories + removed
'_CRT_SECURE_NO_WARNINGS' (useless there) + LUA_ENV/luai_writestring/
luai_writeline/luai_writestringerror/LUA_INT32/LUAI_UMEM/LUAI_MEM
moved to other places (no need to be in luaconf.h) + changed definition
for LUAL_BUFFERSIZE
2014-10-29 16:01:26 -02:00
Roberto Ierusalimschy
ff6c034330 configurations for types 'lu_mem'/'l_mem'/'Instruction' moved to here
(from 'luaconf.h'), as they are not needed by the API and probably
will not be changed
2014-10-29 15:07:45 -02:00
Roberto Ierusalimschy
05afee0f50 definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'
moved to 'lauxlib.h' (they do not need to be stable or configurable) +
prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
2014-10-29 14:12:30 -02:00
Roberto Ierusalimschy
351a446ec5 definition for 'LUA_ENV' moved from 'luaconf.h' to here (no need to
be visible outside Lua + no need for easy redefinitions)
2014-10-29 13:38:24 -02:00
Roberto Ierusalimschy
e9885efc7c added comment and assert about an (impossible) division by zero 2014-10-29 13:02:53 -02:00
Roberto Ierusalimschy
59fbbf0a65 small simplifications in code for 'lua_strx2number' 2014-10-28 16:41:38 -02:00
Roberto Ierusalimschy
61c3c80177 detail 2014-10-28 16:23:31 -02:00
Roberto Ierusalimschy
9de384e27a removed useless 'include math.h' 2014-10-28 15:27:50 -02:00
Roberto Ierusalimschy
4b526045fa comment 2014-10-28 15:27:41 -02:00
Roberto Ierusalimschy
4870194380 small reorganization of tests around LUA_USE_C99 2014-10-27 17:21:56 -02:00
Roberto Ierusalimschy
41d0e66184 comments + Windows numeric types not used if LUA_ANSI is defined 2014-10-27 16:06:03 -02:00
Roberto Ierusalimschy
aa1bd8876c comments 2014-10-27 16:05:37 -02:00
Roberto Ierusalimschy
7314acaa80 'T.limits' reports some more useful limits 2014-10-27 15:00:02 -02:00
Roberto Ierusalimschy
4b2521cd9e better (and safer?) way to test native size of type 'int' 2014-10-27 14:59:31 -02:00
Roberto Ierusalimschy
491103708e 'MAXSTACK' -> 'MAXREGS' and moved to 'lcode.c' (there is no reason
to change that constant...)
2014-10-27 14:29:58 -02:00
Roberto Ierusalimschy
fa4d5c8689 pack/unpack do not handle final '\0' as an "option" (it streches
unnecessarily the switch range)
2014-10-27 11:30:24 -02:00
Roberto Ierusalimschy
aef2d711b1 detail 2014-10-26 13:45:41 -02:00
Roberto Ierusalimschy
bdf566a8a3 `name' in comments changed to 'name' 2014-10-25 09:50:46 -02:00