Commit Graph

  • 3fc25ff15b macro 'checkobjref' accepts NULL (as all its uses checked for NULL before) + user value from a userdata may not be a GC object Roberto Ierusalimschy 2014-06-17 14:13:29 -03:00
  • fa3113ffbf cleaner way to handle bit CIST_OAH (with auxiliar macros) Roberto Ierusalimschy 2014-06-12 16:07:30 -03:00
  • d94bb6c273 janitor work on 'lua_resume' and related code Roberto Ierusalimschy 2014-06-11 13:01:55 -03:00
  • 5784331768 new items in default path for Windows Roberto Ierusalimschy 2014-06-10 16:21:20 -03:00
  • 88a9e51f34 bit-field CIST_YIELDED removed (it was never consulted) Roberto Ierusalimschy 2014-06-10 16:18:50 -03:00
  • 8b5940e7ca must also reset CIST_OAH if necessary (CallInfo is not a fresh one) Roberto Ierusalimschy 2014-06-10 16:13:26 -03:00
  • 1a3656e56e more relaxed rules for __eq metamethod (more similar to other operators) Roberto Ierusalimschy 2014-06-10 15:53:18 -03:00
  • 542b6cfc02 no need for field 'status' in structure 'CallInfo' (after removal of 'lua_getctx') + field 'old_allowhook' can be packed into a single bit Roberto Ierusalimschy 2014-06-10 15:51:21 -03:00
  • 6f6fd96e3b new type lua_KFunction + no more 'lua_getctx' Roberto Ierusalimschy 2014-06-10 14:41:38 -03:00
  • 35a6aad0d7 added comments Roberto Ierusalimschy 2014-06-09 13:32:18 -03:00
  • 23f0ff9517 lots of janitor work (including comments) + 'arg' table created before running any script + changes in the parameters and return of 'collectargs' Roberto Ierusalimschy 2014-06-05 17:42:06 -03:00
  • 355037528c 'math.mof' works with integers, too Roberto Ierusalimschy 2014-06-02 20:09:28 -03:00
  • 9e68c047ae 'assert' does not assume that the error object is a string Roberto Ierusalimschy 2014-06-02 00:06:26 -03:00
  • e9d86eddf3 if numeral overflows the reading buffer, signal it as invalid input (resulting in nil) Roberto Ierusalimschy 2014-06-02 00:00:51 -03:00
  • 11aefa4478 details (comments) Roberto Ierusalimschy 2014-06-01 21:03:16 -03:00
  • 5ebdd326b6 detail (to avoid warnings of unused variable) Roberto Ierusalimschy 2014-05-29 16:30:07 -03:00
  • 84db17b6fc more "religious" definition for 'lua_numtointeger' Roberto Ierusalimschy 2014-05-27 10:59:03 -03:00
  • 456806f25c no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil' Roberto Ierusalimschy 2014-05-26 14:13:52 -03:00
  • c98f195eb9 function 'luaV_numtointeger' changed to a global macro 'lua_numtointeger' (tricky, small, and useful in several places) Roberto Ierusalimschy 2014-05-26 14:10:22 -03:00
  • 4d696c45b9 simpler handling of 'GCScallfin' state + more comments Roberto Ierusalimschy 2014-05-25 16:08:32 -03:00
  • 36715ab7c1 detail (comment) Roberto Ierusalimschy 2014-05-23 15:32:21 -03:00
  • e966e53791 no more use of 'scanf' for reading numbers Roberto Ierusalimschy 2014-05-21 12:24:21 -03:00
  • c4eff10322 small improvements concerning 'check_next' Roberto Ierusalimschy 2014-05-21 12:22:02 -03:00
  • 8a0acf0898 comments Roberto Ierusalimschy 2014-05-20 11:12:59 -03:00
  • e2be310a85 better(?) implementation for 'pcall'/'xpcall' (regarding the insertion of the boolean first result) Roberto Ierusalimschy 2014-05-16 15:54:01 -03:00
  • 17159b491c more direct implementation of 'table.pack' Roberto Ierusalimschy 2014-05-16 15:53:25 -03:00
  • 0aa32fa0cb small changes in field order in some structs to reduce padding Roberto Ierusalimschy 2014-05-15 17:41:27 -03:00
  • 8927c14317 removed macro 'luai_checknum' (as NaN trick is not doable now) Roberto Ierusalimschy 2014-05-15 17:28:39 -03:00
  • 3e977f02ac added a few comments Roberto Ierusalimschy 2014-05-15 17:08:32 -03:00
  • a73da6112d deprecated library throws an error if called (instead of silently not loading itself) Roberto Ierusalimschy 2014-05-15 16:28:34 -03:00
  • 6a5d87771f added lots of new comments + small changes in code Roberto Ierusalimschy 2014-05-15 16:27:33 -03:00
  • 15e8405731 'LUA_COMPAT_ALL' -> 'LUA_COMPAT_5_1'/'LUA_COMPAT_5_2' + "@*" in comments replaced by "@@". ("@*" is too distracting) Roberto Ierusalimschy 2014-05-15 12:24:32 -03:00
  • fd1672ba98 avoid non-conformant pointer arithmetic in api check for 'lua_rotate' Roberto Ierusalimschy 2014-05-15 12:22:45 -03:00
  • 1ddb251d86 using a more conventional handling of stack space in 'io_readline' Roberto Ierusalimschy 2014-05-15 12:21:06 -03:00
  • f8daddba50 added a compat option (although it will be off by default) to the addition of '.0' to float->string conversions Roberto Ierusalimschy 2014-05-14 16:47:11 -03:00
  • e58ef8d0bb missing macro 'LUAMOD_API' in function to open library Roberto Ierusalimschy 2014-05-14 15:33:37 -03:00
  • e3b9569e04 function 'reverse' uses appropriate variants of 'setobj' for better documentation Roberto Ierusalimschy 2014-05-14 15:32:30 -03:00
  • 8b66040e34 several functions deprecated (cosh, sinh, atanh, pow, frexp, ldexp) Roberto Ierusalimschy 2014-05-14 13:59:27 -03:00
  • 965993da07 comments added to 'lua_rotate' Roberto Ierusalimschy 2014-05-14 11:20:17 -03:00
  • 5a5a834975 new API function 'lua_rotate' Roberto Ierusalimschy 2014-05-13 16:40:28 -03:00
  • 45c430eac0 addition of '.0' to float representation done by the kernel Roberto Ierusalimschy 2014-05-12 18:44:17 -03:00
  • 27d9219cf3 no more integer exponentiation Roberto Ierusalimschy 2014-05-12 18:22:05 -03:00
  • 12bd01c567 added comments to several functions Roberto Ierusalimschy 2014-05-12 16:13:32 -03:00
  • 626124d2d8 old POSIX systems need '<sys/types.h>' for 'off_t' Roberto Ierusalimschy 2014-05-11 11:46:19 -03:00
  • 5018104a60 better error message for unfinished long strings/comments Roberto Ierusalimschy 2014-05-11 11:45:43 -03:00
  • ec11d132db comments Roberto Ierusalimschy 2014-05-11 10:03:48 -03:00
  • 06dc893f88 in 'for' loops, make the limit an integer whenever initial value and step are integers Roberto Ierusalimschy 2014-05-09 11:20:52 -03:00
  • a09bd59615 'T.totalmem' accepts 0 for unlimited memory Roberto Ierusalimschy 2014-05-08 16:08:46 -03:00
  • 42ff788e53 comments Roberto Ierusalimschy 2014-05-08 15:58:46 -03:00
  • 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
  • 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