mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +01:00
Rename USE_FAST_DOUBLE_PARSER macro
This commit is contained in:
1 parent
a20a2bbe56
commit
510c230cf4
1 file changed
+3
-3
@@ -70,9 +70,9 @@
|
|||||||
|
|
||||||
// Uncomment this to use the github.com/lemire/fast_double_parser library. This
|
// Uncomment this to use the github.com/lemire/fast_double_parser library. This
|
||||||
// header-only library is C++, not C.
|
// header-only library is C++, not C.
|
||||||
// #define USE_FAST_DOUBLE_PARSER
|
// #define USE_LEMIRE_FAST_DOUBLE_PARSER
|
||||||
|
|
||||||
#ifdef USE_FAST_DOUBLE_PARSER
|
#ifdef USE_LEMIRE_FAST_DOUBLE_PARSER
|
||||||
#include "/the/path/to/fast_double_parser/include/fast_double_parser.h"
|
#include "/the/path/to/fast_double_parser/include/fast_double_parser.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -238,7 +238,7 @@ main1(int argc, char** argv) {
|
|||||||
if (g_flags.parse_number_f64) {
|
if (g_flags.parse_number_f64) {
|
||||||
wuffs_base__result_f64 r;
|
wuffs_base__result_f64 r;
|
||||||
|
|
||||||
#ifdef USE_FAST_DOUBLE_PARSER
|
#ifdef USE_LEMIRE_FAST_DOUBLE_PARSER
|
||||||
// Wuffs (and its JSON parser) works with slices (pointer-length
|
// Wuffs (and its JSON parser) works with slices (pointer-length
|
||||||
// pairs) but fast_double_parser works with NUL-terminated strings.
|
// pairs) but fast_double_parser works with NUL-terminated strings.
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|||||||
Reference in new issue
Block a user