Commit Graph

  • ee5edb6b68 macros 'getaddrstr' and 'getstr' unified (they do the same thing) Roberto Ierusalimschy 2015-09-17 12:51:05 -0300
  • bda83e22c0 'tablib' does not try to use raw operations when possible: fast track should make standard operations fast enough to forgo raw accesses Roberto Ierusalimschy 2015-09-09 12:42:30 -0300
  • 364cdbdbdb 'setobj2t' incorporated into 'luaV_fastset' + 'invalidateTMcache' is not needed in the fast track (as it does not create new entries) + small bug in 'auxsetstr' (calling barrier with wrong object) + using 'setobj2t' without side effects in its arguments Roberto Ierusalimschy 2015-09-09 10:45:50 -0300
  • b91bc93fd3 'setobj2t' incorporated into 'luaV_fastset' + 'invalidateTMcache' is not needed in the fast track (as it does not create new entries) Roberto Ierusalimschy 2015-09-09 10:44:07 -0300
  • 53be1451a8 new definition for macro 'checkliveness' Roberto Ierusalimschy 2015-09-08 13:55:43 -0300
  • eb0be12ceb detail in macro 'checkliveness' + macro 'setobj2t' defined as an expression (to be used in macro 'luaV_fastset') Roberto Ierusalimschy 2015-09-08 13:54:52 -0300
  • 1198d82530 'lua_longassert' defined as an expression (instead of a command) Roberto Ierusalimschy 2015-09-08 13:53:56 -0300
  • 6556fcfe5a small janitor work Roberto Ierusalimschy 2015-09-08 12:49:25 -0300
  • 41964648ee long strings are created directly in final position when possible (instead of using an auxiliar buffer to first create the string and then allocate the final string and copy result there) Roberto Ierusalimschy 2015-09-08 12:41:05 -0300
  • 502214f8a5 added assert for NULL pointer in 'lua_pushlstring' Roberto Ierusalimschy 2015-08-25 15:50:37 -0300
  • ed19fe766c added ';' at the end of "expression lines" ("return exp;") so that an extra ";" at the end is enough to stop Lua printing the result ("return exp;;" is not valid) Roberto Ierusalimschy 2015-08-14 16:11:20 -0300
  • 8f25d08637 'invalidateTMcache' not needed in all 'settable' uses Roberto Ierusalimschy 2015-08-03 17:40:26 -0300
  • 3b795541c4 fast track for 'settable' Roberto Ierusalimschy 2015-08-03 16:50:49 -0300
  • 20b9e59441 barrier macros rewritten as expressions Roberto Ierusalimschy 2015-08-03 16:40:42 -0300
  • 935d9f7f90 new entry should not be commented out Roberto Ierusalimschy 2015-07-23 11:32:17 -0300
  • e247c3ada3 implementation of fast track for gettable operations Roberto Ierusalimschy 2015-07-20 15:24:50 -0300
  • b5dc2f9b0c bug: 'io.lines' does not check maximum number of options Roberto Ierusalimschy 2015-07-20 13:37:12 -0300
  • 5273477cb9 in 'lua_number2strx', use the call to 'l_sprintf' to add exponent to result directly Roberto Ierusalimschy 2015-07-20 13:30:22 -0300
  • b9db9bd0ef 'lua_Number' added to 'L_Umaxalign' union Roberto Ierusalimschy 2015-07-15 12:57:13 -0300
  • 050e8536bb bug: 'io.lines' does not check maximum number of options Roberto Ierusalimschy 2015-07-15 11:40:28 -0300
  • 2b61360d82 avoid overflows (detected with 'clang -ftrapv') Roberto Ierusalimschy 2015-07-13 10:30:03 -0300
  • 5b6ac971f9 detail (comment) Roberto Ierusalimschy 2015-07-07 14:03:34 -0300
  • 403e181d81 'strftime' puts its result directly into 'lua_Buffer' Roberto Ierusalimschy 2015-07-06 12:16:51 -0300
  • 4af03c5ae1 better treatment for integer overflows + all errors throw an error (instead of returning nil) Roberto Ierusalimschy 2015-07-04 13:35:14 -0300
  • bde17a419d because of debt, 'totalbytes' can be negative (and therefore its type must be signed) Roberto Ierusalimschy 2015-07-04 13:33:17 -0300
  • 8950e0c049 avoid possibility of subtle arith. overflow Roberto Ierusalimschy 2015-07-04 13:32:34 -0300
  • 8217e0d4fe avoid subtle possibility of arithmetic overflow Roberto Ierusalimschy 2015-07-04 13:31:42 -0300
  • 319ccfefbc computations in numerical for loop must avoid overflows too Roberto Ierusalimschy 2015-07-04 13:31:03 -0300
  • 6a8400ba4f using 'clang' by default + changes in warnings ('old-style-declaration' removed because it is included in 'extra' + 'strict-aliasing' removed because it is included in 'all' + 'aggregate-return' removed because no one would do it by mistake) Roberto Ierusalimschy 2015-07-01 14:52:09 -0300
  • 2de3361c6c detail Roberto Ierusalimschy 2015-07-01 14:47:12 -0300
  • e89763e964 simpler code for 'luaO_fb2int' Roberto Ierusalimschy 2015-06-26 16:32:07 -0300
  • be63d995c1 tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand') to discard first value Roberto Ierusalimschy 2015-06-26 16:30:32 -0300
  • 2b1fc1b38c with string cache, it is not that important for 'type' to avoid 'lua_pushstring' Roberto Ierusalimschy 2015-06-26 16:25:45 -0300
  • f01c12c891 detail (cast to avoid mixing types in conditional expression) Roberto Ierusalimschy 2015-06-25 11:00:01 -0300
  • 5aabb7a891 buffer size changed from size_t to int (it is always small) + comments + assert that printf result fits in given buffer Roberto Ierusalimschy 2015-06-24 15:25:10 -0300
  • cb1e451999 detail Roberto Ierusalimschy 2015-06-24 15:23:57 -0300
  • 43cff79bf7 detail Roberto Ierusalimschy 2015-06-21 10:50:29 -0300
  • 95c3144393 redefine 'l_sprintf' to test correctness of buffer sizes given to 'snprintf' Roberto Ierusalimschy 2015-06-18 11:27:44 -0300
  • 19eb6ae580 using 'snprintf' in C99 (both for documentation of buffer sizes and some complains from tools) Roberto Ierusalimschy 2015-06-18 11:26:05 -0300
  • cbe05b48bb using 'lua_longassert' to avoid warnings Roberto Ierusalimschy 2015-06-18 11:25:26 -0300
  • e7f34ad395 better implementation for buffers (reallocated memory directly with allocation function; generates much less garbage) Roberto Ierusalimschy 2015-06-18 11:23:14 -0300
  • a5cbb7c3a7 detail (i + 1 > exp is simply i >= exp) Roberto Ierusalimschy 2015-06-18 11:20:32 -0300
  • dcad08b76d details (use original type when saving variable's value) Roberto Ierusalimschy 2015-06-18 11:19:52 -0300
  • afbf5c5dab missing ']]' in long string Roberto Ierusalimschy 2015-06-18 11:05:28 -0300
  • a1415c0d72 bug in order NaN x int (tests must ensure that NaN does not get converted to integer) v5.3.1 Roberto Ierusalimschy 2015-06-09 12:53:35 -0300
  • 2ecaf18138 using macros ('rttype' and 'settt_') to access "private" field 'tt_' Roberto Ierusalimschy 2015-06-09 11:21:42 -0300
  • cbef15f3ea comment (FALLTHROUGH position) Roberto Ierusalimschy 2015-06-09 11:21:13 -0300
  • 16e8bb360b comment Roberto Ierusalimschy 2015-06-09 11:21:00 -0300
  • 6628012e9e new release number (5.3.1) Roberto Ierusalimschy 2015-06-03 10:03:38 -0300
  • ed1fe28bb8 When comparing integers with floats, use float as common type when possible (i.e., when integer fits in a float without losses); seems to be more efficient in architectures with native support for used Lua numbers Roberto Ierusalimschy 2015-06-02 16:11:24 -0300
  • 6645bb2df4 'strcache' elements as arrays of 1 element hints that cache can be n-way (instead of direct mapped) Roberto Ierusalimschy 2015-06-01 13:34:37 -0300
  • 02aed045de bug: return hook may not see correct values for active local variables when function returns Roberto Ierusalimschy 2015-05-22 16:32:42 -0300
  • 72bd2ef6c5 dependencies updated Roberto Ierusalimschy 2015-05-22 16:29:43 -0300
  • d39bb51faa bug: interpreter cannot pop activation frame before calling return hook (as it may want to access local variables active by the end of the function) Roberto Ierusalimschy 2015-05-22 14:48:19 -0300
  • 6142e663e4 reuse of 'addinfo' by lexical errors Roberto Ierusalimschy 2015-05-22 14:45:56 -0300
  • 6dc20ff293 'l <= r' for numbers has its own function, instead of using 'not (r < l)' (seems to be slightly more efficient) Roberto Ierusalimschy 2015-05-20 15:19:11 -0300
  • 99391e24ea new configuration macro 'l_mathlim' (simplifies some dependencies on float type) Roberto Ierusalimschy 2015-05-20 14:39:23 -0300
  • 0ec12c1bd1 new semantics for numerical order (following math regardless representation) Roberto Ierusalimschy 2015-05-20 13:22:55 -0300
  • a71c0ab861 detail (removed useless '#include') Roberto Ierusalimschy 2015-05-20 13:22:30 -0300
  • 04ba6ea83b new semantics for equality int-float Roberto Ierusalimschy 2015-04-29 15:27:16 -0300
  • a1935b9cba error message ("too complex" -> "too many registers") + MAXREGS changed to 255 (no reason not to use maximum allowed) Roberto Ierusalimschy 2015-04-29 15:24:11 -0300
  • 513c639bf9 patch for last bug corrected to be against last released version (and not against last version in RCS...) Roberto Ierusalimschy 2015-04-13 13:13:25 -0300
  • 69b5f7a410 some details in 'luaO_int2fb' + more consistent use of the locale decimal point Roberto Ierusalimschy 2015-04-11 15:30:08 -0300
  • ae76c39712 Bug: suspended '__le' metamethod can give wrong result Roberto Ierusalimschy 2015-04-10 14:56:25 -0300
  • 0d4a1f71db re-organization of initial configuration options Roberto Ierusalimschy 2015-04-10 14:41:04 -0300
  • 67bf789462 avoid using API functions inside the core Roberto Ierusalimschy 2015-04-06 09:23:48 -0300
  • 48d0674c2e more consistent use of locale radix character across Lua Roberto Ierusalimschy 2015-04-03 15:41:57 -0300
  • 6ffe006f5c detail (removed unused macro VARBITS) Roberto Ierusalimschy 2015-04-02 18:10:53 -0300
  • 4998e852ec new function 'log2' to test 'luaO_ceillog2' (if needed) Roberto Ierusalimschy 2015-04-02 18:10:21 -0300
  • 65ac789565 detail (comment) Roberto Ierusalimschy 2015-04-02 18:09:51 -0300
  • cfc84c856d 'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float') Roberto Ierusalimschy 2015-03-31 09:00:07 -0300
  • 63720a4290 janitor work (comments, variable names, some other details) Roberto Ierusalimschy 2015-03-30 16:51:00 -0300
  • 484bf14a6b calls to 'luaC_checkGC' in luaD_precall moved near to 'luaD_checkstack' (which is what can need memory) Roberto Ierusalimschy 2015-03-30 13:05:23 -0300
  • abb2f5511d detail ('b + base' -> 'base + b' to follow all other similar uses) Roberto Ierusalimschy 2015-03-30 12:45:01 -0300
  • fcc6e1220e avoid expression with side effect (in debug mode) inside 'sizeof' Roberto Ierusalimschy 2015-03-30 12:43:51 -0300
  • 3a91274547 details (avoid 'lint' warnings) Roberto Ierusalimschy 2015-03-30 12:42:59 -0300
  • f2a813ae10 details (avoid some 'lint' warnings) Roberto Ierusalimschy 2015-03-28 16:16:55 -0300
  • e723c75c02 details (avoid 'lint' warnings) Roberto Ierusalimschy 2015-03-28 16:14:47 -0300
  • b436ed58a3 'clearapihash' -> 'luaS_clearcache' and moved to 'lstring.c' (which keeps all code related to this cache) Roberto Ierusalimschy 2015-03-25 10:42:19 -0300
  • 2b37f2150e comments Roberto Ierusalimschy 2015-03-14 14:58:57 -0300
  • 331632e8d8 code detail ('if' -> '?:') Roberto Ierusalimschy 2015-03-13 13:24:50 -0300
  • 7d930ec694 use 'log2' when available Roberto Ierusalimschy 2015-03-12 11:04:04 -0300
  • 0cf3b6495a 'ci_func' don't need to be exported Roberto Ierusalimschy 2015-03-11 13:10:41 -0300
  • b66fedadae 'lua_pushliteral' implemented with 'lua_pushstring' (to take advantage of the cache) Roberto Ierusalimschy 2015-03-10 11:17:51 -0300
  • fd6e680e21 detail Roberto Ierusalimschy 2015-03-10 11:15:06 -0300
  • 57c0db219b line history keep lines without added 'return' Roberto Ierusalimschy 2015-03-09 18:57:05 -0300
  • 4ba0cb4580 always use macros to operate on lua_Numbers Roberto Ierusalimschy 2015-03-07 16:30:16 -0300
  • a30c66f0fc macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter (some people use it) Roberto Ierusalimschy 2015-03-06 16:49:50 -0300
  • bb4baa73ea allocation function is not exactly API (and cannot raise errors like other API functions); better not use 'api_check' for cheking it. Roberto Ierusalimschy 2015-03-06 16:45:54 -0300
  • d7d44b038d detail (use 'lua_pushliteral' to push an empty string) Roberto Ierusalimschy 2015-03-06 16:09:08 -0300
  • 297512b34c avoid using 'lua_pushliteral' in a non-zero-terminated string Roberto Ierusalimschy 2015-03-05 13:07:46 -0300
  • 2ae2e6408e avoid testing for NULL when marking objects that cannot be NULL Roberto Ierusalimschy 2015-03-04 10:51:55 -0300
  • a80cada914 new cache for interning strings Roberto Ierusalimschy 2015-03-04 10:31:21 -0300
  • a00013c8d0 'point2int' -> 'point2uint' (to reflect its actual result type) Roberto Ierusalimschy 2015-03-03 16:53:13 -0300
  • b9a1f27250 do not attempt emergency collection while building state (it is useless, and state can be inconsistent) Roberto Ierusalimschy 2015-03-03 15:18:29 -0300
  • 29aed28802 detail (use 'luaS_newliteral' when possible) Roberto Ierusalimschy 2015-03-03 15:17:04 -0300
  • 951b562cf8 configuration for numerical types through only one #define for each type Roberto Ierusalimschy 2015-03-02 13:59:01 -0300
  • 6408bc0b7f new macros 'chgfltvalue'/'chgivalue' (numerical for loop does not need to set the type of its internal variable at each iteration) Roberto Ierusalimschy 2015-03-02 13:04:52 -0300
  • 91efb4b895 LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3 Roberto Ierusalimschy 2015-02-28 16:22:31 -0300
  • 27c5b1b237 added patches to two bugs Roberto Ierusalimschy 2015-02-23 16:20:43 -0300