Roberto Ierusalimschy
|
ad40bb1181
|
detail in string.rep: allow large repetitions of the empty string (no
possibility of overflows)
|
11 years ago |
Roberto Ierusalimschy
|
80fe8504f5
|
make all dumps/loads go trhough Load/DumpVector (so it is easier
to adapt the code to correct endianess, if needed)
|
11 years ago |
Roberto Ierusalimschy
|
e976384213
|
keep chunk's headers compatible at least up to LUAC_VERSION (to be
able to detect correctly version mismatches)
|
11 years ago |
Roberto Ierusalimschy
|
68f4ccdd00
|
make sure that LUAC_INT is a lua_Integer and that LUAC_NUM is
a lua_Number
|
11 years ago |
Roberto Ierusalimschy
|
342a936599
|
detail (breaking too long lines)
|
11 years ago |
Roberto Ierusalimschy
|
901da539e5
|
no need to avoid negative ints in 'LoadInt'
|
11 years ago |
Roberto Ierusalimschy
|
197e249433
|
"indent -kr -i2 -br -brf -nut" plus a few manual formating
|
11 years ago |
Roberto Ierusalimschy
|
2aff75f58e
|
small bug (from revision 2.80): LUA_OP* constants are not from
enumeration 'Opcode' (they are integers)
|
11 years ago |
Roberto Ierusalimschy
|
cd12410195
|
new macro 'cast_void'
|
11 years ago |
Roberto Ierusalimschy
|
c5bb3643ab
|
simpler code to read a line from a file (using 'getc' or, if present,
'getc_unlocked')
|
11 years ago |
Roberto Ierusalimschy
|
5ff1c18a71
|
back with 'L' for macros 'luai_num*', but now with a new macro
'luai_numinvalidop' to protect constant folding
|
11 years ago |
Roberto Ierusalimschy
|
99ac4a260f
|
'constfolding' passes a proper Lua state to 'luaO_arith'
|
11 years ago |
Roberto Ierusalimschy
|
fa7e77fd38
|
detail ('codearith' uses 'LUA_OP*' constants instead of 'OP_*')
|
11 years ago |
Roberto Ierusalimschy
|
f69e0ade19
|
no need to store a full 'size_t' fo the size of (frequent) small strings
|
11 years ago |
Roberto Ierusalimschy
|
99a1c06ea3
|
more regularity with vectors + sizeof computed by the macros themselves
|
11 years ago |
Roberto Ierusalimschy
|
93e28031de
|
all chars used in binary dumps are unsigned ('lu_byte')
|
11 years ago |
Roberto Ierusalimschy
|
de84b3fecb
|
store number of upvalues of main function in front of the dump,
so that undump can create initial closure before reading its prototype
|
11 years ago |
Roberto Ierusalimschy
|
054179c2ff
|
more explicit handling of headers for binary chunks
|
11 years ago |
Roberto Ierusalimschy
|
986c11daa6
|
removal of weird construction in definition of LUA_STRFTIMEOPTIONS
(two empty strings concatenated as in "" "")
|
11 years ago |
Roberto Ierusalimschy
|
c6c41e85b2
|
more uniformity for defining system-dependent features
|
11 years ago |
Roberto Ierusalimschy
|
87c930676f
|
detail (comments)
|
11 years ago |
Roberto Ierusalimschy
|
11e762dbcd
|
added macro MAX_UINTEGER
|
11 years ago |
Roberto Ierusalimschy
|
5c9cb5f0b1
|
detail (comment)
|
11 years ago |
Roberto Ierusalimschy
|
fed236ca7f
|
detail (unknown lines are marked as -1, not 0)
|
11 years ago |
Roberto Ierusalimschy
|
295f7ac04e
|
added 'stip' parameter to lua_dump/string.dump
|
11 years ago |
Roberto Ierusalimschy
|
6318de80d3
|
added 'strip' parameter to lua_dump/string.dump
|
11 years ago |
Roberto Ierusalimschy
|
5715de344f
|
'read_all' does not need to grow buffer, as 'luaL_prepbuffsize'
already does that
|
11 years ago |
Roberto Ierusalimschy
|
c86b9da022
|
userdata can have any Lua value as uservalue
|
11 years ago |
Roberto Ierusalimschy
|
a4c6dcf999
|
detail (better error messages for light userdata)
|
11 years ago |
Roberto Ierusalimschy
|
3f78de256e
|
no need to keep threads in a different GC list, now that there is the
'twups' list
|
11 years ago |
Roberto Ierusalimschy
|
d764cc5522
|
new list 'twups' to allow traversal of upvalues from dead threads
(+ fixed some problems with cycles involving those upvalues)
|
11 years ago |
Roberto Ierusalimschy
|
ffa96d988d
|
field 'op' renamed to 'open'
|
11 years ago |
Roberto Ierusalimschy
|
6a24bd17a8
|
no more second result from 'collectgarbage"count"' (as Lua seldom
will need lua_Number to be an integer)
|
11 years ago |
Roberto Ierusalimschy
|
1cce3e6842
|
change in the way 'collectgarbage("step", size)' interprets 'size'
(mimicking the way the GC itself behaves when Lua allocates 'size'
Kbytes)
|
11 years ago |
Roberto Ierusalimschy
|
0b04c561f5
|
new syntax for Unicode escape '\u{012F}'
|
11 years ago |
Roberto Ierusalimschy
|
90b0ac6495
|
limit to 'gcstepmul' imposed by 'lua_gc' (+ some details in 'lgc.c')
|
11 years ago |
Roberto Ierusalimschy
|
de3b1c9b53
|
better control for number of finalizers called at each GC cycle
(increases progressively)
|
11 years ago |
Roberto Ierusalimschy
|
733c58595b
|
no more local collection
|
11 years ago |
Roberto Ierusalimschy
|
4a1ed6e6e5
|
new field '__name' in metatables to help better error messages
|
11 years ago |
Roberto Ierusalimschy
|
6b30774469
|
detail (better presentation for 'luaC_step')
|
11 years ago |
Roberto Ierusalimschy
|
ba3586cc90
|
keep a single list of objects to be finalized (with local and non-local
objects), to ensure finalization order
|
11 years ago |
Roberto Ierusalimschy
|
68df7c6279
|
added proper headers for a standard lib file
|
11 years ago |
Roberto Ierusalimschy
|
19ad78d713
|
C++ needs casts for arithmetic with enums
|
11 years ago |
Roberto Ierusalimschy
|
6ccf150039
|
new library: utf8
|
11 years ago |
Roberto Ierusalimschy
|
4ea60463f5
|
UTF-8 encoding exported as format '%U' in 'lua_pushfstring'
|
11 years ago |
Roberto Ierusalimschy
|
d438e1379d
|
insertion of ".0" in floats with integer values done by "luaL_tolstring",
not by the core
|
11 years ago |
Roberto Ierusalimschy
|
1721d09ac8
|
still accepts initial '=' for expressions, for compatibility with old
versions (and old habits...)
|
11 years ago |
Roberto Ierusalimschy
|
2f3da00e51
|
added support for UTF-8 escapes
|
11 years ago |
Roberto Ierusalimschy
|
5a73e3ad9e
|
simpler way to create messages for errors in escape sequences
|
11 years ago |
Roberto Ierusalimschy
|
86dd8bf3f5
|
no more 'L' in macros "luai_num*" (several places that use those macros
cannot throw errors anyway...)
|
11 years ago |