Commit Graph

  • 1f2b82bf25 correct way to avoid compile-time errors in integer divisions Roberto Ierusalimschy 2013-05-06 14:22:16 -03:00
  • f2043b7a58 correct error message for conversion errors from float to int Roberto Ierusalimschy 2013-05-06 14:21:59 -03:00
  • 2b1c2c61b0 bug: Wrong assert when reporting concatenation errors. Roberto Ierusalimschy 2013-05-06 14:21:28 -03:00
  • fa6ea831b3 macro 'nvalue' removed (direct conversion from integer to double, without an intermediate variable, can cause "excessive precision" Roberto Ierusalimschy 2013-05-06 14:17:09 -03:00
  • b22a4280c6 macro 'nvalue' removed + cast to void added to avoid warnings with 'clang' Roberto Ierusalimschy 2013-05-06 14:17:09 -03:00
  • 29fe3abda2 new function 'math.isfloat' Roberto Ierusalimschy 2013-05-02 14:31:54 -03:00
  • 6347004be9 stack overflow in vararg functions + garbage collector in recursive loops Roberto Ierusalimschy 2013-05-02 13:13:27 -03:00
  • 67532d5a10 constant folding and API arithmetic with integers Roberto Ierusalimschy 2013-05-02 09:37:24 -03:00
  • 6920a7f2e3 new macro 'intop' (to perform integer arithmetic on unsigned types) Roberto Ierusalimschy 2013-05-02 09:31:26 -03:00
  • 88bf2f83c0 new function 'tointeger' + 'luaV_arith' replaced by 'luaT_trybinTM' Roberto Ierusalimschy 2013-04-29 14:12:50 -03:00
  • 8fff05f6d0 integer division operates only on integers Roberto Ierusalimschy 2013-04-29 14:12:12 -03:00
  • 9b9becf384 added 'const' to parameters of 'luaG_concaterror' Roberto Ierusalimschy 2013-04-29 13:58:10 -03:00
  • 00744a2729 'luaO_arith' -> 'luaO_numarith' Roberto Ierusalimschy 2013-04-29 13:57:48 -03:00
  • b4be507578 new function 'luaT_trybinTM' Roberto Ierusalimschy 2013-04-29 13:56:50 -03:00
  • 360587f319 favoring 'tonumber' over 'nvalue' Roberto Ierusalimschy 2013-04-26 16:51:17 -03:00
  • eee51492e2 dumping and undumping integers Roberto Ierusalimschy 2013-04-26 15:48:35 -03:00
  • c37b7b3cca bug: garbage collector can trigger too many times in recursive loops, because it was not computing the size of CallInfo structures in threads Roberto Ierusalimschy 2013-04-26 15:26:49 -03:00
  • f79584faca detail Roberto Ierusalimschy 2013-04-26 13:06:53 -03:00
  • 4abe99dc34 new interface for 'tonumber' Roberto Ierusalimschy 2013-04-26 13:03:50 -03:00
  • d4e6b75098 "integer" keys in tables are now lua_Integer, not 'int'. Roberto Ierusalimschy 2013-04-26 12:39:25 -03:00
  • a2f5c28a80 new operation '//' (integer division) Roberto Ierusalimschy 2013-04-26 10:08:29 -03:00
  • a80a2b5e56 new cast macros for lua_Integer and lua_Unsigned Roberto Ierusalimschy 2013-04-25 18:15:37 -03:00
  • bb1851ce98 'for' loop uses integers when possible Roberto Ierusalimschy 2013-04-25 16:50:02 -03:00
  • 5951c79ae1 default increment for 'for' loop is an integer (1, not 1.0) Roberto Ierusalimschy 2013-04-25 16:35:19 -03:00
  • e381c582de integer handling for order comparisons, power, and modulo operations Roberto Ierusalimschy 2013-04-25 16:12:41 -03:00
  • 9600c60df3 functions 'get_equalTM' and 'call_orderTM' moved to other files to make 'lvm.c' smaller Roberto Ierusalimschy 2013-04-25 13:07:52 -03:00
  • 32bf6c9b27 functions 'traceexec', 'callTM', and 'call_binTM' moved to other files to make 'lvm.c' a little smaller Roberto Ierusalimschy 2013-04-25 12:59:42 -03:00
  • 9c43d6a24e new format "%I" in 'lua_pushfstring' for lua_Integer Roberto Ierusalimschy 2013-04-25 10:53:13 -03:00
  • 01b6fe0cbf new API function 'lua_isinteger' Roberto Ierusalimschy 2013-04-25 10:52:49 -03:00
  • 944709c77b more definitions to support integer formatting Roberto Ierusalimschy 2013-04-25 10:52:13 -03:00
  • 52cb90ec75 detail Roberto Ierusalimschy 2013-04-24 16:41:48 -03:00
  • fa3b126a23 BUG: stack overflow in vararg functions with many fixed parameters called with few arguments Roberto Ierusalimschy 2013-04-19 18:05:04 -03:00
  • 1294b09d8e first implementation of literal integers (no constant folding yet) Roberto Ierusalimschy 2013-04-16 15:46:28 -03:00
  • d4f0c4435d a few more operations supporting integers (minus, umin, mult) Roberto Ierusalimschy 2013-04-16 15:43:05 -03:00
  • 44358e0206 extra trim applied to 'replace' argument (in case lua_Unsigned is larger than 32 bits) Roberto Ierusalimschy 2013-04-16 15:39:37 -03:00
  • 07f861385e first steps in the support of integers: basic representation + table indexing + basic API ops (tointeger/pushinteger) + equality + a few extra stuff Roberto Ierusalimschy 2013-04-15 12:44:46 -03:00
  • 7a543cfae6 Roberto Ierusalimschy 2013-04-15 12:43:34 -03:00
  • 24689927f2 dependencies updated (with 'gcc -MM') Roberto Ierusalimschy 2013-04-15 11:13:38 -03:00
  • 8f8665fffa 'ttypenv' -> 'ttnov' Roberto Ierusalimschy 2013-04-12 16:07:09 -03:00
  • 49c1607157 _FILE_OFFSET_BITS usually also needs _LARGEFILE_SOURCE + easier to use default definition for 'l_fseek' in ansi systems Roberto Ierusalimschy 2013-04-11 15:34:06 -03:00
  • c8e96d6e91 logic for checking mode for 'fopen' moved to macro 'lua_checkmode' Roberto Ierusalimschy 2013-03-21 10:57:27 -03:00
  • af8efcc762 detail (avoid unnecessary "unconst" in cast) Roberto Ierusalimschy 2013-03-21 10:54:57 -03:00
  • 3f6f78ea0b detail (error message) Roberto Ierusalimschy 2013-03-20 16:40:07 -03:00
  • e3a7104b40 detail (avoiding warnings) Roberto Ierusalimschy 2013-03-19 10:19:12 -03:00
  • 76492b4bb2 macro 'lua_checkmode' + typos in comments Roberto Ierusalimschy 2013-03-16 18:10:18 -03:00
  • 75250a237c typos in comments Roberto Ierusalimschy 2013-03-16 18:10:18 -03:00
  • 437a49be5e cast to avoid warnings Roberto Ierusalimschy 2013-03-15 15:33:36 -03:00
  • 4f0c716c8e added two more commented warning options (just to know about them) Roberto Ierusalimschy 2013-03-15 11:00:08 -03:00
  • 70b0ee6310 export 'lua_ident' to avoid it being removed by C++ linker Roberto Ierusalimschy 2013-03-15 10:04:22 -03:00
  • 8830901a9c second parameter to 'ldexp' is an integer Roberto Ierusalimschy 2013-03-07 15:21:32 -03:00
  • 15a3738b49 no need to handle 0 as a special case in 'table.remove' Roberto Ierusalimschy 2013-03-07 15:17:24 -03:00
  • a83ed55f1e added 'return' (when possible) to calls to error functions Roberto Ierusalimschy 2013-02-21 10:44:53 -03:00
  • b559aed2d3 'l_tg' was renamed to 'l_mathop' and this use was not corrected at the time Roberto Ierusalimschy 2013-02-20 11:08:56 -03:00
  • d0c038da07 typo in comment Roberto Ierusalimschy 2013-02-20 11:08:21 -03:00
  • db424053e8 new release number + copyright year Roberto Ierusalimschy 2013-02-19 15:39:04 -03:00
  • ad56721948 details (5.2 corrected to 5.2.0) Roberto Ierusalimschy 2013-02-07 13:57:47 -02:00
  • f4e762f688 better error checking for 'table.insert' and 'table.remove' Roberto Ierusalimschy 2013-02-06 16:29:03 -02:00
  • 1ce57628b2 comments Roberto Ierusalimschy 2013-02-06 11:37:39 -02:00
  • 181a837cac small improvement in the support of 'float' as lua_Number Roberto Ierusalimschy 2013-01-29 14:00:40 -02:00
  • 0730a56d38 detail Roberto Ierusalimschy 2013-01-08 12:06:55 -02:00
  • eecc1491f3 added some comments Roberto Ierusalimschy 2012-12-05 17:57:00 -02:00
  • 7ea68d84c4 added comment Roberto Ierusalimschy 2012-12-05 17:49:55 -02:00
  • 0e9167bc72 missing brackets in 'if' body (no bug, only 'luaC_checkfinalizer' is called to do nothing) Roberto Ierusalimschy 2012-12-05 17:09:23 -02:00
  • 65e31fb179 Bug: load/loadfile returns wrong result when given an environment for a binary chunk with no upvalues Roberto Ierusalimschy 2012-12-03 18:18:02 -02:00
  • f993771c70 avoids warning with 'clang' + comment explaining macro Roberto Ierusalimschy 2012-11-14 15:21:34 -02:00
  • 52f9ccd298 removed unreacheable 'lua_unlock' Roberto Ierusalimschy 2012-11-04 18:08:17 -02:00
  • a799ed5af9 more precise control for GC pause (based on threshold) Roberto Ierusalimschy 2012-10-19 16:00:33 -03:00
  • 4082c77ff2 error message for 'bad self' includes original 'extramsg' Roberto Ierusalimschy 2012-10-19 12:55:01 -03:00
  • bc84180d12 error message in 'os.rename' does not include file name, because error may be caused both by 'fromname' or 'toname' Roberto Ierusalimschy 2012-10-19 12:54:02 -03:00
  • ad5da6ba14 API functions get acceptable indices except when not possible (when they modify the value at that index) + new macro 'ispseudo' + specific test 'api_checkstackindex' Roberto Ierusalimschy 2012-10-19 12:52:46 -03:00
  • 86b39206d9 open upvalues cannot be old if thread is not old; when thread is old, their list is not traversed anymore, and therefore can contain dead elements. Roberto Ierusalimschy 2012-10-03 09:36:46 -03:00
  • fdae4b9453 removed commented-out line (for debugging) Roberto Ierusalimschy 2012-10-03 09:36:17 -03:00
  • 84b6581287 cast to avoid warning in some compilers (size_t x unsigned int) Roberto Ierusalimschy 2012-10-02 14:41:50 -03:00
  • c6b6024a9d cast in 'luai_makeseed' now casts to needed type Roberto Ierusalimschy 2012-10-02 14:40:53 -03:00
  • d58ce8106e macro 'lua_number2unsigned' also needs proper definition if lua_Number is float Roberto Ierusalimschy 2012-10-02 14:32:44 -03:00
  • 31f7d553e4 LUA_CORE condition removed from definition of some 'tricks' (as it controlled only a few other defines) + MS_ASMTRICK renamed to LUA_MSASMTRICK Roberto Ierusalimschy 2012-10-01 11:14:45 -03:00
  • adaba04059 'pcall' may not restore previous error function when inside coroutines + Check for garbage collector in function calls does not cover all paths Roberto Ierusalimschy 2012-10-01 11:05:31 -03:00
  • b157f3546e BUG: 'pcall' may not restore previous error function when inside coroutines Roberto Ierusalimschy 2012-10-01 11:05:04 -03:00
  • ab7086e209 pops the string from 'get_prompt' only after using it Roberto Ierusalimschy 2012-09-29 17:07:06 -03:00
  • 7a3de1aba3 typo in comment Roberto Ierusalimschy 2012-09-24 19:57:26 -03:00
  • 8287a0db55 detail Roberto Ierusalimschy 2012-09-11 16:37:16 -03:00
  • cf160abcf9 no more macro 'changenvalue' Roberto Ierusalimschy 2012-09-11 15:21:44 -03:00
  • ae1d318822 small bug: generational mode is always in 'propagate' mode only outside the collector: during collection of course it must go to other modes. Roberto Ierusalimschy 2012-09-11 09:53:08 -03:00
  • 2038073975 more regularity for field 'fix' Roberto Ierusalimschy 2012-09-11 09:42:14 -03:00
  • 2dc91ca5ee checks garbage collector every time it calls a function (as the stack can grow and so allocates more memory) Roberto Ierusalimschy 2012-08-28 15:30:45 -03:00
  • a3e1c40d6d remove of unecessary luaD_checkstack. (In some cases, C should ensure stack space; in others, Lua can use the extra slots for temporary values.) Roberto Ierusalimschy 2012-08-16 14:34:28 -03:00
  • c1a2a646c8 details (no need to use lua_pushfstring for plain strings) Roberto Ierusalimschy 2012-08-16 14:32:20 -03:00
  • 53480f1163 details (remove of some extra spaces) Roberto Ierusalimschy 2012-08-14 15:12:34 -03:00
  • 233eac4d3a detail (avoid being picky about conversion from 'unsigned char' to 'int') Roberto Ierusalimschy 2012-08-06 10:36:34 -03:00
  • 6625cbecd1 Bug: Some patterns can overflow the C stack, due to recursion (Took the opportunity to refactor function 'match') Roberto Ierusalimschy 2012-07-31 14:48:42 -03:00
  • 4ac55997ec typo Roberto Ierusalimschy 2012-07-13 11:54:14 -03:00
  • 763f84c84c Some patterns can overflow the C stack, due to recursion. Roberto Ierusalimschy 2012-07-13 11:53:38 -03:00
  • e4f609d0ee collector in generational mode must be in 'propagate' state when not running a collection Roberto Ierusalimschy 2012-07-04 12:52:38 -03:00
  • 5ac56a94dd collector in generational mode should never be in 'pause' state Roberto Ierusalimschy 2012-07-02 12:38:36 -03:00
  • 4fc15bbfb7 major collections in generational mode are triggered by comparison with the memory estimate from last major collection Roberto Ierusalimschy 2012-07-02 10:40:05 -03:00
  • f7ec36ab16 comment Roberto Ierusalimschy 2012-07-02 10:37:04 -03:00
  • b926472312 change in error message Roberto Ierusalimschy 2012-06-29 16:23:33 -03:00
  • 78d9865900 bugs: Internal Lua values may escape through the debug API + Problems when yielding from debug hooks Roberto Ierusalimschy 2012-06-11 14:49:37 -03:00
  • cc2a60ecb7 bugs in yields inside debug hooks Roberto Ierusalimschy 2012-06-08 12:14:04 -03:00
  • 43bfb60ac8 new auxiliary function 'luaI_printinst' (to print a single instruction) Roberto Ierusalimschy 2012-06-07 15:52:47 -03:00