Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added gcc option '-Wconversion' | Roberto Ierusalimschy | 2024-07-27 | 1 | -1/+1 |
| | | | | | No warnings for standard numerical types. Still pending alternative numerical types. | ||||
* | llimits.h being used by all Lua code | Roberto Ierusalimschy | 2024-06-20 | 1 | -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. | ||||
* | More disciplined use of 'errno' | Roberto Ierusalimschy | 2024-06-12 | 1 | -0/+2 |
| | | | | | | | | | Set errno to zero before calling any function where we may use its errno, and check errno for zero before using it (as functions may not set it even in error). The code assumes that no function will put garbage on errno (although ISO C allows that): If any function during an operation set errno, and the operation result in an error, assume that errno has something to say. | ||||
* | Simpler definition for LUA_STRFTIMEOPTIONS | Roberto Ierusalimschy | 2023-02-07 | 1 | -15/+6 |
| | | | | There is no need for those intermediate definitions. | ||||
* | New macro LUA_USE_IOS | Roberto Ierusalimschy | 2023-02-02 | 1 | -12/+5 |
| | | | | | Do not try to detect automatically whether system is iOS; it is simpler and more reliable to let the programmer inform that. | ||||
* | Fix absence of 'system' in iOS | Roberto Ierusalimschy | 2023-01-24 | 1 | -1/+17 |
| | | | | | Despite claiming to be ISO, the C library in some Apple platforms does not implement 'system'. | ||||
* | Small simplification in overflow check in 'getfield' | Roberto Ierusalimschy | 2022-09-23 | 1 | -3/+1 |
| | | | | | Subtracting a small non-negative int from a non-negative int cannot overflow, and adding a non-negative int to INT_MIN cannot overflow. | ||||
* | Broadening the use of branch hints | Roberto Ierusalimschy | 2021-02-24 | 1 | -4/+4 |
| | | | | | | More uses of macros 'likely'/'unlikely' (renamed to 'l_likely'/'l_unlikely'), both in range (extended to the libraries) and in scope (extended to hooks, stack growth). | ||||
* | 'luaL_execresult' does not assume -1 status as error | Roberto Ierusalimschy | 2020-05-22 | 1 | -2/+4 |
| | | | | | | | | | | | ISO C is silent about the return of 'system'. Windows sets 'errno' in case of errors. Linux has several different error cases, with different return values. ISO C allows 'system' to set 'errno' even if there are no errors. Here we assume that a status==0 is success (which is the case on several platforms), otherwise it is an error. If there is an error number, gives the error based on it. (The worst a spurious 'errno' can do is to generate a bad error message.) Otherwise uses the normal results. | ||||
* | Several details about 5.4.0 rc1 | Roberto Ierusalimschy | 2020-04-23 | 1 | -1/+1 |
| | | | | | Corrected several small details: added 'const', adjusts in tabs x spaces, removed unused #includes and #defines, misspellings, etc. | ||||
* | Comments (mosty typos) | Roberto Ierusalimschy | 2019-12-30 | 1 | -1/+1 |
| | |||||
* | Some improvements in date/time functions | Roberto Ierusalimschy | 2019-07-24 | 1 | -28/+48 |
| | | | | | | - Range in date table extended to full 32 bits. - Easier support for times represented as floats. - Added more tests. | ||||
* | Removed resource-related "emergency collections" | Roberto Ierusalimschy | 2018-10-31 | 1 | -2/+0 |
| | | | | | New to-be-closed variables is a better way to ensure the proper release of resources. | ||||
* | Added "emergency collection" to 'io.tmpfile' and 'os.tmpname' | Roberto Ierusalimschy | 2018-07-27 | 1 | -0/+2 |
| | | | | | | | | These operations also can give errors for lack of resources, so they also will try "emergency collections" in case of resource errors. Because there are now two libraries with that kind of handling, 'resourcetryagain' was moved to the auxiliary library to be shared by the libraries. | ||||
* | File operations try an "emergency collection" when failing | Roberto Ierusalimschy | 2018-07-25 | 1 | -2/+1 |
| | | | | | | | | | If a file operation fails do to lack of resources (too many open files or not enough memory), it does a full garbage collection and tries the operation again. Lack of resources are "too many open files" (process wise and system wise) and "not enough memory". The code is full of '#if's because error codes are not part of the standard ISO C. | ||||
* | added 'return' to calls to 'luaL_error' (to signal to the compiler | Roberto Ierusalimschy | 2017-03-14 | 1 | -3/+5 |
| | | | | that the function cannot continue past that call) | ||||
* | bug: 'checkoption' could read past end of string + 'os.date' can | Roberto Ierusalimschy | 2016-07-18 | 1 | -12/+16 |
| | | | | handle embedded zeros | ||||
* | 'os.time(t)' normalizes 't' fields | Roberto Ierusalimschy | 2016-04-18 | 1 | -10/+20 |
| | |||||
* | simpler yet definition for 'checkoption' | Roberto Ierusalimschy | 2016-02-09 | 1 | -18/+14 |
| | |||||
* | simpler code for 'checkoption' + added conversion specifiers specific | Roberto Ierusalimschy | 2016-02-08 | 1 | -25/+34 |
| | | | | to Windows | ||||
* | details (comments + text of error messages) | Roberto Ierusalimschy | 2016-01-06 | 1 | -5/+5 |
| | |||||
* | details (typos in comments) | Roberto Ierusalimschy | 2015-11-19 | 1 | -2/+2 |
| | |||||
* | 'strftime' puts its result directly into 'lua_Buffer' | Roberto Ierusalimschy | 2015-07-06 | 1 | -5/+9 |
| | |||||
* | better treatment for integer overflows + all errors throw an error | Roberto Ierusalimschy | 2015-07-04 | 1 | -23/+37 |
| | | | | (instead of returning nil) | ||||
* | re-organization of initial configuration options | Roberto Ierusalimschy | 2015-04-10 | 1 | -27/+40 |
| | |||||
* | detail (no need to write 'double' in source) | Roberto Ierusalimschy | 2015-02-09 | 1 | -3/+4 |
| | |||||
* | typo in error message | Roberto Ierusalimschy | 2015-01-12 | 1 | -2/+2 |
| | |||||
* | detail (to avoid warnings) | Roberto Ierusalimschy | 2014-12-26 | 1 | -3/+3 |
| | |||||
* | new specifiers in 'strftime' are defined in C99 (not Posix) | Roberto Ierusalimschy | 2014-12-10 | 1 | -3/+3 |
| | |||||
* | comments (references to "ANSI C" changed to "ISO C", which is the | Roberto Ierusalimschy | 2014-11-02 | 1 | -3/+3 |
| | | | | international name | ||||
* | added include for 'lprefix.h', for stuff that must be added before | Roberto Ierusalimschy | 2014-11-02 | 1 | -4/+6 |
| | | | | any other header file | ||||
* | `name' in comments changed to 'name' | Roberto Ierusalimschy | 2014-10-25 | 1 | -2/+2 |
| | |||||
* | macros 'LUA_QL'/'LUA_QL' deprecated | Roberto Ierusalimschy | 2014-10-17 | 1 | -2/+2 |
| | |||||
* | added some casts for the cases when lua_Number != double | Roberto Ierusalimschy | 2014-10-08 | 1 | -2/+3 |
| | |||||
* | deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) | Roberto Ierusalimschy | 2014-10-01 | 1 | -2/+2 |
| | |||||
* | template for 'mkstemp' is configurable (via LUA_TMPNAMTEMPLATE) | Roberto Ierusalimschy | 2014-04-29 | 1 | -2/+8 |
| | |||||
* | configuration for Lua type corresponding to 'time_t' | Roberto Ierusalimschy | 2014-03-20 | 1 | -10/+24 |
| | |||||
* | lua_gettable and similars return type of gotten value | Roberto Ierusalimschy | 2014-03-12 | 1 | -3/+2 |
| | |||||
* | removal of weird construction in definition of LUA_STRFTIMEOPTIONS | Roberto Ierusalimschy | 2014-02-26 | 1 | -3/+3 |
| | | | | (two empty strings concatenated as in "" "") | ||||
* | more uniformity for defining system-dependent features | Roberto Ierusalimschy | 2014-02-26 | 1 | -7/+18 |
| | |||||
* | uses integers for time | Roberto Ierusalimschy | 2013-05-14 | 1 | -5/+5 |
| | |||||
* | error message in 'os.rename' does not include file name, because error | Roberto Ierusalimschy | 2012-10-19 | 1 | -2/+2 |
| | | | | may be caused both by 'fromname' or 'toname' | ||||
* | spaces -> tabs in #defines | Roberto Ierusalimschy | 2012-05-23 | 1 | -8/+9 |
| | |||||
* | 'lUA' -> 'LUA' | Roberto Ierusalimschy | 2011-11-30 | 1 | -2/+2 |
| | |||||
* | when available, use '*_r' versions of 'gmtime' and 'localtime' | Roberto Ierusalimschy | 2011-11-29 | 1 | -4/+21 |
| | |||||
* | another try to avoid warnings about unreachable 'return' after 'exit' | Roberto Ierusalimschy | 2011-11-29 | 1 | -2/+3 |
| | |||||
* | comment | Roberto Ierusalimschy | 2011-06-20 | 1 | -2/+2 |
| | |||||
* | returns for file-related functions and process-related functions | Roberto Ierusalimschy | 2011-03-03 | 1 | -19/+10 |
| | | | | unified in 'auxlib' | ||||
* | detail (cleaning trailing spaces) | Roberto Ierusalimschy | 2011-01-26 | 1 | -2/+2 |
| | |||||
* | 'os.exit' acceps booleans as status (for EXIT_SUCESS and EXIT_FAILURE) | Roberto Ierusalimschy | 2010-10-05 | 1 | -2/+6 |
| |