| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \
| | |/
| |/| |
|
| | |
| | |
| | |
| | |
| | |
| | | |
'getobjname' now broken in two, a basic version that handles locals,
upvalues, and constants, and a full version, which uses the basic
version to handle table accesses (globals and fields).
|
| | |
| | |
| | |
| | |
| | | |
The test whether key is inside the array part of a table uses a bit
trick to avoid computing the real size of the array part.
|
| | |
| | |
| | |
| | |
| | | |
Test is too non portable. (For instance, it does not work for
different number types.)
|
| | |
| | |
| | |
| | | |
Old Microsoft compilers do not support those casts.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
A fixed buffer keeps a binary chunk "forever", so that the program
does not need to copy some of its parts when loading it.
|
| | |
| | |
| | |
| | | |
Accesses content and length of a 'TString'.
|
| | |
| | |
| | |
| | | |
So that the other bits can be used for other purposes.
|
| | | |
|
|\| | |
|
| | |
| | |
| | |
| | |
| | | |
Registry field "LUA_NOENV" (that signals to libraries that option -E
is on) now part of the "official" API of Lua stand-alone.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
We may want to add other string variants in the future; this change
documents better where the code may need to handle those variants.
|
| | |
| | |
| | |
| | |
| | | |
The few UTF-8 test files are commented as such, and there is only one
non UTF-8 test file (to test non UTF-8 sources).
|
| | |
| | |
| | |
| | |
| | | |
Took the opportunity and moved the code that controls call hooks
in 'luaV_execute' into a function.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Although stack resize can be a little expensive, it seems unusual to
have too many threads needing resize during one GC cycle. On the other
hand, the change allows full collections to skip the propagate phase,
going straight from a pause to the atomic phase.
|
| | | |
|
|\| | |
|
| | |
| | |
| | |
| | | |
String rendering now derived from the numeric original definitions.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Equality according to 'strcoll' does not imply that strings have
the same length.
|
| | |
| | |
| | |
| | |
| | | |
Several functions that were already being used only inside their
own file have been declared as 'static'.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Like 'require', the command-line option '-l' discards an optional
version suffix (everything after an hyphen) from a file name when
creating the module name.
|
| | | |
|
| |/
| |
| |
| |
| | |
- Better comments about short strings in opcodes.
- luaH_newkey made static.
|
| |
| |
| |
| |
| |
| | |
'lua_resetthread' is back to its original signature, to avoid
incompatibilities in the ABI between releases of the same version.
New function 'lua_closethread' added with the "correct" signature.
|
| |
| |
| |
| | |
Typos in comments and details in the manual.
|
| |
| |
| |
| |
| | |
Also, small tweak in makefile. (-Wsign-compare is already enabled by
-Wextra.)
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
The size of the list of upvalue names are stored separated from the
size of the list of upvalues, but they share the same array.
|
| |
| |
| |
| | |
Comments in 'onelua.c'
|
| |
| |
| |
| |
| | |
We still need access to a 16-bit system to correctly test
these changes.
|
| |
| |
| |
| |
| | |
It also causes 'L->top' to be wrong when the error happens,
triggering an 'assert'.
|
| |
| |
| |
| | |
There is no need for those intermediate definitions.
|
| |
| |
| |
| | |
'clock' can be quite slow on some machines.
|
| |
| |
| |
| |
| |
| | |
This function unifies code from 'lua_newstate', 'math.randomseed',
and 'table.sort' that tries to create a value with a minimum level
of randomness.
|
|\| |
|
| |
| |
| |
| |
| | |
Do not try to detect automatically whether system is iOS; it is
simpler and more reliable to let the programmer inform that.
|
| |
| |
| |
| |
| | |
When converting from pointer to integer, use 'uintptr_t' if available;
otherwise try 'uintmax_t', and use 'size_t' as last resource.
|
| |
| |
| |
| |
| | |
Despite claiming to be ISO, the C library in some Apple platforms
does not implement 'system'.
|
| |
| |
| |
| |
| | |
'collectgarbage("step")' (without an argument) does not have any
special meaning, it means "do a step with some default size".
|
|\| |
|
| |
| |
| |
| |
| | |
Test files are more polite regarding the use of globals when locals
would do, and when globals are necessary deleting them after use.
|
|\| |
|
| |
| |
| |
| | |
Everything depends on the Lua version (as given by 'lua.h')
|
| |
| |
| |
| |
| | |
Again, as the control variable is read only, the code doesn't need
to keep an internal copy of it.
|
| |
| |
| |
| |
| | |
As the control variable is read only, the code doesn't need to keep
an internal copy of it.
|
| | |
|