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 |
Roberto Ierusalimschy
|
67c5de9283
|
comment
|
11 years ago |
Roberto Ierusalimschy
|
0a850e641d
|
larger limit + better error messages for loop detection in inheritance
|
11 years ago |
Roberto Ierusalimschy
|
916bd874ad
|
added explicit default options to string.pack/unpack functions
|
11 years ago |
Roberto Ierusalimschy
|
cd848cab6b
|
first implementation for string.pack/unpackfloat + try not to assume
that chars have 8 bits
|
11 years ago |
Roberto Ierusalimschy
|
29256e8960
|
first implementation of string.packint/string.unpackint
|
11 years ago |
Roberto Ierusalimschy
|
438c534ff4
|
'arg' arguments (previously called 'narg', 'nArg', 'numArg', etc.)
renamed all to 'arg'
|
11 years ago |
Roberto Ierusalimschy
|
1ea2d20f74
|
first implementation of '<<', '>>', and '~' (bitwise not)
|
11 years ago |
Roberto Ierusalimschy
|
f5133aa1a5
|
small change in handling of unary operations
|
11 years ago |
Roberto Ierusalimschy
|
c0edab0f6d
|
first implementation of bitwise operators '&' (band), '|' (bor),
and '~' (bxor)
|
11 years ago |
Roberto Ierusalimschy
|
a948054a19
|
new order for binary operations (grouping them by type of result)
|
11 years ago |
Roberto Ierusalimschy
|
a8f8c7fd80
|
integer exponentiation with negative exponent is invalid
|
11 years ago |