summaryrefslogtreecommitdiff
path: root/lua.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-3/+3
|
* var-arguments to the script come from 'arg' table (not from originalRoberto Ierusalimschy2014-06-261-10/+16
| | | | 'argv' array)
* lots of janitor work (including comments) + 'arg' table createdRoberto Ierusalimschy2014-06-051-153/+223
| | | | | before running any script + changes in the parameters and return of 'collectargs'
* more uniformity for defining system-dependent featuresRoberto Ierusalimschy2014-02-261-10/+23
|
* still accepts initial '=' for expressions, for compatibility with oldRoberto Ierusalimschy2014-02-051-2/+5
| | | | versions (and old habits...)
* new "calculator mode"; no need to add '=' to print expressionsRoberto Ierusalimschy2013-12-161-18/+40
|
* detail (changing some names of macros)Roberto Ierusalimschy2013-10-071-7/+7
|
* pops the string from 'get_prompt' only after using itRoberto Ierusalimschy2012-09-291-3/+4
|
* spaces -> tabs in #definesRoberto Ierusalimschy2012-05-231-9/+9
|
* details (using lua_setglobal/lua_getglobal instead of explicitRoberto Ierusalimschy2012-04-201-10/+5
| | | | use of the global table)
* new way to handle -E option (write a mark in the registry to avoidv5.2.0v5-2-0Roberto Ierusalimschy2011-12-121-16/+7
| | | | reading environment variables)
* new option '-E' to avoid environment variablesRoberto Ierusalimschy2011-08-171-5/+25
|
* detail (using array instead of several variables to keep track ofRoberto Ierusalimschy2011-08-041-10/+17
| | | | enabled command-line options)
* correct length for LUA_COPYRIGHT (without trailing '\0')Roberto Ierusalimschy2011-06-161-2/+2
|
* new macro 'luai_writeline' to print newlines (and flush 'stdout')Roberto Ierusalimschy2011-05-261-3/+4
|
* more complete (and hopefuly more correct) handling of 'sizeof(char)'Roberto Ierusalimschy2011-05-031-2/+2
|
* macro 'mark' renamed 'EOFMARK' ('mark' is too easy to confict, e.g.Roberto Ierusalimschy2011-03-141-4/+4
| | | | in alllua.c)
* detail in 'print_usage'Roberto Ierusalimschy2011-02-071-6/+4
|