315c5bf7b7
bug: compiler could optimize away overflow check (+ changing indices from 'int' to 'lua_Integer')
Roberto Ierusalimschy2014-04-01 15:50:34 -03:00
ad40bb1181
detail in string.rep: allow large repetitions of the empty string (no possibility of overflows)
Roberto Ierusalimschy2014-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 Ierusalimschy2014-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 Ierusalimschy2014-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 Ierusalimschy2014-03-11 11:22:54 -03:00
2aff75f58e
small bug (from revision 2.80): LUA_OP* constants are not from enumeration 'Opcode' (they are integers)
Roberto Ierusalimschy2014-03-09 16:21:34 -03:00
c5bb3643ab
simpler code to read a line from a file (using 'getc' or, if present, 'getc_unlocked')
Roberto Ierusalimschy2014-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 Ierusalimschy2014-03-06 13:15:18 -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 Ierusalimschy2014-02-27 15:56:15 -03:00
986c11daa6
removal of weird construction in definition of LUA_STRFTIMEOPTIONS (two empty strings concatenated as in "" "")
Roberto Ierusalimschy2014-02-26 12:55:58 -03:00
3f78de256e
no need to keep threads in a different GC list, now that there is the 'twups' list
Roberto Ierusalimschy2014-02-18 10:46:26 -03:00
d764cc5522
new list 'twups' to allow traversal of upvalues from dead threads (+ fixed some problems with cycles involving those upvalues)
Roberto Ierusalimschy2014-02-18 10:39:37 -03:00
6a24bd17a8
no more second result from 'collectgarbage"count"' (as Lua seldom will need lua_Number to be an integer)
Roberto Ierusalimschy2014-02-14 14:45:38 -02:00
1cce3e6842
change in the way 'collectgarbage("step", size)' interprets 'size' (mimicking the way the GC itself behaves when Lua allocates 'size' Kbytes)
Roberto Ierusalimschy2014-02-14 14:43:14 -02:00
ba3586cc90
keep a single list of objects to be finalized (with local and non-local objects), to ensure finalization order
Roberto Ierusalimschy2014-02-11 10:18:12 -02:00
d438e1379d
insertion of ".0" in floats with integer values done by "luaL_tolstring", not by the core
Roberto Ierusalimschy2014-02-05 17:14:53 -02:00
1721d09ac8
still accepts initial '=' for expressions, for compatibility with old versions (and old habits...)
Roberto Ierusalimschy2014-02-05 12:22:55 -02:00
86dd8bf3f5
no more 'L' in macros "luai_num*" (several places that use those macros cannot throw errors anyway...)
Roberto Ierusalimschy2014-01-27 11:34:32 -02:00
39929384c6
new macro 'luai_userstateclose' (to test it is being called correctly)
Roberto Ierusalimschy2013-11-08 15:36:05 -02:00
de7cf8e63a
bug: should call 'luai_userstateclose' only when 'luai_userstateopen' has been called before
Roberto Ierusalimschy2013-11-08 15:34:22 -02:00