<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/dtoa_config.h, branch or-1.31.0</title>
<subtitle>A mirror of https://github.com/openresty/lua-cjson
</subtitle>
<id>https://git.lua4.win/lua-cjson/atom?h=or-1.31.0</id>
<link rel='self' href='https://git.lua4.win/lua-cjson/atom?h=or-1.31.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/'/>
<updated>2023-02-22T13:34:30+00:00</updated>
<entry>
<title>Add updated netlib dtoa.c from https://netlib.sandia.gov/fp/dtoa.c </title>
<updated>2023-02-22T13:34:30+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-02-22T13:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=41eee7406b0f048392168515b09e7d8bdd000624'/>
<id>urn:sha1:41eee7406b0f048392168515b09e7d8bdd000624</id>
<content type='text'>
Co-authored-by: Jesper Lundgren &lt;jesperlundgren@exosite.com&gt;</content>
</entry>
<entry>
<title>Add error checking to dtoa locking primitives</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-03T11:17:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=2d1c3e8674bd208d44f82361c648306c6c0f8149'/>
<id>urn:sha1:2d1c3e8674bd208d44f82361c648306c6c0f8149</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use internal dtoa/strtod for double conversion</title>
<updated>2012-03-04T08:24:34+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-12-29T12:33:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=ca42b9a996f9046ba3876ad8a81cda1d935b39cf'/>
<id>urn:sha1:ca42b9a996f9046ba3876ad8a81cda1d935b39cf</id>
<content type='text'>
The internal Lua CJSON dtoa/strtod routines have locale support
disabled. This avoids problems under locales with comma decimal
separators.

Build changes:
- CMake: Check for big endian architectures
- Makefile: Provide option to build with dtoa.c

Modifications to dtoa.c:
- Include locale dtoa_config.h configuration
- Rename Infinity/NaN to inf/nan to match common C libraries
- Rename strtod() -&gt; internal_strtod() to prevent conflict with libc
  function

Modifications to g_fmt.c:
- Return output string length (instead of original buffer pointer)
- Provide precision as an argument to g_fmt()
- Silence compilations warnings from vendor source
  - while(a = b)
  - Unused label "done:"
- Only swap to scientific notation when once the number of decimal
  digits required exceeds the precision available. This matches
  standard printf format %g.
- Display a "0" in front of numbers &lt; 1.
</content>
</entry>
</feed>
