Commit Graph

  • 4ccc4578b3 detail (use 'l_floor' instead of 'l_mathop(floor)') Roberto Ierusalimschy 2015-02-09 13:41:56 -02:00
  • 5e8c162b6c detail Roberto Ierusalimschy 2015-02-05 15:50:24 -02:00
  • c8d6cb0136 macros 'luai_num*' (for float arithmetic operations) moved to llimits.h. Roberto Ierusalimschy 2015-02-05 15:15:33 -02:00
  • 0edcdf49c0 added comments documenting LUA_NOCVTN2S/LUA_NOCVTS2N Roberto Ierusalimschy 2015-02-05 14:53:34 -02:00
  • b7dfd18612 make buffer for format specification a little larger (length modifier can be larger than 2, e.g. "I64") Roberto Ierusalimschy 2015-02-04 10:54:31 -02:00
  • 8efcd411fe own implementation for 'string.format("%a")' for C89 platforms Roberto Ierusalimschy 2015-02-04 10:52:57 -02:00
  • 90d016980f detail ('luaL_getmetatable' does not return a boolean, but a tag) Roberto Ierusalimschy 2015-02-03 15:38:24 -02:00
  • b3996c55f6 LUAL_BUFFERSIZE affects the API, so it is better not to change it between releases of the same version. (The long double case seems to be too rare, so that should not be a problem; moreover, that case is related to a bug) Roberto Ierusalimschy 2015-01-16 15:26:56 -02:00
  • 438a9fcc78 LUAI_MAXSHORTLEN moved from 'luaconf.h' to 'llimits.h' (does not affect the API and is seldom modified) Roberto Ierusalimschy 2015-01-16 15:15:52 -02:00
  • 7e2015a46d size of short strings stored in a single byte, to reduce the size of struct 'TString' Roberto Ierusalimschy 2015-01-16 14:54:37 -02:00
  • 5b01cb39b5 larger MINSTRTABSIZE (standard Lua starts with ~230 strings, after oppening the standard libraries) Roberto Ierusalimschy 2015-01-16 13:41:03 -02:00
  • a0503305bd comments Roberto Ierusalimschy 2015-01-16 11:26:55 -02:00
  • 965f74525b removed macro LUAI_FIRSTPSEUDOIDX (that stuff does not need to be configurable) Roberto Ierusalimschy 2015-01-13 17:50:30 -02:00
  • 3f2e21f0ea Long double needs a larger LUAL_BUFFERSIZE (because 'string.format("%.99f", 1e4900)' can generate quite long strings), but otherwise buffer can be 1~2K Roberto Ierusalimschy 2015-01-13 15:24:22 -02:00
  • 3509914916 BUG (when compiled with long double): buffer overflow when formatting string.format("%.99f", 1e4930) Roberto Ierusalimschy 2015-01-13 15:18:25 -02:00
  • ae27be40c9 better check for overflows in 'table.move' (removes restriction that initial position should be positive) Roberto Ierusalimschy 2015-01-13 14:27:29 -02:00
  • 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