<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua-cjson/fpconv.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>optimization: add void to functions with no arguments to prevent compiler warning.</title>
<updated>2023-02-22T01:17:50+00:00</updated>
<author>
<name>lijunlong</name>
<email>lijunlong@openresty.com</email>
</author>
<published>2023-02-22T01:04:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=1dff61d9bf390372124c13443e0131a96383f5bc'/>
<id>urn:sha1:1dff61d9bf390372124c13443e0131a96383f5bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fixed the warning "inline function ‘fpconv_init’ declared but never defined" from gcc.</title>
<updated>2015-11-01T12:44:04+00:00</updated>
<author>
<name>Yichun Zhang (agentzh)</name>
<email>agentzh@gmail.com</email>
</author>
<published>2015-11-01T12:44:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=27abfdefedc8f7c161e440114b75d2f52425621b'/>
<id>urn:sha1:27abfdefedc8f7c161e440114b75d2f52425621b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename USE_INTERNAL_DTOA to USE_INTERNAL_FPCONV</title>
<updated>2012-03-04T08:24:35+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-21T02:23:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=a05c5153ad6b4082de209ed1154034ccd3b68326'/>
<id>urn:sha1:a05c5153ad6b4082de209ed1154034ccd3b68326</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>
<entry>
<title>Sanitise locale code, comments and documentation</title>
<updated>2012-01-01T04:54:30+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2012-01-01T04:54:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=929c814b12e3575859fa0d5a8ea9950ae2187c56'/>
<id>urn:sha1:929c814b12e3575859fa0d5a8ea9950ae2187c56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add fpconv to work around comma decimal points</title>
<updated>2011-12-30T03:47:44+00:00</updated>
<author>
<name>Mark Pulford</name>
<email>mark@kyne.com.au</email>
</author>
<published>2011-12-30T03:47:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua-cjson/commit/?id=2416b145073211b840781da6abf4b6d97f4657a6'/>
<id>urn:sha1:2416b145073211b840781da6abf4b6d97f4657a6</id>
<content type='text'>
Create a separate buffer and translate comma &lt;&gt; dot before calling
strtod(), and after calling sprintf() as required.

- Add "update_locale" Lua API call and init locale on module load.
- Move sprintf format string to fpconv
</content>
</entry>
</feed>
