<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/loslib.c, branch v5.4.9</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.4.9</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.4.9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2024-06-04T15:48:29+00:00</updated>
<entry>
<title>More disciplined use of 'errno'</title>
<updated>2024-06-04T15:48:29+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-06-04T15:48:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d5212c13b081ed62d8e1ae436779e79c79edf564'/>
<id>urn:sha1:d5212c13b081ed62d8e1ae436779e79c79edf564</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>Simpler definition for LUA_STRFTIMEOPTIONS</title>
<updated>2023-02-07T13:48:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-02-07T13:48:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=5e08b41567c5723c9f599d02a7511aa398f7c646'/>
<id>urn:sha1:5e08b41567c5723c9f599d02a7511aa398f7c646</id>
<content type='text'>
There is no need for those intermediate definitions.
</content>
</entry>
<entry>
<title>New macro LUA_USE_IOS</title>
<updated>2023-02-02T16:43:41+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-02-02T16:43:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=cf08915d62e338c987b71c078b148490510e9fe7'/>
<id>urn:sha1:cf08915d62e338c987b71c078b148490510e9fe7</id>
<content type='text'>
Do not try to detect automatically whether system is iOS; it is
simpler and more reliable to let the programmer inform that.
</content>
</entry>
<entry>
<title>Fix absence of 'system' in iOS</title>
<updated>2023-01-24T18:04:17+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-01-24T18:04:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d69789da1ccfa4db7c241de6b471d6b729f1561e'/>
<id>urn:sha1:d69789da1ccfa4db7c241de6b471d6b729f1561e</id>
<content type='text'>
Despite claiming to be ISO, the C library in some Apple platforms
does not implement 'system'.
</content>
</entry>
<entry>
<title>Small simplification in overflow check in 'getfield'</title>
<updated>2022-09-23T13:57:35+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-09-23T13:57:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=cfbe378f906061ee56f91acfbdf569d0d3fb9556'/>
<id>urn:sha1:cfbe378f906061ee56f91acfbdf569d0d3fb9556</id>
<content type='text'>
Subtracting a small non-negative int from a non-negative int cannot
overflow, and adding a non-negative int to INT_MIN cannot overflow.
</content>
</entry>
<entry>
<title>Broadening the use of branch hints</title>
<updated>2021-02-24T14:14:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-02-24T14:14:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=59c88f846d1dcd901a4420651aedf27816618923'/>
<id>urn:sha1:59c88f846d1dcd901a4420651aedf27816618923</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>'luaL_execresult' does not assume -1 status as error</title>
<updated>2020-05-22T18:39:29+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-05-22T18:39:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=efcf24be0c22cba57b298161bf4ab0561fd3c08e'/>
<id>urn:sha1:efcf24be0c22cba57b298161bf4ab0561fd3c08e</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Several details about 5.4.0 rc1</title>
<updated>2020-04-23T17:48:15+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-04-23T17:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0ddc0f47bd2a03678e1afbc384550aecb55a318f'/>
<id>urn:sha1:0ddc0f47bd2a03678e1afbc384550aecb55a318f</id>
<content type='text'>
Corrected several small details: added 'const', adjusts in tabs x
spaces, removed unused #includes and #defines, misspellings, etc.
</content>
</entry>
<entry>
<title>Comments (mosty typos)</title>
<updated>2019-12-30T14:45:08+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-12-30T14:45:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=bd1b87c5790c0c6fe23f76aa360e879922e1e738'/>
<id>urn:sha1:bd1b87c5790c0c6fe23f76aa360e879922e1e738</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Some improvements in date/time functions</title>
<updated>2019-07-24T18:01:59+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-07-24T18:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0eb6aa4013051c8c0148c09d8c85ee7cbdc96f42'/>
<id>urn:sha1:0eb6aa4013051c8c0148c09d8c85ee7cbdc96f42</id>
<content type='text'>
- Range in date table extended to full 32 bits.
- Easier support for times represented as floats.
- Added more tests.
</content>
</entry>
</feed>
