summaryrefslogtreecommitdiff
path: root/ltests.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-17Lua 5.3.5 ported to gitv5.3.5Roberto Ierusalimschy1-1/+1
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.
2017-01-31small updatesv5.3.4Roberto Ierusalimschy1-7/+10
2017-01-12Handling of LUA_PATH/LUA_CPATH moved back to 'package' libraryRoberto Ierusalimschy3-94/+101
to avoid incompatibilites with previous releases
2016-12-22release 5.3.4 (year 2017)Roberto Ierusalimschy1-4/+4
2016-12-22detail (removing spaces at end of lines)Roberto Ierusalimschy12-30/+30
2016-12-20Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy5-24/+35
2016-12-13'moveresults' and 'luaD_poscall' moved up in the fileRoberto Ierusalimschy1-67/+67
2016-12-13LUA_PATHSUFFIX -> LUA_VERSUFFIX + LUA_VERSUFFIX used in theRoberto Ierusalimschy1-7/+7
definition of LUA_INITVARVERSION, too.
2016-12-06detail (wrong comment)Roberto Ierusalimschy1-2/+2
2016-12-04using constants for "_LOADED" and "PRELOAD"Roberto Ierusalimschy5-27/+34
2016-12-04'luaL_tolstring' uses metatable's "__name" when availableRoberto Ierusalimschy1-5/+14
2016-11-07using 'lastfree == NULL' to signal that table is using the dummyRoberto Ierusalimschy4-30/+38
node for its hash part + new macro 'allocsizenode'
2016-10-19bug: When a coroutine tries to resume a non-suspended coroutine,Roberto Ierusalimschy1-2/+28
it can do some mess (and break C assertions) before detecting the error.
2016-10-19check whether function is finalizer when finding a name for it +Roberto Ierusalimschy1-13/+32
comments + some instructions can call functions in unespected ways (e.g., finalizers)
2016-10-19new flag in 'CallInfo.callstatus' to tell whether function is runningRoberto Ierusalimschy2-2/+5
as a finalizer
2016-09-20detail (ANSI C does not accept empty arguments to macros)Roberto Ierusalimschy1-3/+3
2016-09-08cleaner and more correct code for 'luaD_shrinkstack' (the oldRoberto Ierusalimschy1-5/+8
test "inuse <= LUAI_MAXSTACK" for stack overflow is not correct, as the real maximum usable size is "LUAI_MAXSTACK - EXTRA_STACK")
2016-09-05bug (with compat on): 'ipairs' can work with any type that providesRoberto Ierusalimschy1-2/+2
an __index; so, 'pairsmeta' should not check for tables. ('pairs' already checks for tables through 'next'.)
2016-09-05comments + removed unused variableRoberto Ierusalimschy1-10/+6
2016-09-01detail (macro 'l_checkmode' reimplemented as function)Roberto Ierusalimschy1-5/+6
2016-08-22wrong test in '#if' for floating-point typeRoberto Ierusalimschy1-3/+3
2016-08-01do not eliminate varargs from functions that do not use varargsRoberto Ierusalimschy3-10/+9
(confuses the debug lib and gains very little in performance)
2016-07-29bug: When a coroutine tries to resume a non-suspended coroutine,Roberto Ierusalimschy1-16/+19
it coud do some mess (and break C assertions) before detecting the error. Now it tests for those errors before anything else.
2016-07-19redefine MAXINDEXRK (for debugging, to force most values toRoberto Ierusalimschy1-2/+5
go through registers)
2016-07-19MAXINDEXRK can be redefined (for debugging, to force most values toRoberto Ierusalimschy1-1/+3
go through registers)
2016-07-19bug: Lua can generate wrong code in functions with too many constantsRoberto Ierusalimschy2-5/+32
2016-07-18bug: 'checkoption' could read past end of string + 'os.date' canRoberto Ierusalimschy1-12/+16
handle embedded zeros
2016-07-18Handling of LUA_PATH/LUA_CPATH moved from package library to standRoberto Ierusalimschy3-95/+109
alone interpreter (so that 'lua.c' concentrates all handling of environment variables)
2016-07-15new bug: Checking a format for 'os.date' may read pass the format stringRoberto Ierusalimschy1-0/+23
2016-06-27small corrections for C++ complianceRoberto Ierusalimschy2-4/+4
2016-06-22bug: expression list with four or more expressions inRoberto Ierusalimschy1-5/+4
a 'for' loop can crash the interpreter. ('adjust_assign' must remove extra expresssions from its registers.)
2016-06-21bug: expression list with four or more expressions inRoberto Ierusalimschy1-0/+39
a 'for' loop can crash the interpreter.
2016-06-20all 'static' variables should be 'const'Roberto Ierusalimschy1-5/+6
2016-06-16allow more bits in 'callstatus' (use no extra space due to alignments)Roberto Ierusalimschy1-2/+2
2016-05-30'lua_pushglobaltable' returns 'void'v5.3.3Roberto Ierusalimschy1-2/+2
2016-05-20'string.format("%q")' writes 'math.mininteger' in hexa, to ensureRoberto Ierusalimschy1-14/+19
it is read back as an integer
2016-05-20do not convert decimal constants with overflow to integers.Roberto Ierusalimschy1-2/+8
(Therefore, they will be converted as floats)
2016-05-18'string.pack("cn")' does not accept strings longer than 'n'Roberto Ierusalimschy1-8/+6
2016-05-13'singlevaraux' returns result only in 'var->k'Roberto Ierusalimschy1-10/+10
2016-05-13comment (FALLTHROUGH)Roberto Ierusalimschy2-5/+5
2016-05-02'io.read("n")' accepts both a dot and the locale point as itsRoberto Ierusalimschy1-8/+11
radix character + 'MAXRN' -> 'L_MAXLENNUM' + small detail in 'test2'
2016-05-02now that 'luaO_str2num' always accepts a dot as a radix character,Roberto Ierusalimschy2-35/+3
the lexer does not need to bother with this issue.
2016-05-02'luaO_str2num' (and, therefore, 'lua_stringtonumber', 'number',Roberto Ierusalimschy1-10/+46
and coercions) accepts both the locale point and a dot as its radix character
2016-05-02'string.format("%q", number)' ensures a dot as decimal pointRoberto Ierusalimschy1-7/+21
2016-05-01detail (macro should "use" all its arguments)Roberto Ierusalimschy1-2/+2
2016-04-22no more time limits to pattern matching (at least for now)Roberto Ierusalimschy1-38/+1
2016-04-19match time limit defined by variable 'string.pattlimit'Roberto Ierusalimschy1-16/+36
2016-04-18'os.time(t)' normalizes 't' fieldsRoberto Ierusalimschy1-10/+20
2016-04-11error handling in 'wrap' does not coerce numbers into string messagesRoberto Ierusalimschy1-2/+2
2016-04-11details ('error' does not coerce numbers to strings + comments)Roberto Ierusalimschy1-6/+5