projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite and improve formatted output routines.
[pspp-builds.git]
/
src
/
language
/
stats
/
crosstabs.q
diff --git
a/src/language/stats/crosstabs.q
b/src/language/stats/crosstabs.q
index cf76b35b79fc34f201b9c98d21bcfb0610591539..67ee5aabaaf0055c25977673e01774624c2d21fa 100644
(file)
--- a/
src/language/stats/crosstabs.q
+++ b/
src/language/stats/crosstabs.q
@@
-37,6
+37,7
@@
#include <stdio.h>
#include <data/case.h>
#include <stdio.h>
#include <data/case.h>
+#include <data/data-out.h>
#include <data/dictionary.h>
#include <data/procedure.h>
#include <data/value-labels.h>
#include <data/dictionary.h>
#include <data/procedure.h>
#include <data/value-labels.h>
@@
-1718,7
+1719,7
@@
format_cell_entry (struct tab_table *table, int c, int r, double value,
s.length = 10;
s.string = tab_alloc (table, 16);
v.f = value;
s.length = 10;
s.string = tab_alloc (table, 16);
v.f = value;
- data_out (
s.string, &f, &v
);
+ data_out (
&v, &f, s.string
);
while (*s.string == ' ')
{
s.length--;
while (*s.string == ' ')
{
s.length--;
@@
-3200,8
+3201,8
@@
format_short (char *s, const struct fmt_spec *fp, const union value *v)
}
/* Format. */
}
/* Format. */
- data_out (
s, fp, v
);
-
+ data_out (
v, fp, s
);
+
/* Null terminate. */
s[fp->w] = '\0';
}
/* Null terminate. */
s[fp->w] = '\0';
}