Commit Graph

  • b5dc2f9b0c bug: 'io.lines' does not check maximum number of options Roberto Ierusalimschy 2015-07-20 13:37:12 -03:00
  • 5273477cb9 in 'lua_number2strx', use the call to 'l_sprintf' to add exponent to result directly Roberto Ierusalimschy 2015-07-20 13:30:22 -03:00
  • b9db9bd0ef 'lua_Number' added to 'L_Umaxalign' union Roberto Ierusalimschy 2015-07-15 12:57:13 -03:00
  • 050e8536bb bug: 'io.lines' does not check maximum number of options Roberto Ierusalimschy 2015-07-15 11:40:28 -03:00
  • 2b61360d82 avoid overflows (detected with 'clang -ftrapv') Roberto Ierusalimschy 2015-07-13 10:30:03 -03:00
  • 5b6ac971f9 detail (comment) Roberto Ierusalimschy 2015-07-07 14:03:34 -03:00
  • 403e181d81 'strftime' puts its result directly into 'lua_Buffer' Roberto Ierusalimschy 2015-07-06 12:16:51 -03:00
  • 4af03c5ae1 better treatment for integer overflows + all errors throw an error (instead of returning nil) Roberto Ierusalimschy 2015-07-04 13:35:14 -03:00
  • bde17a419d because of debt, 'totalbytes' can be negative (and therefore its type must be signed) Roberto Ierusalimschy 2015-07-04 13:33:17 -03:00
  • 8950e0c049 avoid possibility of subtle arith. overflow Roberto Ierusalimschy 2015-07-04 13:32:34 -03:00
  • 8217e0d4fe avoid subtle possibility of arithmetic overflow Roberto Ierusalimschy 2015-07-04 13:31:42 -03:00
  • 319ccfefbc computations in numerical for loop must avoid overflows too Roberto Ierusalimschy 2015-07-04 13:31:03 -03:00
  • 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 -03:00
  • 2de3361c6c detail Roberto Ierusalimschy 2015-07-01 14:47:12 -03:00
  • e89763e964 simpler code for 'luaO_fb2int' Roberto Ierusalimschy 2015-06-26 16:32:07 -03:00
  • be63d995c1 tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand') to discard first value Roberto Ierusalimschy 2015-06-26 16:30:32 -03:00
  • 2b1fc1b38c with string cache, it is not that important for 'type' to avoid 'lua_pushstring' Roberto Ierusalimschy 2015-06-26 16:25:45 -03:00
  • f01c12c891 detail (cast to avoid mixing types in conditional expression) Roberto Ierusalimschy 2015-06-25 11:00:01 -03:00
  • 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 -03:00
  • cb1e451999 detail Roberto Ierusalimschy 2015-06-24 15:23:57 -03:00
  • 43cff79bf7 detail Roberto Ierusalimschy 2015-06-21 10:50:29 -03:00
  • 95c3144393 redefine 'l_sprintf' to test correctness of buffer sizes given to 'snprintf' Roberto Ierusalimschy 2015-06-18 11:27:44 -03:00
  • 19eb6ae580 using 'snprintf' in C99 (both for documentation of buffer sizes and some complains from tools) Roberto Ierusalimschy 2015-06-18 11:26:05 -03:00
  • cbe05b48bb using 'lua_longassert' to avoid warnings Roberto Ierusalimschy 2015-06-18 11:25:26 -03:00
  • e7f34ad395 better implementation for buffers (reallocated memory directly with allocation function; generates much less garbage) Roberto Ierusalimschy 2015-06-18 11:23:14 -03:00
  • a5cbb7c3a7 detail (i + 1 > exp is simply i >= exp) Roberto Ierusalimschy 2015-06-18 11:20:32 -03:00
  • dcad08b76d details (use original type when saving variable's value) Roberto Ierusalimschy 2015-06-18 11:19:52 -03:00
  • afbf5c5dab missing ']]' in long string Roberto Ierusalimschy 2015-06-18 11:05:28 -03:00
  • 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 -03:00
  • 2ecaf18138 using macros ('rttype' and 'settt_') to access "private" field 'tt_' Roberto Ierusalimschy 2015-06-09 11:21:42 -03:00
  • cbef15f3ea comment (FALLTHROUGH position) Roberto Ierusalimschy 2015-06-09 11:21:13 -03:00
  • 16e8bb360b comment Roberto Ierusalimschy 2015-06-09 11:21:00 -03:00
  • 6628012e9e new release number (5.3.1) Roberto Ierusalimschy 2015-06-03 10:03:38 -03:00
  • 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 -03:00
  • 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 -03:00
  • 02aed045de bug: return hook may not see correct values for active local variables when function returns Roberto Ierusalimschy 2015-05-22 16:32:42 -03:00
  • 72bd2ef6c5 dependencies updated Roberto Ierusalimschy 2015-05-22 16:29:43 -03:00
  • 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 -03:00
  • 6142e663e4 reuse of 'addinfo' by lexical errors Roberto Ierusalimschy 2015-05-22 14:45:56 -03:00
  • 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 -03:00
  • 99391e24ea new configuration macro 'l_mathlim' (simplifies some dependencies on float type) Roberto Ierusalimschy 2015-05-20 14:39:23 -03:00
  • 0ec12c1bd1 new semantics for numerical order (following math regardless representation) Roberto Ierusalimschy 2015-05-20 13:22:55 -03:00
  • a71c0ab861 detail (removed useless '#include') Roberto Ierusalimschy 2015-05-20 13:22:30 -03:00
  • 04ba6ea83b new semantics for equality int-float Roberto Ierusalimschy 2015-04-29 15:27:16 -03:00
  • 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 -03:00
  • 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 -03:00
  • 69b5f7a410 some details in 'luaO_int2fb' + more consistent use of the locale decimal point Roberto Ierusalimschy 2015-04-11 15:30:08 -03:00
  • ae76c39712 Bug: suspended '__le' metamethod can give wrong result Roberto Ierusalimschy 2015-04-10 14:56:25 -03:00
  • 0d4a1f71db re-organization of initial configuration options Roberto Ierusalimschy 2015-04-10 14:41:04 -03:00
  • 67bf789462 avoid using API functions inside the core Roberto Ierusalimschy 2015-04-06 09:23:48 -03:00
  • 48d0674c2e more consistent use of locale radix character across Lua Roberto Ierusalimschy 2015-04-03 15:41:57 -03:00
  • 6ffe006f5c detail (removed unused macro VARBITS) Roberto Ierusalimschy 2015-04-02 18:10:53 -03:00
  • 4998e852ec new function 'log2' to test 'luaO_ceillog2' (if needed) Roberto Ierusalimschy 2015-04-02 18:10:21 -03:00
  • 65ac789565 detail (comment) Roberto Ierusalimschy 2015-04-02 18:09:51 -03:00
  • cfc84c856d 'LUA_REAL_*' -> 'LUA_FLOAT_*' (everywhere else we are using 'float') Roberto Ierusalimschy 2015-03-31 09:00:07 -03:00
  • 63720a4290 janitor work (comments, variable names, some other details) Roberto Ierusalimschy 2015-03-30 16:51:00 -03:00
  • 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 -03:00
  • abb2f5511d detail ('b + base' -> 'base + b' to follow all other similar uses) Roberto Ierusalimschy 2015-03-30 12:45:01 -03:00
  • fcc6e1220e avoid expression with side effect (in debug mode) inside 'sizeof' Roberto Ierusalimschy 2015-03-30 12:43:51 -03:00
  • 3a91274547 details (avoid 'lint' warnings) Roberto Ierusalimschy 2015-03-30 12:42:59 -03:00
  • f2a813ae10 details (avoid some 'lint' warnings) Roberto Ierusalimschy 2015-03-28 16:16:55 -03:00
  • e723c75c02 details (avoid 'lint' warnings) Roberto Ierusalimschy 2015-03-28 16:14:47 -03:00
  • 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 -03:00
  • 2b37f2150e comments Roberto Ierusalimschy 2015-03-14 14:58:57 -03:00
  • 331632e8d8 code detail ('if' -> '?:') Roberto Ierusalimschy 2015-03-13 13:24:50 -03:00
  • 7d930ec694 use 'log2' when available Roberto Ierusalimschy 2015-03-12 11:04:04 -03:00
  • 0cf3b6495a 'ci_func' don't need to be exported Roberto Ierusalimschy 2015-03-11 13:10:41 -03:00
  • b66fedadae 'lua_pushliteral' implemented with 'lua_pushstring' (to take advantage of the cache) Roberto Ierusalimschy 2015-03-10 11:17:51 -03:00
  • fd6e680e21 detail Roberto Ierusalimschy 2015-03-10 11:15:06 -03:00
  • 57c0db219b line history keep lines without added 'return' Roberto Ierusalimschy 2015-03-09 18:57:05 -03:00
  • 4ba0cb4580 always use macros to operate on lua_Numbers Roberto Ierusalimschy 2015-03-07 16:30:16 -03:00
  • a30c66f0fc macro 'luai_apicheck'/'api_check' back with a 'lua_State' parameter (some people use it) Roberto Ierusalimschy 2015-03-06 16:49:50 -03:00
  • 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 -03:00
  • d7d44b038d detail (use 'lua_pushliteral' to push an empty string) Roberto Ierusalimschy 2015-03-06 16:09:08 -03:00
  • 297512b34c avoid using 'lua_pushliteral' in a non-zero-terminated string Roberto Ierusalimschy 2015-03-05 13:07:46 -03:00
  • 2ae2e6408e avoid testing for NULL when marking objects that cannot be NULL Roberto Ierusalimschy 2015-03-04 10:51:55 -03:00
  • a80cada914 new cache for interning strings Roberto Ierusalimschy 2015-03-04 10:31:21 -03:00
  • a00013c8d0 'point2int' -> 'point2uint' (to reflect its actual result type) Roberto Ierusalimschy 2015-03-03 16:53:13 -03:00
  • 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 -03:00
  • 29aed28802 detail (use 'luaS_newliteral' when possible) Roberto Ierusalimschy 2015-03-03 15:17:04 -03:00
  • 951b562cf8 configuration for numerical types through only one #define for each type Roberto Ierusalimschy 2015-03-02 13:59:01 -03:00
  • 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 -03:00
  • 91efb4b895 LUA_COMPAT_5_1 needs some options deprecated from 5.2 to 5.3 Roberto Ierusalimschy 2015-02-28 16:22:31 -03:00
  • 27c5b1b237 added patches to two bugs Roberto Ierusalimschy 2015-02-23 16:20:43 -03:00
  • 4324904b60 corrected year (2014 -> 2015) for release 5.2.4. v5-2 Roberto Ierusalimschy 2015-02-21 12:04:50 -02:00
  • d51bdc166d bug: 'string.format("%f")' can cause a buffer overflow (with long doubles) bug: 'debug.getlocal' on a coroutine suspended in a hook can crash the interpreter Roberto Ierusalimschy 2015-02-20 16:21:29 -02:00
  • 81245b1ad5 'numisinteger' (for table keys) replaced by 'luaV_tointeger' (old 'tointeger_aux'), which can do the same job. Roberto Ierusalimschy 2015-02-20 12:27:53 -02:00
  • 397ce11996 make 'hashfloat' configurable Roberto Ierusalimschy 2015-02-20 12:05:01 -02:00
  • 5705476065 bug: when manipulating other threads, there is no garanties about their stack space Roberto Ierusalimschy 2015-02-19 15:16:55 -02:00
  • 97f2aa5a44 bug: when manipulating other threads, there is no garanties about their stack space Roberto Ierusalimschy 2015-02-19 15:06:21 -02:00
  • abd8f8433d bug: suspended function can have its 'func' field not pointing to its function, crashing debug functions Roberto Ierusalimschy 2015-02-19 15:05:13 -02:00
  • 419e2cb01d detail (file does not need 'string.h') Roberto Ierusalimschy 2015-02-16 11:15:00 -02:00
  • 374f6c4612 detail ('fopen' needs 'stdio.h') Roberto Ierusalimschy 2015-02-16 11:14:33 -02:00
  • 4bdf9962bf bug: suspended function can have its 'func' field not pointing to its function, crashing debug functions Roberto Ierusalimschy 2015-02-13 14:01:17 -02:00
  • e0306e386f some changes in 'hashfloat' to avoid undefined (in ISO C) numerical conversions Roberto Ierusalimschy 2015-02-13 11:05:34 -02:00
  • 2e6e53c7cc added API checks to some unprotected 'top' increments Roberto Ierusalimschy 2015-02-11 16:47:22 -02:00
  • 2a57d2346e detail Roberto Ierusalimschy 2015-02-09 16:05:46 -02:00
  • 7e425be975 bug (in 5.2): Chunk with too many lines can seg. fault Roberto Ierusalimschy 2015-02-09 15:57:45 -02:00
  • ce74637ace bug: Chunk with too many lines can seg. fault Roberto Ierusalimschy 2015-02-09 15:56:34 -02:00
  • 0705e7b39f detail (no need to write 'double' in source) Roberto Ierusalimschy 2015-02-09 15:41:54 -02:00