Commit Graph

  • 57e91b4159 correct computation for limit in 'getnum' Roberto Ierusalimschy 2014-12-11 12:03:07 -02:00
  • ef7d29c666 better limits for 'sting.rep' and 'string.packsize' Roberto Ierusalimschy 2014-12-11 11:40:40 -02:00
  • 81ecaf6178 new specifiers in 'strftime' are defined in C99 (not Posix) Roberto Ierusalimschy 2014-12-10 13:42:42 -02:00
  • 27ab59bc16 'ipairs' needs an argument Roberto Ierusalimschy 2014-12-10 10:26:42 -02:00
  • bd8ce7e331 macro 'LUA_C89_NUMBERS' makes a little easier to use C89 numerical types Roberto Ierusalimschy 2014-12-10 09:56:55 -02:00
  • 5c519a69d3 new function 'string.packsize' Roberto Ierusalimschy 2014-12-10 09:36:03 -02:00
  • 6f54b07663 give preference to global names in tracebacks Roberto Ierusalimschy 2014-12-10 09:31:32 -02:00
  • 741ad97e92 new parameter for testC instruction 'pcall' (error handler) Roberto Ierusalimschy 2014-12-10 09:30:51 -02:00
  • b4633c586b error handler does not need to be a function (can be a callable object) Roberto Ierusalimschy 2014-12-10 09:30:09 -02:00
  • 5fae2a5b05 redefinition of LUAI_MAXSTACK to make stack-overflow tests run faster Roberto Ierusalimschy 2014-12-09 15:17:40 -02:00
  • 36efa6a6b9 no more 'preloadedlibs' when opening libraries (as it is dead code now) Roberto Ierusalimschy 2014-12-09 13:00:17 -02:00
  • c6e74e41c9 handle case where function was called as a hook Roberto Ierusalimschy 2014-12-08 13:48:23 -02:00
  • 6909b5a2b4 In 'debug.gethook', does not query hook table (which may not exist) if there is no hook set Roberto Ierusalimschy 2014-12-08 13:47:25 -02:00
  • 594d7266af 'assert' checks that it has (at least) one parameter + 'assert' ensures it passes only one value to 'error' Roberto Ierusalimschy 2014-12-08 13:26:55 -02:00
  • ab4a890d04 use 'namewhat' when building a traceback Roberto Ierusalimschy 2014-12-08 13:26:09 -02:00
  • 64e25a6186 avoid octal numerals Roberto Ierusalimschy 2014-12-08 13:12:07 -02:00
  • 460968353f in test mode, debug library is not predefined (to allow testing 'preloadedlibs') Roberto Ierusalimschy 2014-12-06 18:42:58 -02:00
  • 32a1f54b9a no more default size for option 'c' in pack/unpack Roberto Ierusalimschy 2014-12-04 14:25:40 -02:00
  • 6df197ec15 some functions from test module must be exported Roberto Ierusalimschy 2014-11-29 17:45:37 -02:00
  • 177807f21e casts ('(int)' -> 'cast_int') Roberto Ierusalimschy 2014-11-29 15:38:33 -02:00
  • 92f02fff11 bug: lua_tounsignedx must cast to lua_Unsigned (of course...) Roberto Ierusalimschy 2014-11-29 15:24:05 -02:00
  • 125296c83d next release won't be beta Roberto Ierusalimschy 2014-11-28 17:13:39 -02:00
  • 9c41d9d1df removed unneeded barrier ('from' must be white) Roberto Ierusalimschy 2014-11-27 16:41:43 -02:00
  • ad79eafe86 details (comments) Roberto Ierusalimschy 2014-11-25 16:21:57 -02:00
  • fd179ab4b8 clearer notation for "compare" instruction Roberto Ierusalimschy 2014-11-25 12:51:33 -02:00
  • bf163ea7f0 bug ('#3' causes seg. fault in 5.3-beta) + comments + 'codearith' -> 'codeexpval' (confusion about what operations function accept was one of the reasons for the bug) Roberto Ierusalimschy 2014-11-24 12:59:22 -02:00
  • 075661ffde new test for macro 'luai_numinvalidop' Roberto Ierusalimschy 2014-11-24 12:56:56 -02:00
  • db5ac2fa0d detail (buffer in 'LoadF' is related to files) Roberto Ierusalimschy 2014-11-21 10:17:58 -02:00
  • 1735c05ac7 avoid memory errors while a file is locked (when reading a line) Roberto Ierusalimschy 2014-11-21 10:17:33 -02:00
  • 5fbd40dbe5 'x//y' extended to floats Roberto Ierusalimschy 2014-11-21 10:15:57 -02:00
  • 049cf14cf9 'x//y' extended to floats + more comments about module and floor division operations Roberto Ierusalimschy 2014-11-21 10:15:00 -02:00
  • 5d628519d3 simpler definition for 'luaV_tonumber_' Roberto Ierusalimschy 2014-11-19 13:05:15 -02:00
  • 244646bdf7 detail (LUAL_BUFFERSIZE has a larger variation among different platforms) Roberto Ierusalimschy 2014-11-19 13:00:42 -02:00
  • 5bdfefd3a5 allows calling luaL_checkstack with no message (in runC) Roberto Ierusalimschy 2014-11-14 16:15:17 -02:00
  • 5873786e27 small bug (error of "chunk has too many lines" might use 't.token' before reading the first token) Roberto Ierusalimschy 2014-11-14 14:06:09 -02:00
  • cb59019f58 uses return value from luaL_getmetatable Roberto Ierusalimschy 2014-11-12 11:32:27 -02:00
  • 52c0f9575b uses return value from lua_getfield Roberto Ierusalimschy 2014-11-12 11:31:51 -02:00
  • 4fde357130 details (matching parameter names with manual) Roberto Ierusalimschy 2014-11-12 11:30:15 -02:00
  • e5fd1e5fe2 details (match parameter names with lua.h and manual) Roberto Ierusalimschy 2014-11-12 11:28:54 -02:00
  • 87b179e71d detail (use new returned value from 'lua_getglobal' ) Roberto Ierusalimschy 2014-11-11 17:41:27 -02:00
  • b401d37188 detail (to avoid a "to avoid warnings" return) Roberto Ierusalimschy 2014-11-11 17:40:20 -02:00
  • 6624ccff26 independent code for 'printstack' + test for panic function can ran code there Roberto Ierusalimschy 2014-11-11 15:15:06 -02:00
  • 9a38c08011 no need to ensure any stack space for panic function + some changes in 'tryfuncTM' (small simplification) Roberto Ierusalimschy 2014-11-11 15:13:39 -02:00
  • be87789a6c details Roberto Ierusalimschy 2014-11-11 15:08:19 -02:00
  • d1d1ddec1e details Roberto Ierusalimschy 2014-11-10 16:41:19 -02:00
  • bfa0898312 bug: memory error in panic mode does not push error message on the stack + stack check in tryfuncTM + comments Roberto Ierusalimschy 2014-11-10 15:42:04 -02:00
  • 79b0d05480 new function 'T.checkpanic' (to check panic errors) Roberto Ierusalimschy 2014-11-10 15:41:36 -02:00
  • 779381fe9e detail (comment) Roberto Ierusalimschy 2014-11-10 15:24:43 -02:00
  • b6911c177d luaL_loadbuffer replaced by luaL_loadstring (to test luaL_loadstring) + 'rawgetp'/'rawsetp' added to C interpreter Roberto Ierusalimschy 2014-11-10 12:47:29 -02:00
  • 9212175ffb added missing cases for debug info about tag methods + better error message for bitwise operators Roberto Ierusalimschy 2014-11-10 12:46:46 -02:00
  • ad20689feb better error message for bitwise operators (they are not arithmetic...) Roberto Ierusalimschy 2014-11-10 12:46:05 -02:00
  • e320790154 using address instead of string for key for table 'CLIBS' in the registry Roberto Ierusalimschy 2014-11-10 12:28:31 -02:00
  • fee3aa518d using address key (light userdata) for hook table, instead of string Roberto Ierusalimschy 2014-11-10 12:27:16 -02:00
  • b58602d93d removed unneeded test (result of b_str2int is already checked against length) Roberto Ierusalimschy 2014-11-10 12:25:52 -02:00
  • 74e10b9c3b details (error messages) Roberto Ierusalimschy 2014-11-08 16:12:53 -02:00
  • b044b8c182 detail (line break) Roberto Ierusalimschy 2014-11-08 15:57:08 -02:00
  • a113e1498d when checking thread consistency, check its entire stack (always the entire stack must have valid values) Roberto Ierusalimschy 2014-11-07 16:07:17 -02:00
  • 17ca3b1763 cleaner test for overflow for range of 'math.random' Roberto Ierusalimschy 2014-11-07 09:31:58 -02:00
  • 50b18f60cb detail Roberto Ierusalimschy 2014-11-05 16:55:43 -02:00
  • ad73e5156e more direct way to fill sign-extension extra bytes when packing integers with sizes larger than lua_Integer + added comments Roberto Ierusalimschy 2014-11-05 16:50:29 -02:00
  • 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 Roberto Ierusalimschy 2014-11-05 11:02:26 -02:00
  • 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 Roberto Ierusalimschy 2014-11-04 17:16:25 -02:00
  • cfabcbfb17 added macro for configuring padding value in 'string.pack' Roberto Ierusalimschy 2014-11-04 12:34:43 -02:00
  • bde14c3adc macro to change method of conversion from float to integer (make it use floor intead of requiring an exact integral value) Roberto Ierusalimschy 2014-11-03 18:07:47 -02:00
  • 4b839d7c72 Definitions for Lua code that must come before any other header file Roberto Ierusalimschy 2014-11-03 13:12:44 -02:00
  • 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) Roberto Ierusalimschy 2014-11-03 13:11:10 -02:00
  • c5d52a5468 Windows uses "LONGLONG" option, even not having long long (it has __int64) Roberto Ierusalimschy 2014-11-02 17:35:39 -02:00
  • e75c0148c3 comments (references to "ANSI C" changed to "ISO C", which is the international name Roberto Ierusalimschy 2014-11-02 17:33:33 -02:00
  • 28fdbcf393 added include for 'lprefix.h', for stuff that must be added before any other header file Roberto Ierusalimschy 2014-11-02 17:19:04 -02:00
  • c25072a246 'lua_load' sets _ENV for any chunk with upvalues (not just those with exactly one upvalue) Roberto Ierusalimschy 2014-10-31 15:41:51 -02:00
  • 1a69a3ecea LUA_WIN -> LUA_USE_WINDOWS Roberto Ierusalimschy 2014-10-31 13:54:06 -02:00
  • dcfc3c9405 new option '=' (native endian) for pack/unpack Roberto Ierusalimschy 2014-10-31 13:53:31 -02:00
  • 4542fb9f78 comments (a few extra quotes around identifiers) Roberto Ierusalimschy 2014-10-30 16:53:28 -02:00
  • 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) Roberto Ierusalimschy 2014-10-30 16:50:03 -02:00
  • 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 Roberto Ierusalimschy 2014-10-29 16:01:26 -02:00
  • 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 Roberto Ierusalimschy 2014-10-29 15:07:45 -02:00
  • 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) Roberto Ierusalimschy 2014-10-29 14:12:30 -02:00
  • 351a446ec5 definition for 'LUA_ENV' moved from 'luaconf.h' to here (no need to be visible outside Lua + no need for easy redefinitions) Roberto Ierusalimschy 2014-10-29 13:38:24 -02:00
  • e9885efc7c added comment and assert about an (impossible) division by zero Roberto Ierusalimschy 2014-10-29 13:02:53 -02:00
  • 59fbbf0a65 small simplifications in code for 'lua_strx2number' Roberto Ierusalimschy 2014-10-28 16:41:38 -02:00
  • 61c3c80177 detail Roberto Ierusalimschy 2014-10-28 16:23:31 -02:00
  • 9de384e27a removed useless 'include math.h' Roberto Ierusalimschy 2014-10-28 15:27:50 -02:00
  • 4b526045fa comment Roberto Ierusalimschy 2014-10-28 15:27:41 -02:00
  • 4870194380 small reorganization of tests around LUA_USE_C99 Roberto Ierusalimschy 2014-10-27 17:21:56 -02:00
  • 41d0e66184 comments + Windows numeric types not used if LUA_ANSI is defined Roberto Ierusalimschy 2014-10-27 16:06:03 -02:00
  • aa1bd8876c comments Roberto Ierusalimschy 2014-10-27 16:05:37 -02:00
  • 7314acaa80 'T.limits' reports some more useful limits Roberto Ierusalimschy 2014-10-27 15:00:02 -02:00
  • 4b2521cd9e better (and safer?) way to test native size of type 'int' Roberto Ierusalimschy 2014-10-27 14:59:31 -02:00
  • 491103708e 'MAXSTACK' -> 'MAXREGS' and moved to 'lcode.c' (there is no reason to change that constant...) Roberto Ierusalimschy 2014-10-27 14:29:58 -02:00
  • fa4d5c8689 pack/unpack do not handle final '\0' as an "option" (it streches unnecessarily the switch range) Roberto Ierusalimschy 2014-10-27 11:30:24 -02:00
  • aef2d711b1 detail Roberto Ierusalimschy 2014-10-26 13:45:41 -02:00
  • bdf566a8a3 `name' in comments changed to 'name' Roberto Ierusalimschy 2014-10-25 09:50:46 -02:00
  • c3c78030f7 avoid redeclaration of _CRT_SECURE_NO_WARNINGS + 'lua_numtointeger' -> 'lua_numbertointeger' Roberto Ierusalimschy 2014-10-24 09:42:47 -02:00
  • ff9ca88aa6 added some casts to avoid warnings in some compilers Roberto Ierusalimschy 2014-10-24 09:42:29 -02:00
  • 463edee2fd 'lua_numtointeger' -> 'lua_numbertointeger' Roberto Ierusalimschy 2014-10-24 09:42:06 -02:00
  • 88ff582fd8 detail (using 'sizeof' instead of 'strlen' for length of a constant string) Roberto Ierusalimschy 2014-10-22 14:55:57 -02:00
  • 6b12b82532 added 'l_' prefix for names that can be redefined externally Roberto Ierusalimschy 2014-10-22 09:44:20 -02:00
  • d7a0179cd6 use 'opf' (float) variants only when explicitly allowed (LUA_USE_C99) Roberto Ierusalimschy 2014-10-21 12:38:46 -02:00
  • 6d613817d4 comments Roberto Ierusalimschy 2014-10-20 20:21:05 -02:00
  • b8d412aa07 error in comment Roberto Ierusalimschy 2014-10-20 16:29:55 -02:00