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 Ierusalimschy2014-06-17 14:13:29 -03:00
8b5940e7ca
must also reset CIST_OAH if necessary (CallInfo is not a fresh one)
Roberto Ierusalimschy2014-06-10 16:13:26 -03:00
1a3656e56e
more relaxed rules for __eq metamethod (more similar to other operators)
Roberto Ierusalimschy2014-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 Ierusalimschy2014-06-10 15:51:21 -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 Ierusalimschy2014-06-05 17:42:06 -03:00
456806f25c
no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil'
Roberto Ierusalimschy2014-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 Ierusalimschy2014-05-26 14:10:22 -03:00
e2be310a85
better(?) implementation for 'pcall'/'xpcall' (regarding the insertion of the boolean first result)
Roberto Ierusalimschy2014-05-16 15:54:01 -03:00
15e8405731
'LUA_COMPAT_ALL' -> 'LUA_COMPAT_5_1'/'LUA_COMPAT_5_2' + "@*" in comments replaced by "@@". ("@*" is too distracting)
Roberto Ierusalimschy2014-05-15 12:24:32 -03:00
fd1672ba98
avoid non-conformant pointer arithmetic in api check for 'lua_rotate'
Roberto Ierusalimschy2014-05-15 12:22:45 -03:00
1ddb251d86
using a more conventional handling of stack space in 'io_readline'
Roberto Ierusalimschy2014-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 Ierusalimschy2014-05-14 16:47:11 -03:00
1a6ef098b0
'luaO_str2d' + 'luaO_str2int' replaced by 'luaO_str2num' plus proper conversion from strings to integers
Roberto Ierusalimschy2014-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 Ierusalimschy2014-04-30 13:48:44 -03:00
b123a88673
merge of common parts from 'limittointeger' and 'luaV_tointeger_'
Roberto Ierusalimschy2014-04-29 17:06:05 -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 Ierusalimschy2014-04-17 13:09:40 -03:00
3d4913f703
back to larger sizes for 'dumpint/undumpint' (small Lua should be able to dump/undump long-long integers)
Roberto Ierusalimschy2014-04-16 15:48:31 -03:00
c27ef1b79c
correct integer limits for Windows + small adjustments for short option
Roberto Ierusalimschy2014-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 Ierusalimschy2014-04-15 15:25:49 -03:00
037a70dfea
cast_u2s/cast_s2u renamed l_castS2U/l_castU2S to be configurable from outside (mostly for testing)
Roberto Ierusalimschy2014-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 Ierusalimschy2014-04-15 11:29:30 -03:00
5c46b7b8cf
instructions in 'runC' sorted alphabetically + new instructions 'tointeger'/'tounsigned'
Roberto Ierusalimschy2014-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 Ierusalimschy2014-04-14 13:59:46 -03:00
f767f29d87
using predefined limits (instead of computing min/max values for each type) + some comments
Roberto Ierusalimschy2014-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 Ierusalimschy2014-04-13 18:11:19 -03:00
ab964ad7c6
new macro LUA_MAXUNSIGNED + support for 'short' integers (for tests only)
Roberto Ierusalimschy2014-04-12 11:51:53 -03:00
bf06e22b6a
correct definition for 'MAX_SIZE' (using singed integers as the limit, not unsigned ones) + new type 'l_uacInt'
Roberto Ierusalimschy2014-04-11 16:56:04 -03:00
d99ffa920d
new type 'LUAI_UACINT' (result of an 'usual argument conversion' of a lua_Integer)
Roberto Ierusalimschy2014-04-11 16:53:45 -03:00
115fa77009
maximum size for dump of integers is size of lua_Integer (which means that there is no overflows when undumping)
Roberto Ierusalimschy2014-04-10 16:45:43 -03:00
5336cc9d6a
math.random: use 'random' when available + changes to work correctly for any integer interval (up to [minint,maxint])
Roberto Ierusalimschy2014-04-10 14:53:33 -03:00
fdd137276b
more precision for PI + no more RADIANS_PER_DEGREE + 'min/maxint' -> 'min/maxinteger'
Roberto Ierusalimschy2014-04-09 14:29:46 -03:00
c7859a046d
using 'volatile' in 'tofloat' to ensure result has the same precision (lua_Number) of other computations
Roberto Ierusalimschy2014-04-08 11:28:04 -03:00
4a24883674
'GCmemtrav' does not need to track the entire collection, only each single step individually
Roberto Ierusalimschy2014-04-04 14:01:04 -03:00