projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not rely on user to specify all variables in VARIABLE subcommand. Fixes bug 30389.
[pspp]
/
src
/
math
/
categoricals.c
diff --git
a/src/math/categoricals.c
b/src/math/categoricals.c
index 33e3b51c62f99cc2290ce7918dbba6aedb111878..5aba65b78e92d35499a886064edb12e1b81ce39d 100644
(file)
--- a/
src/math/categoricals.c
+++ b/
src/math/categoricals.c
@@
-102,6
+102,7
@@
categoricals_destroy ( struct categoricals *cat)
}
}
+#if 0
void
categoricals_dump (const struct categoricals *cat)
{
void
categoricals_dump (const struct categoricals *cat)
{
@@
-132,8
+133,8
@@
categoricals_dump (const struct categoricals *cat)
for (node = hmap_first (m); node; node = hmap_next (m, node))
{
struct string s;
for (node = hmap_first (m); node; node = hmap_next (m, node))
{
struct string s;
- ds_init_empty (&s);
const struct value_node *vn = HMAP_DATA (node, struct value_node, node);
const struct value_node *vn = HMAP_DATA (node, struct value_node, node);
+ ds_init_empty (&s);
var_append_value_name (vp->var, &vn->value, &s);
printf ("Value: %s; Index %d; CC %g\n",
ds_cstr (&s),
var_append_value_name (vp->var, &vn->value, &s);
printf ("Value: %s; Index %d; CC %g\n",
ds_cstr (&s),
@@
-155,6
+156,7
@@
categoricals_dump (const struct categoricals *cat)
printf ("%d ", cat->reverse_variable_map[v]);
printf ("\n");
}
printf ("%d ", cat->reverse_variable_map[v]);
printf ("\n");
}
+#endif