Commit Graph

  • 1bd70a8e40 new function 'lua_isyieldable' (and 'coroutine.isyieldable') Roberto Ierusalimschy 2014-05-08 10:52:20 -03:00
  • ef83457427 updated several 'fix' fields Roberto Ierusalimschy 2014-05-07 13:57:27 -03:00
  • 4833fb8273 marks for releases 5.2.2 and 5.2.3 + correction in last bug's description Roberto Ierusalimschy 2014-05-07 13:35:24 -03:00
  • 8efe9f23fa BUG: compiler can optimize away overflow check in 'table.unpack' Roberto Ierusalimschy 2014-05-07 13:32:55 -03:00
  • a29377972f updated for (eventual) release 5.2.4 Roberto Ierusalimschy 2014-05-07 11:15:55 -03:00
  • dace83ea30 detail (better alignment for struct 'Table') Roberto Ierusalimschy 2014-05-07 11:14:58 -03:00
  • 77e7ebca0a better alignments (for 64-bit arquitectures) for structures 'Table' and 'TString' Roberto Ierusalimschy 2014-05-07 08:12:51 -03:00
  • 6d5324f92f 'math.fmod' handles integers as integers Roberto Ierusalimschy 2014-05-02 13:36:51 -03:00
  • 4fe11ae232 'lua_getuservalue' returns type of user value Roberto Ierusalimschy 2014-05-01 15:21:32 -03:00
  • c549d4fe64 'lua_strtonum' (and 'luaO_str2num') now return string size, instead of receiving it Roberto Ierusalimschy 2014-05-01 15:18:06 -03:00
  • ddff6ecf30 function 'limittointeger' no needed (now that 'tointeger_aux' handles integers too) Roberto Ierusalimschy 2014-04-30 16:29:51 -03:00
  • 6b630c0fa0 debug.numbits replaced by debug.Csize Roberto Ierusalimschy 2014-04-30 15:59:15 -03:00
  • 1a6ef098b0 'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' plus proper conversion from strings to integers Roberto Ierusalimschy 2014-04-30 13:50:16 -03:00
  • 5388aa9fc0 'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' (which converts to float or integer according to the string syntax) Roberto Ierusalimschy 2014-04-30 13:48:44 -03:00
  • b123a88673 merge of common parts from 'limittointeger' and 'luaV_tointeger_' Roberto Ierusalimschy 2014-04-29 17:06:05 -03:00
  • ffa43df3cd 'setnvalue' -> 'setfltvalue' (for consitency with 'fltvalue') Roberto Ierusalimschy 2014-04-29 15:14:16 -03:00
  • 9c4398de8f 'for' loop tries to convert limit to integer when initial value and step are integers Roberto Ierusalimschy 2014-04-29 15:11:57 -03:00
  • a0d4f0fc8a template for 'mkstemp' is configurable (via LUA_TMPNAMTEMPLATE) Roberto Ierusalimschy 2014-04-29 14:05:13 -03:00
  • 68616c6669 using lua_Unsigned (instead of lua_Integer) for bit manipulation Roberto Ierusalimschy 2014-04-27 11:42:26 -03:00
  • e98ba351ce n^-m gives float result (instead of error) Roberto Ierusalimschy 2014-04-27 11:41:11 -03:00
  • cbe4998bc2 'math.random(n,m)' interval restricted in size, to avoid using conversion between 'double' and 'unsigned' (which can be slow and unreliable) Roberto Ierusalimschy 2014-04-17 13:09:40 -03:00
  • 0172c9552c comment Roberto Ierusalimschy 2014-04-17 11:41:11 -03:00
  • 3d4913f703 back to larger sizes for 'dumpint/undumpint' (small Lua should be able to dump/undump long-long integers) Roberto Ierusalimschy 2014-04-16 15:48:31 -03:00
  • c27ef1b79c correct integer limits for Windows + small adjustments for short option Roberto Ierusalimschy 2014-04-16 15:45:51 -03:00
  • 4422b97472 keep 'luaL_checkversion_' with its signature in version 5.2, for correct error messages in case of version mixings Roberto Ierusalimschy 2014-04-15 15:25:49 -03:00
  • 2f02d264e9 initial '*' in 'io.read' formats is deprecated Roberto Ierusalimschy 2014-04-15 13:46:45 -03:00
  • 037a70dfea cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from outside (mostly for testing) Roberto Ierusalimschy 2014-04-15 13:32:49 -03:00
  • 8f961da3db macros cast_integer/cast_unsigned replaced by cast_u2s/cast_s2u, that should be used only between lua_Integer and lua_Unsigned Roberto Ierusalimschy 2014-04-15 11:29:30 -03:00
  • 5c46b7b8cf instructions in 'runC' sorted alphabetically + new instructions 'tointeger'/'tounsigned' Roberto Ierusalimschy 2014-04-14 15:42:44 -03:00
  • a2c094fe2d size of strings in 'string.rep' should be limited by the size of lua_Integer, not of 'int' Roberto Ierusalimschy 2014-04-14 13:59:46 -03:00
  • f767f29d87 using predefined limits (instead of computing min/max values for each type) + some comments Roberto Ierusalimschy 2014-04-14 13:58:54 -03:00
  • 675530c4d8 maximum size of array part of a table now is restricted not only by the size of an 'int', but also by the size of a 'lua_Integer' Roberto Ierusalimschy 2014-04-13 18:11:19 -03:00
  • ab964ad7c6 new macro LUA_MAXUNSIGNED + support for 'short' integers (for tests only) Roberto Ierusalimschy 2014-04-12 11:51:53 -03:00
  • ef789d4161 new global macro 'LUA_MAXUNSIGNED' Roberto Ierusalimschy 2014-04-12 11:45:10 -03:00
  • b390d7c168 detail (avoid "casting down" in case lua_Integer is smaller than int) Roberto Ierusalimschy 2014-04-12 11:43:50 -03:00
  • 218f358461 errors like 1e100 << "2" were giving wrong messages Roberto Ierusalimschy 2014-04-11 17:17:39 -03:00
  • bf06e22b6a correct definition for 'MAX_SIZE' (using singed integers as the limit, not unsigned ones) + new type 'l_uacInt' Roberto Ierusalimschy 2014-04-11 16:56:04 -03:00
  • d99ffa920d new type 'LUAI_UACINT' (result of an 'usual argument conversion' of a lua_Integer) Roberto Ierusalimschy 2014-04-11 16:53:45 -03:00
  • 2771050dfa 'MIN/MAX_INTEGER' replaced by 'LUA_MIN/MAXINTEGER' Roberto Ierusalimschy 2014-04-11 16:02:16 -03:00
  • e1daf10e4c details in comments Roberto Ierusalimschy 2014-04-11 15:19:07 -03:00
  • 115fa77009 maximum size for dump of integers is size of lua_Integer (which means that there is no overflows when undumping) Roberto Ierusalimschy 2014-04-10 16:45:43 -03:00
  • 561030c211 pack/unpack functions renamed dump/undump Roberto Ierusalimschy 2014-04-10 15:24:12 -03:00
  • 5336cc9d6a math.random: use 'random' when available + changes to work correctly for any integer interval (up to [minint,maxint]) Roberto Ierusalimschy 2014-04-10 14:53:33 -03:00
  • fdd137276b more precision for PI + no more RADIANS_PER_DEGREE + 'min/maxint' -> 'min/maxinteger' Roberto Ierusalimschy 2014-04-09 14:29:46 -03:00
  • a8aede68c7 new definition for 'luai_nummod' (using 'fmod') Roberto Ierusalimschy 2014-04-09 14:05:11 -03:00
  • c7859a046d using 'volatile' in 'tofloat' to ensure result has the same precision (lua_Number) of other computations Roberto Ierusalimschy 2014-04-08 11:28:04 -03:00
  • 4a24883674 'GCmemtrav' does not need to track the entire collection, only each single step individually Roberto Ierusalimschy 2014-04-04 14:01:04 -03:00
  • 9737832641 'int' -> 'lua_Integer' in several functions Roberto Ierusalimschy 2014-04-04 13:38:11 -03:00
  • 8b45d9806a new constants 'math.maxint'/'math.minint' Roberto Ierusalimschy 2014-04-03 11:18:19 -03:00
  • be52f784d9 new macros LUA_MAXINTEGER/LUA_MININTEGER Roberto Ierusalimschy 2014-04-03 11:18:02 -03:00
  • 144afa4d47 several changes in 'utf8.offset' Roberto Ierusalimschy 2014-04-03 10:45:09 -03:00
  • 007f66408d bug: compiler can optimize away overflow check in 'table.concat' Roberto Ierusalimschy 2014-04-03 10:30:23 -03:00
  • 48c745a611 avoid constant overflow when shifting left signed integers until their last bit Roberto Ierusalimschy 2014-04-03 10:29:24 -03:00
  • 3a044de5a1 new implementation for 'utf8.len' Roberto Ierusalimschy 2014-04-02 14:01:22 -03:00
  • 7d514af0bc bug (in work version): comparisons should not try to convert strings to numbers Roberto Ierusalimschy 2014-04-02 13:54:20 -03:00
  • f61ceee708 LUAI_FUNC is being used only in header files Roberto Ierusalimschy 2014-04-02 13:44:42 -03:00
  • 5aeb57f11f detail (error message for conversion from float to integer) Roberto Ierusalimschy 2014-04-01 15:55:06 -03:00
  • 493b3fdd65 added an 'api_check' for negative sizes in 'lua_checkstack' Roberto Ierusalimschy 2014-04-01 15:51:23 -03:00
  • 315c5bf7b7 bug: compiler could optimize away overflow check (+ changing indices from 'int' to 'lua_Integer') Roberto Ierusalimschy 2014-04-01 15:50:34 -03:00
  • 607be77ec8 some details to avoid warnings Roberto Ierusalimschy 2014-04-01 11:39:55 -03:00
  • 0d745ed04c more precise estimation (GCestimate) for total bytes in use after a GC cycle Roberto Ierusalimschy 2014-04-01 11:06:59 -03:00
  • 3d1c6730da detail ('1U' -> '1u', like other unsigned constants in the code) Roberto Ierusalimschy 2014-03-31 16:18:24 -03:00
  • 66b7b9b582 math.abs, math.max, and math.min work for integers, too. Roberto Ierusalimschy 2014-03-31 16:00:52 -03:00
  • 8ef9117924 fancier way to do sign extension Roberto Ierusalimschy 2014-03-31 15:38:26 -03:00
  • ea69f17d98 macro 'tostring' is used only by 'luaV_concat' Roberto Ierusalimschy 2014-03-31 15:37:52 -03:00
  • 420cc62fac missplelling in comments/function names (endianess -> endianness) Roberto Ierusalimschy 2014-03-27 12:58:05 -03:00
  • 1a3ebc203a definition of LUA_REAL_* and LUA_INT_* moved to the beginning of configurations Roberto Ierusalimschy 2014-03-21 11:27:16 -03:00
  • 2d5e2212d4 native lua_Number may be neither float nor double (in pack/unpackfloat) Roberto Ierusalimschy 2014-03-21 11:26:44 -03:00
  • da4811238a details (typos in comments) Roberto Ierusalimschy 2014-03-21 10:52:33 -03:00
  • f96872a534 copyright year -> 2014 Roberto Ierusalimschy 2014-03-20 16:42:35 -03:00
  • 738b3b64af detail (to avoid warnings with '-O3') Roberto Ierusalimschy 2014-03-20 16:36:02 -03:00
  • 363b525c23 does not create library when it is deprecated Roberto Ierusalimschy 2014-03-20 16:22:16 -03:00
  • 469daa16ee configuration for Lua type corresponding to 'time_t' Roberto Ierusalimschy 2014-03-20 16:18:54 -03:00
  • 7707f3e7c3 'posrelat' -> 'u_posrelat' (to avoid name conflict in 'one.c') Roberto Ierusalimschy 2014-03-20 11:11:00 -03:00
  • 16f8e44924 with 64-bit integers, file offsets do not need to be floats Roberto Ierusalimschy 2014-03-19 15:57:42 -03:00
  • 2f5f77788f removed function 'luaS_eqstr' (not used anywhere) Roberto Ierusalimschy 2014-03-19 15:51:42 -03:00
  • ed795d5ff4 detail (removed unused prototype) Roberto Ierusalimschy 2014-03-19 15:51:16 -03:00
  • 282d67d8fc bitlib has been deprecated Roberto Ierusalimschy 2014-03-18 15:27:08 -03:00
  • 114d10cbc5 detail (comment) Roberto Ierusalimschy 2014-03-15 09:29:48 -03:00
  • 9f3f5b6f41 details Roberto Ierusalimschy 2014-03-14 13:54:08 -03:00
  • a39489194e changing prefix of configurable macros from "lua_" to "l_" Roberto Ierusalimschy 2014-03-13 17:07:18 -03:00
  • a3addae036 lua_gettable and similars return type of gotten value Roberto Ierusalimschy 2014-03-12 17:57:40 -03:00
  • ad40bb1181 detail in string.rep: allow large repetitions of the empty string (no possibility of overflows) Roberto Ierusalimschy 2014-03-12 15:09:06 -03:00
  • 80fe8504f5 make all dumps/loads go trhough Load/DumpVector (so it is easier to adapt the code to correct endianess, if needed) Roberto Ierusalimschy 2014-03-11 15:56:27 -03:00
  • e976384213 keep chunk's headers compatible at least up to LUAC_VERSION (to be able to detect correctly version mismatches) Roberto Ierusalimschy 2014-03-11 15:05:46 -03:00
  • 68f4ccdd00 make sure that LUAC_INT is a lua_Integer and that LUAC_NUM is a lua_Number Roberto Ierusalimschy 2014-03-11 11:22:54 -03:00
  • 342a936599 detail (breaking too long lines) Roberto Ierusalimschy 2014-03-10 16:52:47 -03:00
  • 901da539e5 no need to avoid negative ints in 'LoadInt' Roberto Ierusalimschy 2014-03-10 16:50:19 -03:00
  • 197e249433 "indent -kr -i2 -br -brf -nut" plus a few manual formating Roberto Ierusalimschy 2014-03-10 14:56:32 -03:00
  • 2aff75f58e small bug (from revision 2.80): LUA_OP* constants are not from enumeration 'Opcode' (they are integers) Roberto Ierusalimschy 2014-03-09 16:21:34 -03:00
  • cd12410195 new macro 'cast_void' Roberto Ierusalimschy 2014-03-07 13:19:00 -03:00
  • c5bb3643ab simpler code to read a line from a file (using 'getc' or, if present, 'getc_unlocked') Roberto Ierusalimschy 2014-03-06 14:12:02 -03:00
  • 5ff1c18a71 back with 'L' for macros 'luai_num*', but now with a new macro 'luai_numinvalidop' to protect constant folding Roberto Ierusalimschy 2014-03-06 13:15:18 -03:00
  • 99ac4a260f 'constfolding' passes a proper Lua state to 'luaO_arith' Roberto Ierusalimschy 2014-03-06 10:58:28 -03:00
  • fa7e77fd38 detail ('codearith' uses 'LUA_OP*' constants instead of 'OP_*') Roberto Ierusalimschy 2014-03-06 10:39:05 -03:00
  • f69e0ade19 no need to store a full 'size_t' fo the size of (frequent) small strings Roberto Ierusalimschy 2014-03-01 12:18:44 -03:00
  • 99a1c06ea3 more regularity with vectors + sizeof computed by the macros themselves Roberto Ierusalimschy 2014-02-28 13:13:01 -03:00
  • 93e28031de all chars used in binary dumps are unsigned ('lu_byte') Roberto Ierusalimschy 2014-02-28 09:25:12 -03:00
  • de84b3fecb store number of upvalues of main function in front of the dump, so that undump can create initial closure before reading its prototype Roberto Ierusalimschy 2014-02-27 15:56:15 -03:00
  • 054179c2ff more explicit handling of headers for binary chunks Roberto Ierusalimschy 2014-02-27 13:56:20 -03:00