projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Count Dialog and Recode Dialog: Make syntax generation locale independent
[pspp]
/
src
/
output
/
measure.c
diff --git
a/src/output/measure.c
b/src/output/measure.c
index 14cd5dab9fdb56de6e263a4b4162a94df60dc4cb..60894f1cc25f81b3b21ae862ee646e0ac1d3c0ac 100644
(file)
--- a/
src/output/measure.c
+++ b/
src/output/measure.c
@@
-18,6
+18,7
@@
#include "output/measure.h"
#include "output/measure.h"
+#include <gl/c-strtod.h>
#include <ctype.h>
#include <errno.h>
#if HAVE_LC_PAPER
#include <ctype.h>
#include <errno.h>
#if HAVE_LC_PAPER
@@
-50,7
+51,7
@@
measure_dimension (const char *dimen)
char *tail;
/* Number. */
char *tail;
/* Number. */
- raw = strtod (dimen, &tail);
+ raw =
c_
strtod (dimen, &tail);
if (raw < 0.0)
goto syntax_error;
if (raw < 0.0)
goto syntax_error;
@@
-150,7
+151,7
@@
parse_paper_size (const char *size, int *h, int *v)
char *tail;
/* Width. */
char *tail;
/* Width. */
- raw_h = strtod (size, &tail);
+ raw_h =
c_
strtod (size, &tail);
if (raw_h <= 0.0)
return false;
if (raw_h <= 0.0)
return false;
@@
-158,7
+159,7
@@
parse_paper_size (const char *size, int *h, int *v)
tail += strspn (tail, CC_SPACES "x,");
/* Length. */
tail += strspn (tail, CC_SPACES "x,");
/* Length. */
- raw_v = strtod (tail, &tail);
+ raw_v =
c_
strtod (tail, &tail);
if (raw_v <= 0.0)
return false;
if (raw_v <= 0.0)
return false;