summaryrefslogtreecommitdiff
path: root/lua.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy2018-12-171-2/+2
| | | | | | | This is the first commit for the branch Lua 5.3. All source files were copied from the official distribution of 5.3.5 in the Lua site. The test files are the same of 5.3.4. The manual came from the previous RCS repository, revision 1.167.1.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.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
|
* 'printf' replaced by 'luai_writestring'Roberto Ierusalimschy2010-12-031-2/+2
|
* corrected warnings from different compilers (mostly casts and smallRoberto Ierusalimschy2010-10-251-2/+2
| | | | details)
* better error message for 'lua -e -i'Roberto Ierusalimschy2010-10-181-5/+6
|
* environment variables consulted by Lua may be version-specificRoberto Ierusalimschy2010-07-251-5/+13
|
* comand-line option '-l' creates global with given name afterRoberto Ierusalimschy2010-07-021-9/+18
| | | | requiring module
* no more 'ccall' nor 'cpcall' functions. (With light C functions theyRoberto Ierusalimschy2010-04-141-2/+3
| | | | are obsolete.)
* better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEXRoberto Ierusalimschy2010-03-131-5/+5
|
* removed useless test (argv[i] cannot be NULL when i<argc)Roberto Ierusalimschy2010-02-271-2/+1
|
* new macro 'luai_writestringerror'Roberto Ierusalimschy2010-02-181-8/+11
|
* no need to flush either stderr or \n-terminated outputsRoberto Ierusalimschy2010-02-111-4/+1
|
* better usage messages, showing entire offending argumentRoberto Ierusalimschy2010-02-091-8/+11
|
* new function 'luaL_cpcall'Roberto Ierusalimschy2010-01-211-7/+4
|
* better messages for invalid optionsRoberto Ierusalimschy2010-01-211-8/+10
|
* 'lua_cpcall' is deprecated + other small changes in 'pmain' (commentsRoberto Ierusalimschy2009-12-221-31/+28
| | | | and reordering to check arguments before running any Lua code)