| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
In this format, the attribute applies to all names in the list;
e.g. "global<const> print, require, math".
|
| | |
|
| |
|
|
| |
All test files refer to the main copyright notice in 'lua.h'.
|
| |
|
|
|
| |
The structure 'AbsLineInfo' is hard-dumped into binary chunks, and
it comprises two 'int' fields.
|
| |
|
|
|
|
| |
'debug.getinfo' can return number of extra arguments added to a call by
a chain of __call metavalues. That information is being used to improve
error messages about errors in these extra arguments.
|
| |
|
|
|
| |
This counter will allow (in a later commit) error messages to correct
argument numbers in functions called through __call metamethods.
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| | |
Test is too non portable. (For instance, it does not work for
different number types.)
|
| |\| |
|
| | | |
|
| |\| |
|
| | |
| |
| |
| |
| | |
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.
|
| |\| |
|
| | |
| |
| |
| |
| | |
Test files are more polite regarding the use of globals when locals
would do, and when globals are necessary deleting them after use.
|
| | | |
|
| |/
|
|
| |
All strings are being reused now, including 'source'.
|
| | |
|
| |
|
|
|
|
|
| |
When "undumping" a long string, the function 'loadVector' can call the
reader function, which can run the garbage collector, which can collect
the string being read. So, the string must be anchored during the call
to 'loadVector'.
|
| |
|
|
|
|
|
|
|
| |
In 'lundump.c', when loading the upvalues of a function, there can be
a read error if the chunk is truncated. In that case, the creation
of the error message can trigger an emergency collection while the
prototype is still anchored. So, the prototype must be GC consistent
before loading the upvales, which implies that it the 'name' fields
must be filled with NULL before the reading.
|
| |
|
|
|
|
| |
(Undoing part of commit f53eabeed8.) It is better to keep this encoding
stable, so that all Lua versions can read at least the version of a
binary file.
|
| |
|
|
|
| |
A tail call of a __call chain (a __call metamethod that itself is
also not a function) was being perfomed as a regular call.
|
| |
|
|
|
| |
Removed the restriction that a '__call' metamethod must be an actual
function.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
- LUAC_VERSION is equal to LUA_VERSION_NUM, and it is stored
as an int.
- 'sizeof(int)' and 'sizeof(size_t)' removed from the header, as
the binary format does not depend on these sizes. (It uses its
own serialization for unsigned integer values.)
|
| |
|
|
|
|
|
| |
From the point of view of 'git', all names are relative to the root
directory of the project. So, file names in '$Id:' also should be
relative to that directory: the proper name for test file 'all.lua'
is 'testes/all.lua'.
|
| |
|