-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating fast_float to v6.0.0 from develop
- Loading branch information
Showing
3 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
Submodule fast_float
updated
10 files
+1 −1 | .github/workflows/vs17-ci.yml | |
+1 −1 | CMakeLists.txt | |
+1 −1 | CONTRIBUTORS | |
+45 −5 | README.md | |
+104 −3 | include/fast_float/ascii_number.h | |
+7 −1 | include/fast_float/fast_float.h | |
+80 −3 | include/fast_float/float_common.h | |
+26 −8 | include/fast_float/parse_number.h | |
+1 −1 | tests/CMakeLists.txt | |
+752 −0 | tests/fast_int.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@echo off | ||
setlocal EnableDelayedExpansion | ||
|
||
set base_path=%~dp0 | ||
cd %base_path% | ||
|
||
if not exist "..\Libraries\" (mkdir "..\Libraries") | ||
|
||
set update_lib=%~1 | ||
|
||
for %%A in ("fast_float" "") do ( | ||
if "%update_lib%"==%%A ( | ||
REM updating the fast_float library | ||
set lib_name="fast_float" | ||
set lib_path_src="!base_path!!lib_name!\" | ||
|
||
cd !lib_name! | ||
set "tag=" | ||
for /f %%i in ('git describe --contains HEAD') do set "tag=%%i" | ||
|
||
cd !base_path! | ||
REM delete the destination library folder when updating | ||
RD /S /Q "..\Libraries\!lib_name!" | ||
set lib_path_dest="..\Libraries\!lib_name!\" | ||
mkdir !lib_path_dest! | ||
|
||
mkdir "!lib_path_dest!Include" | ||
copy !lib_path_src!include\!lib_name!\*.h "!lib_path_dest!Include" /Y | ||
|
||
echo "!tag!" >"!lib_path_dest!!lib_name!_!tag!.txt" | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
base_path=$(dirname $(realpath -s $0))"/" | ||
cd "$base_path" | ||
|
||
if [ ! -d "../Libraries/" ]; then | ||
mkdir "../Libraries" | ||
fi | ||
|
||
update_all_libs=false | ||
|
||
if [ -z "$1" ]; then | ||
update_all_libs=true | ||
fi | ||
|
||
# Updating the fast_float library | ||
if [[ "$1" == "fast_float" || "$update_all_libs" == true ]]; then | ||
lib_name="fast_float" | ||
lib_path_src="$base_path$lib_name/" | ||
|
||
cd "$lib_name" | ||
tag=$(git describe --contains HEAD) | ||
cd "$base_path" | ||
|
||
# Delete the destination library folder when updating | ||
lib_path_dest="../Libraries/$lib_name/" | ||
rm -rf "$lib_path_dest" | ||
mkdir -p "$lib_path_dest" | ||
|
||
mkdir "$lib_path_dest/Include" | ||
cp ${lib_path_src}include/$lib_name/*.h "${lib_path_dest}Include" | ||
|
||
echo "\"$tag\"" > "$lib_path_dest${lib_name}_$tag.txt" | ||
fi |