<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lauxlib.h, 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>2021-10-18T14:58:40+00:00</updated>
<entry>
<title>Removed goto's in 'luaD_precall'</title>
<updated>2021-10-18T14:58:40+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-10-18T14:58:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=3699446aaf5c7a07af028b1ae43cf52d2d4dda59'/>
<id>urn:sha1:3699446aaf5c7a07af028b1ae43cf52d2d4dda59</id>
<content type='text'>
(plus a detail in lauxlib.h.)
</content>
</entry>
<entry>
<title>Avoid overflows when incrementing parameters in C</title>
<updated>2021-09-22T16:10:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-09-22T16:10:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=deac067ed39a44c001599c0d15de09872496b2aa'/>
<id>urn:sha1:deac067ed39a44c001599c0d15de09872496b2aa</id>
<content type='text'>
Any C function can receive maxinteger as an integer argument, and
therefore cannot increment it without some care (e.g., doing unsigned
arithmetic as the core does).
</content>
</entry>
<entry>
<title>Uses of "likely" in macros active to all users</title>
<updated>2021-03-09T15:50:59+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-03-09T15:50:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a7b8b27dd39f45b9464ffc4226b0616c3ffe5ad7'/>
<id>urn:sha1:a7b8b27dd39f45b9464ffc4226b0616c3ffe5ad7</id>
<content type='text'>
The use of 'l_likely' in auxlib macros 'luaL_argcheck' and
'luaL_argexpected' should not be restricted to Lua's own code.
For that, 'l_likely' was renamed to 'luai_likely' to be exported
to external code.
</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>Details (do not affect regular code)</title>
<updated>2020-12-07T14:17:30+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-07T14:17:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e2ea3b31c94bb3e1da27c233661cb2a16699c685'/>
<id>urn:sha1:e2ea3b31c94bb3e1da27c233661cb2a16699c685</id>
<content type='text'>
* 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.
</content>
</entry>
<entry>
<title>'lua_assert' moved from 'lualib.h' to 'lauxlib.h'</title>
<updated>2020-12-03T13:39:38+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-03T13:39:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=d41c36bf67d6628bccd91697e7f88e55d40d3970'/>
<id>urn:sha1:d41c36bf67d6628bccd91697e7f88e55d40d3970</id>
<content type='text'>
The macro is useful also in 'lauxlib.c', which does not include
'lualib.h'. Also, the definition was corrected to be "on" when
LUAI_ASSERT is defined.
</content>
</entry>
<entry>
<title>Added 'simplesect' sections to the manual</title>
<updated>2020-04-13T16:42:40+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-04-13T16:42:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9e0a8475cdd53af664b807c4f0c4d53088a7faf2'/>
<id>urn:sha1:9e0a8475cdd53af664b807c4f0c4d53088a7faf2</id>
<content type='text'>
'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.)
</content>
</entry>
<entry>
<title>Added function 'luaL_buffsub'</title>
<updated>2019-10-23T14:10:19+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-10-23T14:10:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b93f3b00bb76cddbf600eb399849fb0c01d197fd'/>
<id>urn:sha1:b93f3b00bb76cddbf600eb399849fb0c01d197fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added macro 'luaL_pushfail'</title>
<updated>2019-08-16T17:58:02+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-08-16T17:58:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b96b0b5abbf40cbdbed7952bf35a5a27ddf75928'/>
<id>urn:sha1:b96b0b5abbf40cbdbed7952bf35a5a27ddf75928</id>
<content type='text'>
The macro 'luaL_pushfail' documents all places in the standard libraries
that return nil to signal some kind of failure. It is defined as
'lua_pushnil'. The manual also got a notation (@fail) to document those
returns. The tests were changed to be agnostic regarding whether 'fail'
is 'nil' or 'false'.
</content>
</entry>
<entry>
<title>New function 'luaL_addgsub'</title>
<updated>2019-04-24T17:41:41+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2019-04-24T17:41:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=c65605151c5a335baf0a9ea251b19df5b2d3a905'/>
<id>urn:sha1:c65605151c5a335baf0a9ea251b19df5b2d3a905</id>
<content type='text'>
Added a new function 'luaL_addgsub', similar to 'luaL_gsub' but that
adds its result directly to a preexisting buffer, avoiding the creation
of one extra intermediate string. Also added two simple macros,
'luaL_bufflen' and 'luaL_buffaddr', to query the current length
and the contents address of a buffer.
</content>
</entry>
</feed>
