Skip to content

Commit 41eee74

Browse files
zhuizhuhaomengJesper Lundgren
andauthored
Add updated netlib dtoa.c from https://netlib.sandia.gov/fp/dtoa.c
Co-authored-by: Jesper Lundgren <[email protected]>
1 parent de93a78 commit 41eee74

File tree

6 files changed

+2409
-534
lines changed

6 files changed

+2409
-534
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sudo: required
2-
dist: trusty
2+
dist: Focal
33

44
os: linux
55

@@ -17,6 +17,7 @@ addons:
1717
- libipc-run3-perl
1818
- lua5.1
1919
- lua5.1-dev
20+
- cmake
2021

2122
cache:
2223
apt: true
@@ -30,6 +31,7 @@ env:
3031
- LUAJIT=1 LUA_DIR=/usr/local LUA_INCLUDE_DIR=$LUA_DIR/include/luajit-2.1 LUA_SUFFIX=--lua-suffix=jit
3132

3233
install:
34+
- sudo ln -s /usr/bin/cmake /usr/local/bin/cmake
3335
- if [ -n "$LUAJIT" ]; then git clone -b v2.1-agentzh https://github.com/openresty/luajit2.git; fi
3436
- if [ -n "$LUAJIT" ]; then cd ./luajit2; fi
3537
- if [ -n "$LUAJIT" ]; then make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS='-DLUA_USE_APICHECK -DLUA_USE_ASSERT' > build.log 2>&1 || (cat build.log && exit 1); fi
@@ -53,3 +55,9 @@ script:
5355
- TEST_LUA_USE_VALGRIND=1 prove -Itests tests > build.log 2>&1; export e=$?
5456
- cat build.log
5557
- grep -E '^==[0-9]+==' build.log; if [ "$?" == 0 ]; then exit 1; else exit $e; fi
58+
- cmake -DUSE_INTERNAL_FPCONV=1 .
59+
- make
60+
- prove -Itests tests
61+
- TEST_LUA_USE_VALGRIND=1 prove -Itests tests > build.log 2>&1; export e=$?
62+
- cat build.log
63+
- grep -E '^==[0-9]+==' build.log; if [ "$?" == 0 ]; then exit 1; else exit $e; fi

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Windows: set LUA_DIR=c:\lua51
55

66
project(lua-cjson C)
7-
cmake_minimum_required(VERSION 2.6)
7+
cmake_minimum_required(VERSION 2.8.12)
88

99
option(USE_INTERNAL_FPCONV "Use internal strtod() / g_fmt() code for performance")
1010
option(MULTIPLE_THREADS "Support multi-threaded apps with internal fpconv - recommended" ON)

0 commit comments

Comments
 (0)