aboutsummaryrefslogtreecommitdiff
path: root/lua.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Parameters for 'lua_createtable' back to intRoberto Ierusalimschy2025-01-211-1/+1
| | | | Tables don't accept sizes larger than int.
* DetailsRoberto Ierusalimschy2025-01-161-1/+1
| | | | New year (2024->2025), typos in comments
* Local declaration in the REPL generates a warningRoberto Ierusalimschy2024-09-271-2/+16
|
* Added gcc option '-Wconversion'Roberto Ierusalimschy2024-07-271-1/+1
| | | | | No warnings for standard numerical types. Still pending alternative numerical types.
* Removed compatibility with "= exp" in the REPLRoberto Ierusalimschy2024-07-051-4/+1
|
* Fixed bug in 'multiline'Roberto Ierusalimschy2024-07-051-14/+14
| | | | | | '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.
* lua.c loads 'readline' dynamicallyRoberto Ierusalimschy2024-07-041-18/+70
| | | | | | | (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.
* llimits.h being used by all Lua codeRoberto Ierusalimschy2024-06-201-0/+1
| | | | | | 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.
* Tricky _PROMPT may trigger undefined behavior in lua.cRoberto Ierusalimschy2024-06-121-2/+3
|
* DetailsRoberto Ierusalimschy2024-05-081-2/+2
| | | | | Corrections in comments and manual. Added note in the manual about local variables in the REPL.
* New interface to function 'luaL_openselectedlibs'Roberto Ierusalimschy2024-02-151-1/+1
| | | | | Instead of preloading all non-loaded libraries, there is another mask to select which libraries to preload.
* Removed compatibility option LUA_COMPAT_GCPARAMSRoberto Ierusalimschy2023-12-221-1/+1
| | | | | | 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.
* New option "setparms" for 'collectgarbage'Roberto Ierusalimschy2023-12-221-1/+1
| | | | | | 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.
* First criteria for shifts minor<->majorRoberto Ierusalimschy2023-12-071-1/+1
|
* Merge branch 'master' into nextversionRoberto Ierusalimschy2023-06-221-3/+11
|\
| * Option '-l' discards version sufix from file nameRoberto Ierusalimschy2023-05-151-2/+10
| | | | | | | | | | | | 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.
| * Detailsv5.4.5Roberto Ierusalimschy2023-04-181-1/+1
| | | | | | | | Typos in comments and details in the manual.
| * Stop GC while building initial stateRoberto Ierusalimschy2022-11-231-1/+3
| |
* | New function 'luaL_openselectedlibs'Roberto Ierusalimschy2022-12-071-1/+5
| | | | | | | | Makes it easier to start Lua with only some standard libraries.
* | First version of GC counting objects for controlRoberto Ierusalimschy2022-11-231-1/+3
|/ | | | Still needs to review generational mode.
* Bug: lua.c assumes that argv has at least one elementRoberto Ierusalimschy2022-02-071-12/+23
|
* Option '-l' can give a name for the global variable.Roberto Ierusalimschy2021-08-161-15/+22
| | | | Sintax for this option now is '-l [globname=]modname'.
* Avoid using 'signal' when 'sigaction' is availableRoberto Ierusalimschy2020-11-241-3/+23
| | | | | The semantics of 'signal' varies a lot among different implementations; 'sigaction' ensures a more consistent behavior.
* _PROMPT can have non-string valuesRoberto Ierusalimschy2020-10-261-6/+10
| | | | | | 'get_prompt' uses 'luaL_tolstring' to convert _PROMPT or _PROMPT2 value to a string. That conversion may invoke a '__tostring' metamethod.
* Improvements in the handling of signalsRoberto Ierusalimschy2020-05-221-1/+2
| | | | Added 'volatile' to 'l_signalT' variables plus some minor changes.
* Default for warnings changed to "off"Roberto Ierusalimschy2019-08-201-5/+5
| | | | | 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 control messages to warningsRoberto Ierusalimschy2019-08-151-12/+24
| | | | | | | 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.
* Removed use of 'rl_inhibit_completion' in 'lua.c'Roberto Ierusalimschy2018-08-161-3/+2
| | | | | | 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'.
* some extra goodies for 'readline'Roberto Ierusalimschy2018-03-161-1/+5
| | | | ('rl_readline_name' and 'rl_inhibit_completion')
* better modularization of the code for the REPLRoberto Ierusalimschy2018-03-061-198/+203
|
* GC default mode for the stand-alone interpreter is generational modeRoberto Ierusalimschy2018-02-061-1/+2
|
* include first standard header filesRoberto Ierusalimschy2017-05-241-2/+3
| | | | | (Some broken compiler has problems with 'signal.h' being included without a definition for 'size_t'.)
* detail in usage message for '-l' optionRoberto Ierusalimschy2017-04-191-2/+2
|
* Handling of LUA_PATH/LUA_CPATH moved back to 'package' libraryRoberto Ierusalimschy2017-01-121-88/+5
| | | | to avoid incompatibilites with previous releases
* detail (removing spaces at end of lines)Roberto Ierusalimschy2016-12-221-3/+3
|
* LUA_PATHSUFFIX -> LUA_VERSUFFIX + LUA_VERSUFFIX used in theRoberto Ierusalimschy2016-12-131-7/+7
| | | | definition of LUA_INITVARVERSION, too.
* Handling of LUA_PATH/LUA_CPATH moved from package library to standRoberto Ierusalimschy2016-07-181-5/+91
| | | | | alone interpreter (so that 'lua.c' concentrates all handling of environment variables)
* added ';' at the end of "expression lines" ("return exp;") so thatRoberto Ierusalimschy2015-08-141-12/+8
| | | | | an extra ";" at the end is enough to stop Lua printing the result ("return exp;;" is not valid)
* details (avoid 'lint' warnings)Roberto Ierusalimschy2015-03-301-8/+7
|
* detailRoberto Ierusalimschy2015-03-101-3/+3
|
* line history keep lines without added 'return'Roberto Ierusalimschy2015-03-091-8/+11
|
* detail (use new returned value from 'lua_getglobal' )Roberto Ierusalimschy2014-11-111-3/+2
|
* comments (references to "ANSI C" changed to "ISO C", which is theRoberto Ierusalimschy2014-11-021-2/+2
| | | | international name
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-3/+5
| | | | any other header file
* LUA_WIN -> LUA_USE_WINDOWSRoberto Ierusalimschy2014-10-311-2/+2
|
* definitions for 'luai_writestring'/'luai_writeline'/'luai_writestringerror'Roberto Ierusalimschy2014-10-291-10/+10
| | | | | moved to 'lauxlib.h' (they do not need to be stable or configurable) + prefixes changed from 'luai_' to 'lua_' (they are not part of the core)
* commentsRoberto Ierusalimschy2014-10-201-5/+6
|
* message handler always adds a traceback to messages (even if theyRoberto Ierusalimschy2014-10-201-14/+14
| | | | are not strings), unless they have a __tostring method.
* macros 'LUA_QL'/'LUA_QL' deprecatedRoberto Ierusalimschy2014-10-171-7/+6
|
* detail in 'report' + message handler always is called with anRoberto Ierusalimschy2014-09-251-8/+7
| | | | argument + 'report' already handles non-string error messages