<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/ldump.c, branch v5.5.1</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.5.1</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.5.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2025-10-10T18:28:41+00:00</updated>
<entry>
<title>Change in dumping of NULL strings</title>
<updated>2025-10-10T18:28:41+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-10-10T18:28:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5'/>
<id>urn:sha1:7a92f3f99a26d9e51be40b744ed4fab0b50ecaa5</id>
<content type='text'>
When dumping a string, adding 2 to its size may overflow a size_t for
external strings, which may not have a header. (Adding 1 is Ok, because
all strings end with a '\0' not included in their size.) The new method
for saving NULL strings code them as a repeated string, using the
reserved index 0.
</content>
</entry>
<entry>
<title>Dump uses varints also for integer constants</title>
<updated>2025-06-13T17:14:50+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-06-13T17:14:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0cecf1ab6d76e6a7d200fb01bdd999b61835fe21'/>
<id>urn:sha1:0cecf1ab6d76e6a7d200fb01bdd999b61835fe21</id>
<content type='text'>
Unlike sizes, these constants can be negative, so it encodes those
integers into unsigned integers in a way that keeps small numbers
small.
</content>
</entry>
<entry>
<title>Janitorial work on casts</title>
<updated>2025-05-08T18:18:57+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-08T18:18:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7ade1557627cf3f09c23c892ee227b7386f28414'/>
<id>urn:sha1:7ade1557627cf3f09c23c892ee227b7386f28414</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New macro 'l_numbits'</title>
<updated>2025-03-27T15:38:29+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-27T15:38:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ef5d171cc89b19ac1fea905b99d819b5f97cba00'/>
<id>urn:sha1:ef5d171cc89b19ac1fea905b99d819b5f97cba00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Checks for type 'int' added to binary header</title>
<updated>2025-03-10T18:21:32+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-10T18:21:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b5b1995f2925b2f9be4a48304ac97a38f8608648'/>
<id>urn:sha1:b5b1995f2925b2f9be4a48304ac97a38f8608648</id>
<content type='text'>
The structure 'AbsLineInfo' is hard-dumped into binary chunks, and
it comprises two 'int' fields.
</content>
</entry>
<entry>
<title>Added gcc option '-Wconversion'</title>
<updated>2024-07-27T16:32:59+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-07-27T16:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b'/>
<id>urn:sha1:0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b</id>
<content type='text'>
No warnings for standard numerical types. Still pending alternative
numerical types.
</content>
</entry>
<entry>
<title>Cleaning of llimits.h</title>
<updated>2024-06-20T16:43:33+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-06-20T16:43:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=55ac40f859ad8e28fe71a8801d49f4a4140e8aa3'/>
<id>urn:sha1:55ac40f859ad8e28fe71a8801d49f4a4140e8aa3</id>
<content type='text'>
Several definitions that don't need to be "global" (that is, that
concerns only specific parts of the code) moved out of llimits.h,
to more appropriate places.
</content>
</entry>
<entry>
<title>'luaH_get' functions return tag of the result</title>
<updated>2024-03-21T14:23:21+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-03-21T14:23:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0593256707ceddb1bc9cd4b25b822a7fbcfedd66'/>
<id>urn:sha1:0593256707ceddb1bc9cd4b25b822a7fbcfedd66</id>
<content type='text'>
Undoing previous commit. Returning TValue increases code size without
any visible gains. Returning the tag is a little simpler than returning
a special code (HOK/HNOTFOUND) and the tag is useful by itself in
some cases.
</content>
</entry>
<entry>
<title>'luaH_get' functions return 'TValue'</title>
<updated>2024-03-18T18:56:32+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-03-18T18:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ce6f5502c99ce9a367e25b678e375db6f8164d73'/>
<id>urn:sha1:ce6f5502c99ce9a367e25b678e375db6f8164d73</id>
<content type='text'>
Instead of receiving a parameter telling them where to put the result
of the query, these functions return the TValue directly. (That is,
they return a structure.)
</content>
</entry>
<entry>
<title>Removed type 'varint_t'</title>
<updated>2024-03-13T12:16:51+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-03-13T12:16:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=cc2b66c85687b095e68304c010b59851ca4093e1'/>
<id>urn:sha1:cc2b66c85687b095e68304c010b59851ca4093e1</id>
<content type='text'>
size_t should be big enough to count the number of strings in a dump.
(And, by definition, it is big enough to count the length of each
string.)
</content>
</entry>
</feed>
