projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psppire-var-sheet: Hard-code size of pixbuf cells.
[pspp]
/
src
/
output
/
measure.c
diff --git
a/src/output/measure.c
b/src/output/measure.c
index 8de7ed1d486bf9ca62a4d399c2b12f4fcb6d8281..faeef969b09b247e4b4d3a7f468e35a2039bccbe 100644
(file)
--- a/
src/output/measure.c
+++ b/
src/output/measure.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 1997-9, 2000, 2007, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 1997-9, 2000, 2007, 2009, 2010
, 2011, 2012
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-16,18
+16,20
@@
#include <config.h>
#include <config.h>
-#include
<output/measure.h>
+#include
"output/measure.h"
+#include <gl/c-strtod.h>
#include <ctype.h>
#include <errno.h>
#if HAVE_LC_PAPER
#include <langinfo.h>
#endif
#include <ctype.h>
#include <errno.h>
#if HAVE_LC_PAPER
#include <langinfo.h>
#endif
-#include <libpspp/str.h>
#include <stdlib.h>
#include <stdlib.h>
-#include <data/file-name.h>
+#include "data/file-name.h"
+#include "libpspp/str.h"
+#include "gl/c-strcase.h"
#include "gl/error.h"
#include "gettext.h"
#include "gl/error.h"
#include "gettext.h"
@@
-50,7
+52,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;
@@
-134,7
+136,7
@@
parse_unit (const char *unit)
unit += strspn (unit, CC_SPACES);
for (p = units; p < units + sizeof units / sizeof *units; p++)
unit += strspn (unit, CC_SPACES);
for (p = units; p < units + sizeof units / sizeof *units; p++)
- if (!strcasecmp (unit, p->name))
+ if (!
c_
strcasecmp (unit, p->name))
return p->factor;
return 0.0;
}
return p->factor;
return 0.0;
}
@@
-150,7
+152,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
+160,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;