summaryrefslogtreecommitdiff
path: root/manual
Commit message (Collapse)AuthorAgeFilesLines
* "Emergency" new version 5.4.6HEADv5.4.6masterRoberto Ierusalimschy2023-05-021-15/+25
| | | | | | 'lua_resetthread' is back to its original signature, to avoid incompatibilities in the ABI between releases of the same version. New function 'lua_closethread' added with the "correct" signature.
* Detailsv5.4.5Roberto Ierusalimschy2023-04-181-4/+4
| | | | Typos in comments and details in the manual.
* New year (2023)Roberto Ierusalimschy2023-03-311-1/+1
| | | | | Also, small tweak in makefile. (-Wsign-compare is already enabled by -Wextra.)
* Bug: stack overflow with nesting of coroutine.closeRoberto Ierusalimschy2022-10-251-1/+6
|
* Option '-l g=mod' added to the manualRoberto Ierusalimschy2022-10-191-11/+12
| | | | Plus some other improvements in the manual.
* Note in the manual about using '...' as an expressionRoberto Ierusalimschy2022-09-081-5/+16
|
* Better documentation for 'multires' expressionsRoberto Ierusalimschy2022-08-191-72/+116
| | | | | | Manual has a new section explaining multires expressions, lists of expressions, and adjustments. This commit also corrects some comments in the code.
* Details (identation and typos)Roberto Ierusalimschy2022-05-101-2/+2
|
* DetailsRoberto Ierusalimschy2022-04-011-1/+3
| | | | | Comments + manual + identation + asserts about stack limits that were not allowing the use of the full stack
* Explanation of borders in the manualv5.4.4Roberto Ierusalimschy2022-01-131-10/+12
| | | | | | The explanation includes the limit case of maxinteger being a border. It also avoids the term "natural", which might include large floats with natural values.
* New year (2022)Roberto Ierusalimschy2022-01-021-1/+1
|
* Bug: GC is not reentrantRoberto Ierusalimschy2021-12-131-5/+6
| | | | As the GC is not reentrant, finalizers should not be able to invoke it.
* Corrected bug in 'luaD_tryfuncTM'Roberto Ierusalimschy2021-11-161-1/+1
| | | | | | The pointer to the metamethod can be invalidated by a finalizer that can run during a GC in 'checkstackGCp'. (This commit also fixes a detail in the manual.) Bug introduced in commit 91673a8ec.
* DocumentationRoberto Ierusalimschy2021-10-111-2/+10
| | | | | Better explanation about the guaranties of multiple assignment in the manual.
* Revamp of format validation in 'string.format'Roberto Ierusalimschy2021-09-031-2/+4
| | | | | When calling 'sprintf', not all conversion specifiers accept all flags; some combinations are undefined behavior.
* Improved documentation for 'lua_getinfo'Roberto Ierusalimschy2021-08-111-18/+24
|
* Correction on documentation of string-buffer operationsRoberto Ierusalimschy2021-07-211-4/+4
| | | | | | All string-buffer operations can potentially change the stack in unspecified ways; the push/pop documentation in the manual should reflect that.
* Avoid the term "undefined behavior" in the manualRoberto Ierusalimschy2021-06-091-3/+2
|
* DetailsRoberto Ierusalimschy2021-03-291-9/+12
| | | | Comments and small improvements in the manual.
* lua_settop/lua_pop closes to-be-closed variablesRoberto Ierusalimschy2021-03-091-12/+11
| | | | | | The existence of 'lua_closeslot' is no reason for lua_pop not to close to-be-closed variables too. It is too error-prone for lua_pop not to close tbc variables being popped from the stack.
* New release number (5.4.3)Roberto Ierusalimschy2021-03-031-1/+1
|
* Normalization of metamethod typography in the manualRoberto Ierusalimschy2021-03-021-10/+10
|
* '__close' methods can yield in the return of a C functionRoberto Ierusalimschy2021-02-121-0/+3
| | | | | | | When, inside a coroutine, a C function with to-be-closed slots return, the corresponding metamethods can yield. ('__close' metamethods called through 'lua_closeslot' still cannot yield, as there is no continuation to go when resuming.)
* Simpler handling of errors when creating tbc variablesRoberto Ierusalimschy2021-01-191-4/+0
| | | | | | New field 'lua_State.ptbc' keeps to-be-closed variable until its upvalue is created, so that it can be closed in case of a memory-allocation error.
* Corrected documentation for 'table.sort'Roberto Ierusalimschy2021-01-141-8/+8
| | | | | The sort function must define a (strict) weak order for a correct sorting. A partial order is not enough.
* New API function 'lua_closeslot'Roberto Ierusalimschy2021-01-111-10/+23
| | | | | | Closing a to-be-closed variable with 'lua_settop' is too restrictive, as it erases all slots above the variable. Moreover, it adds side effects to 'lua_settop', which should be a fairly basic function.
* Report last error in closing methodsRoberto Ierusalimschy2020-12-221-5/+0
| | | | | When there are multiple errors around closing methods, report the last error instead of the original.
* Upvalues removed from 'openupval' before being closedRoberto Ierusalimschy2020-12-211-1/+0
| | | | | | | Undo commit c220b0a5d0: '__close' is not called again in case of errors. (Upvalue is removed from the list before the call.) The common error that justified that change was C stack overflows, which are much rarer with the stackless implementation.
* 'coroutine.close'/'lua_resetthread' report original errorsRoberto Ierusalimschy2020-12-181-3/+7
| | | | | | Besides errors in closing methods, 'coroutine.close' and 'lua_resetthread' also consider the original error that stopped the thread, if any.
* Details (do not affect regular code)Roberto Ierusalimschy2020-12-071-0/+5
| | | | | | | * Avoids multiple definitions of 'lua_assert' in test file. * Smaller C-stack limit in test mode. * Note in the manual about the use of false * Extra test for constant reuse.
* DetailsRoberto Ierusalimschy2020-10-301-3/+10
| | | | | | - small corrections in the manual - ldo.c: 'docall' -> 'ccall' ('docall' already used in 'lua.c') - comments
* Revision of stackless implementationRoberto Ierusalimschy2020-10-121-55/+17
| | | | | | - more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit'
* Details in the manualRoberto Ierusalimschy2020-09-251-6/+9
|
* Details in comments and documentationRoberto Ierusalimschy2020-09-161-0/+10
|
* Better documentation for the GC of strings in the C APIRoberto Ierusalimschy2020-09-091-20/+58
| | | | Plus some other small changes.
* Detailsv5.4.0v5.4.0Roberto Ierusalimschy2020-06-181-0/+11
| | | | Added as incompatibility, in the manual, the extra return of 'io.lines'.
* DetailsRoberto Ierusalimschy2020-06-101-1/+1
|
* Improvements in the manualRoberto Ierusalimschy2020-05-291-45/+86
| | | | | | | | - more consistent nomenclature for error handling - more precise definition for dead objects - added algorithm used by 'math.random' - added luaL_pushfail - some other minor changes
* Several details about 5.4.0 rc1Roberto Ierusalimschy2020-04-231-1/+1
| | | | | Corrected several small details: added 'const', adjusts in tabs x spaces, removed unused #includes and #defines, misspellings, etc.
* Added 'simplesect' sections to the manualRoberto Ierusalimschy2020-04-131-2/+52
| | | | | | | 'simplesect' encloses the introductory text of sections with subsections, so that each section either is all text or is all subsections. (This commit also corrects a small brace error in the manual and extra spaces/tabs in some other files.)
* Improvements in the manualRoberto Ierusalimschy2020-04-101-46/+64
| | | | | Several small improvements, in particular a new subsection consolidating all status codes in the API.
* Copyright year changed to 2020Roberto Ierusalimschy2019-12-271-1/+1
|
* Manual a little more clear about string->number coersionsRoberto Ierusalimschy2019-12-051-16/+25
|
* DetailsRoberto Ierusalimschy2019-11-181-2/+3
|
* Using 'metavalues' for "metamethods" that are not methodsRoberto Ierusalimschy2019-11-081-21/+26
| | | | | | Several "metamethods" are not required to be methods (functions), so it seems clearer not to call them metamethods. The manual now uses the word 'metavalue' for those values.
* Added function 'luaL_buffsub'Roberto Ierusalimschy2019-10-231-9/+17
|
* Several enhancements in the manualRoberto Ierusalimschy2019-10-231-43/+54
|
* Improvements in the manual around metamethodsv5.4-betaRoberto Ierusalimschy2019-10-081-35/+42
|
* 'setCstacklimit' renamed to 'setcstacklimit'Roberto Ierusalimschy2019-09-241-6/+6
| | | | Function names in the API use only lowercase letters.
* Default for warnings changed to "off"Roberto Ierusalimschy2019-08-201-2/+2
| | | | | Warnings are mostly a tool to help developers (e.g., by showing hidden error messages); regular users usually don't need to see them.