| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Added compiler option LUA_NODEBUGLIB to make Lua with no open debug
library + small improvements in the manual.
|
| |
|
|
|
| |
Use luaL_loadbufferx and luaL_loadfilex instead, being explicit about
whether to accept binary chunks.
|
| |
|
|
|
| |
The name of the readline library can be changed from its default value
through environment variable LUA_READLINELIB.
|
| |
|
|
|
|
| |
A pointer to function 'l_getenv' can point to the regular 'getenv' or
to a dumb function (that always returns NULL) to ignore environment
variables.
|
| |
|
|
| |
It is easier to forget to turn them on then to turn them off.
|
| |
|
|
|
| |
Bugs in macOS prevent assigning 'add_history' to 'l_addhist' without
a warning.
|
| | |
|
| |
|
|
|
| |
MacOS defines 'add_history' with a "wrong" type (it returns 'int'
instead of 'void').
|
| | |
|
| |
|
|
|
| |
More common code for 'readline' loaded statically or dynamically (or
not loaded).
|
| |
|
|
| |
Tables don't accept sizes larger than int.
|
| |
|
|
| |
New year (2024->2025), typos in comments
|
| | |
|
| |
|
|
|
| |
No warnings for standard numerical types. Still pending alternative
numerical types.
|
| | |
|
| |
|
|
|
|
| |
'incomplete' was popping error message that should be used in case
there is no more lines to complete the input, that is, 'pushline'
returns NULL, due to end of file.
|
| |
|
|
|
|
|
| |
(See comments in luaconf.h.) This change allows easier compilation,
as Lua compiles and works even if the package 'readline' is absent
from the system. Moreover, non-interactive uses don't load the library,
making the stand-alone slightly faster for small loads.
|
| |
|
|
|
|
| |
The definitions in llimits.h are useful not only for the core. That
header only defines types and '#define's, so libs and core still do
not share any real code/data.
|
| | |
|
| |
|
|
|
| |
Corrections in comments and manual. Added note in the manual about
local variables in the REPL.
|
| |
|
|
|
| |
Instead of preloading all non-loaded libraries, there is another
mask to select which libraries to preload.
|
| |
|
|
|
|
| |
The meaning of different GC parameters changed, so there is point in
supporting old values for them. The new code simply ignores the
parameters when changing the GC mode, so the incompatibility is small.
|
| |
|
|
|
|
| |
The generational mode also uses the parameters for the incremental
mode in its major collections, so it should be easy to change those
parameters without having to change the GC mode.
|
| | |
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
Typos in comments and details in the manual.
|
| | | |
|
| | |
| |
| |
| | |
Makes it easier to start Lua with only some standard libraries.
|
| |/
|
|
| |
Still needs to review generational mode.
|
| | |
|
| |
|
|
| |
Sintax for this option now is '-l [globname=]modname'.
|
| |
|
|
|
| |
The semantics of 'signal' varies a lot among different implementations;
'sigaction' ensures a more consistent behavior.
|
| |
|
|
|
|
| |
'get_prompt' uses 'luaL_tolstring' to convert _PROMPT or _PROMPT2
value to a string. That conversion may invoke a '__tostring'
metamethod.
|
| |
|
|
| |
Added 'volatile' to 'l_signalT' variables plus some minor changes.
|
| |
|
|
|
| |
Warnings are mostly a tool to help developers (e.g., by showing hidden
error messages); regular users usually don't need to see them.
|
| |
|
|
|
|
|
| |
Added the concept of control messages to the warning system, plus the
implementation of the controls "@on"/"@off" to turn warnings on/off.
Moreover, the warning system in the test library adds some other
controls to ease the test of warnings.
|
| |
|
|
|
|
| |
Some old systems (e.g., Mac OS X 10.4) do not define
'rl_inhibit_completion', even when line history is available.
Anyway, the user can configure this option externally, using '~/.inputrc'.
|
| |
|
|
| |
('rl_readline_name' and 'rl_inhibit_completion')
|
| | |
|
| | |
|
| |
|
|
|
| |
(Some broken compiler has problems with 'signal.h' being included
without a definition for 'size_t'.)
|
| | |
|
| |
|
|
| |
to avoid incompatibilites with previous releases
|
| | |
|
| |
|
|
| |
definition of LUA_INITVARVERSION, too.
|
| |
|
|
|
| |
alone interpreter (so that 'lua.c' concentrates all handling of
environment variables)
|
| |
|
|
|
| |
an extra ";" at the end is enough to stop Lua printing the result
("return exp;;" is not valid)
|
| | |
|
| | |
|