summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-02-03 14:52:43 +0000
committerRobin Watts <robin.watts@artifex.com>2016-02-03 16:34:24 +0000
commit36e57486f01fc026fd1e8886b32f91e385befedc (patch)
tree43c2cf9f99e70539aea65c7b889427fd84a4270e /scripts
parentd9c24f4fea589ab65a6046769c0642206557e60d (diff)
downloadmupdf-36e57486f01fc026fd1e8886b32f91e385befedc.tar.xz
Bug 696546: Add fast strtof
Take on a (slightly tweaked) version of Simon Reinhardt's patch. The actual logic is left entirely unchanged; minor changes have been made to the names of functions/types to avoid clashing in the cmapdump.c repeated inclusion. Currently this should really only affect xps files, as strtof is only used as fz_atof, and that's (effectively) all xps for now. I will look at updating lex_number to call this in future.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmapdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c
index 6b77d8c9..06d8cbee 100644
--- a/scripts/cmapdump.c
+++ b/scripts/cmapdump.c
@@ -19,6 +19,7 @@
#include "../source/fitz/stream-open.c"
#include "../source/fitz/stream-read.c"
#include "../source/fitz/strtod.c"
+#include "../source/fitz/strtof.c"
#include "../source/fitz/ftoa.c"
#include "../source/fitz/printf.c"
#ifdef _WIN32