Roberto Ierusalimschy
e8e39a277f
'string.format"%q"' now works for all basic types (nil, boolean,
numbers, and strings)
9 years ago
Roberto Ierusalimschy
fff7d42a69
LUA_PACKPADBYTE -> LUAL_PACKPADBYTE (it is an internal library
name, not something to be usually configured)
9 years ago
Roberto Ierusalimschy
783aa8a9da
new way to avoid infinite loops in empty matches: "Python rule"
("Empty matches for the pattern are replaced only when not
adjacent to a previous match")
9 years ago
Roberto Ierusalimschy
8d4feb504f
do not try to ensure that 'sweepgc' points to a live object
when entering sweep phase ('entersweep'); that may be too
expensive to be done still inside the atomic step. Walking
one single object more often than not will work.
9 years ago
Roberto Ierusalimschy
d77a7a8c26
detail (comment)
9 years ago
Roberto Ierusalimschy
e747491b96
comments
9 years ago
Roberto Ierusalimschy
acff3ad88d
bug: 'gmatch' iterator fails when called from a coroutine different
from the one that created it
9 years ago
Roberto Ierusalimschy
e7b2e01d43
bug: label between local definitions can mix-up their initializations
9 years ago
Roberto Ierusalimschy
03ca6385dc
call 'checkGC' *after* creating new objects (this is how 'execute'
does it)
(It increases the changes that 'allgc' start with a non-white
object, which helps 'entersweep')
9 years ago
Roberto Ierusalimschy
7777b412de
When available, use metafield '__name' in error messages
9 years ago
Roberto Ierusalimschy
c3e9b14d24
'\0' is a control character, no need to check it explicitly
9 years ago
Roberto Ierusalimschy
7d6b78ee79
in 'table.move', destination table can be source table even if
given as an explicit extra argument
9 years ago
Roberto Ierusalimschy
5f3ad5731e
simpler yet definition for 'checkoption'
9 years ago
Roberto Ierusalimschy
494e9ba0f4
simpler code for 'checkoption' + added conversion specifiers specific
to Windows
9 years ago
Roberto Ierusalimschy
f79b4568ae
details (removed silly use of 'luaL_opt' + better error messages
in cases of "table expected")
9 years ago
Roberto Ierusalimschy
fd51651684
new macro 'vmfetch' to help changing code to computed goto's (macro
abstracts the code to run before each instruction)
9 years ago
Roberto Ierusalimschy
994374c4df
new release number + new year
9 years ago
Roberto Ierusalimschy
62f6652d53
no more extra space in 'luaL_checkstack'. (It was already useless
for the first call, and function works ok without that space
anyway (just error message misses the 'msg' component)
9 years ago
Roberto Ierusalimschy
9945253d57
details (comments + text of error messages)
9 years ago
Roberto Ierusalimschy
1f259be52a
'getcode' -> 'getinstruction'
9 years ago
Roberto Ierusalimschy
1a44e82200
'luaV_fastget' only treats the real fast case (table with a non-nil
value at given key, so that it does not need to check metamethods)
9 years ago
Roberto Ierusalimschy
a272fa66f0
bug: Metatable may access its own dealocated field when
it has a self reference in __newindex + some refactoring
9 years ago
Roberto Ierusalimschy
b12b635a90
more refactoring
9 years ago
Roberto Ierusalimschy
7cd7c2e0a1
Metatable may access its own dealocated field when
it has a self reference in __newindex.
9 years ago
Roberto Ierusalimschy
07cf8415e3
more comments + reordeing of union inside 'expdesc' to allow
static initialization of a VKINT value
9 years ago
Roberto Ierusalimschy
c0836dda74
avoid empty macro arguments (invalid in C89)
9 years ago
Roberto Ierusalimschy
384d1b47b0
comments (*lots* of them) + asserts
9 years ago
Roberto Ierusalimschy
19770b03a9
comments. (More explanation about kinds of expressions.)
9 years ago
Roberto Ierusalimschy
a01eba657e
reordering of some functions + 'code_label' renamed to 'code_loadbool'
9 years ago
Roberto Ierusalimschy
b7446ea88d
detail ('while' -> 'for') in 'luaK_patchclose'
9 years ago
Roberto Ierusalimschy
a051b3323e
comments (about hooks vs signals)
9 years ago
Roberto Ierusalimschy
c4e01c568a
make 'hook' volatile (as it may be changed in signal handling)
9 years ago
Roberto Ierusalimschy
bda090b961
comments + small code changes around stack usage when 'luaL_checkstack'
raises an error (and needs the stack to create the error message...)
9 years ago
Roberto Ierusalimschy
e383941652
in 'table.sort': 'typedef' for type of indices + removed stack check
(recursion is in the C stack, not in the Lua stack!)
9 years ago
Roberto Ierusalimschy
656b3cea1b
using 'sig_atomic_t' for 'hookmask' (as it can be changed inside
a signal)
9 years ago
Roberto Ierusalimschy
2d1d57bc18
comments
9 years ago
Roberto Ierusalimschy
03412af06e
detail (removed fixed argument to function 'callallpendingfinalizers')
9 years ago
Roberto Ierusalimschy
542dbd4c65
detail (moving bodies of 'while' to a separate line)
9 years ago
Roberto Ierusalimschy
c25d59a6bd
format "%s" in 'string.format' accepts embedded zeros when it
has no modifiers
9 years ago
Roberto Ierusalimschy
5936eb16d8
randomness in 'table.sort' used only when needed (big imbalance in
partition result) + small refactoring
9 years ago
Roberto Ierusalimschy
7dc3ca7b8e
handling 'clock_t' and 'time_t' correctly in ISO C point of view
9 years ago
Roberto Ierusalimschy
71344b5cac
easy the way to accept other modifiers for 'mode' in 'io.open'
9 years ago
Roberto Ierusalimschy
f230898ad6
tiny code refactoring in 'luaS_hash'
9 years ago
Roberto Ierusalimschy
3feb702df8
ensure argument to 'string.format("%s")' does not contain zeros
9 years ago
Roberto Ierusalimschy
c5112f7b15
details (comments)
9 years ago
Roberto Ierusalimschy
c231a5e2b6
using unsigned int (instead of int) in 'table.sort' to avoid overflows
(when computing the pivot and in original table size)
9 years ago
Roberto Ierusalimschy
dc9ac5b8c2
details (merging declarations with initialization)
9 years ago
Roberto Ierusalimschy
146508b28e
randomness in pivot for 'table.sort' done by a macro (easier to change)
9 years ago
Roberto Ierusalimschy
d103312661
details (typos in comments)
9 years ago
Roberto Ierusalimschy
2e8f8a18e4
detail
9 years ago