1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00

Commit Graph

  • cdd26700e8 definition for 'MAXUPVAL' moved for a more "private" place and its value and comment corrected to reflect current implementation Roberto Ierusalimschy 2015-01-13 13:49:11 -02:00
  • a9a4bf68b0 typo in comment Roberto Ierusalimschy 2015-01-13 11:18:04 -02:00
  • f31cc8e342 typo in error message Roberto Ierusalimschy 2015-01-12 17:32:32 -02:00
  • 3c55790ebe 'setkey' -> 'setnodekey' (to avoid conflicts with POSIX) v5.3.0 Roberto Ierusalimschy 2015-01-05 11:52:37 -02:00
  • 0adfa773b9 new macro 'cast_func' adds '__extension__' (in gnu compilers) when converting void* to function, to avoid warnings Roberto Ierusalimschy 2015-01-05 11:51:39 -02:00
  • 3317f5c6d9 includes 'stddef.h' (as it uses NULL) Roberto Ierusalimschy 2015-01-05 11:48:33 -02:00
  • dbf911c516 detail (added -Wconversion as a comment, to be used ocasionally) Roberto Ierusalimschy 2015-01-02 11:03:52 -02:00
  • 3a29087cb7 'lua_setlocal' should not pop value when failing (to be consistent with the manual and with 'lua_setupvalue') Roberto Ierusalimschy 2015-01-02 10:52:22 -02:00
  • 234fb7f695 clearer(?) code (also avoids a warning about 'c' being used without initialization) Roberto Ierusalimschy 2015-01-02 10:50:28 -02:00
  • c077d47465 does not define _XOPEN_SOURCE when LUA_USE_C89 is defined + defining _XOPEN_SOURCE==0 undefines that macro Roberto Ierusalimschy 2014-12-29 14:54:13 -02:00
  • 8e5290d81e all "divisions" (div,idiv,mod) by zero are not folded, to avoid problems during compilation + does not fold zero results, as they can collapse with -0.0 and the ANSI test to distinguish both needs a division by zero (which we are trying to avoid) + removed macro 'luai_numinvalidop' (as its main use case were divisions by zero) Roberto Ierusalimschy 2014-12-29 14:49:25 -02:00
  • a1c37f834a detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division) Roberto Ierusalimschy 2014-12-29 11:27:55 -02:00
  • 1a7868c1d5 bug: 'random' limit is 2^31-1, not RAND_MAX Roberto Ierusalimschy 2014-12-27 18:32:26 -02:00
  • de3933480e details Roberto Ierusalimschy 2014-12-27 18:31:43 -02:00
  • 50e2eb8954 change in macro 'vmcase', avoding code inside it. (Code inside the macro harms tools such as debuggers.) Roberto Ierusalimschy 2014-12-27 18:30:38 -02:00
  • 94eb37dc73 new year (2015) Roberto Ierusalimschy 2014-12-26 15:24:27 -02:00
  • 900bdd5761 detail (to avoid warnings) Roberto Ierusalimschy 2014-12-26 12:46:07 -02:00
  • a51069202a removed macro 'luai_numinvalidop' (main motivation removed, as folding does not handle any division by zero by default) Roberto Ierusalimschy 2014-12-26 12:44:44 -02:00
  • fb6796ba06 removed useless initializations Roberto Ierusalimschy 2014-12-26 12:43:45 -02:00
  • 88ef06f4f3 comments were wrong (not updated about several changes) Roberto Ierusalimschy 2014-12-20 11:58:15 -02:00
  • eb45f3a9b6 details in 'luaM_reallocvchar' Roberto Ierusalimschy 2014-12-19 15:26:14 -02:00
  • 6321041058 new macro 'luaM_reallocvchar' to allocate arrays of chars (avoids uneeded tests and respective warnings) Roberto Ierusalimschy 2014-12-19 11:45:40 -02:00
  • 2b83711fba new macro 'nvalue' (to convert an object to a float when we know object is a number) Roberto Ierusalimschy 2014-12-19 11:36:32 -02:00
  • 3ae21a352c detail (in test for 'luai_numinvalidop', use a round float) Roberto Ierusalimschy 2014-12-19 11:33:06 -02:00
  • 570143bf88 comment Roberto Ierusalimschy 2014-12-19 11:31:12 -02:00
  • 1465edf341 old Visual Studio versions did not support 'noreturn' attribute Roberto Ierusalimschy 2014-12-19 11:30:23 -02:00
  • 77e786d436 stupid bug in T.stacklevel (not in use by the tests) Roberto Ierusalimschy 2014-12-18 10:13:42 -02:00
  • 6d79752e65 Windows uses 'long long' (instead of '__int64') when present; again, uses macro LLONG_MAX as a proxy for the support for 'long long'. Roberto Ierusalimschy 2014-12-16 15:17:30 -02:00
  • 75812a517b added macro LUA_USE_I64 for separate control of use of Windows-specific types Roberto Ierusalimschy 2014-12-16 14:20:01 -02:00
  • 151dc5cc5f traverse loaded modules (instead of globals) for a name for a function + removes prefix '_G.' from names (if present) Roberto Ierusalimschy 2014-12-14 16:32:26 -02:00
  • 0b6cfea005 comments Roberto Ierusalimschy 2014-12-13 15:57:00 -02:00
  • c8da3fbc35 in traceback names, give preference to 'name' over '_G.name' Roberto Ierusalimschy 2014-12-13 15:47:58 -02:00
  • c96cd1c647 reinsertion-control macro renamed: lconfig_h -> luaconf_h Roberto Ierusalimschy 2014-12-12 09:49:32 -02:00
  • 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