projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add even more expression tests and fix the bugs they found.
[pspp]
/
src
/
frequencies.q
diff --git
a/src/frequencies.q
b/src/frequencies.q
index b5da79bde62b83545e563e5bbd0fde8a5bde8171..fa380dea0fef49b18a78a4b94b93da1f483a6759 100644
(file)
--- a/
src/frequencies.q
+++ b/
src/frequencies.q
@@
-627,7
+627,7
@@
postcalc (void *aux UNUSED)
dump_statistics (v, !dumped_freq_tab);
dump_statistics (v, !dumped_freq_tab);
-#ifndef NO_CHARTS
+
if ( chart == GFT_HIST)
{
double d[frq_n_stats];
if ( chart == GFT_HIST)
{
double d[frq_n_stats];
@@
-653,7
+653,7
@@
postcalc (void *aux UNUSED)
{
do_piechart(v_variables[i], ft);
}
{
do_piechart(v_variables[i], ft);
}
-#endif
+
cleanup_freq_tab (v);
cleanup_freq_tab (v);
@@
-868,7
+868,7
@@
frq_custom_grouped (struct cmd_frequencies *cmd UNUSED)
{
nl = ml = 0;
dl = NULL;
{
nl = ml = 0;
dl = NULL;
- while (
token == T_NUM
)
+ while (
lex_integer ()
)
{
if (nl >= ml)
{
{
if (nl >= ml)
{
@@
-1614,7
+1614,7
@@
freq_tab_to_slice_array(const struct freq_tab *frq_tab,
-#ifndef NO_CHARTS
+
static void
do_piechart(const struct variable *var, const struct freq_tab *frq_tab)
{
static void
do_piechart(const struct variable *var, const struct freq_tab *frq_tab)
{
@@
-1627,7
+1627,7
@@
do_piechart(const struct variable *var, const struct freq_tab *frq_tab)
free(slices);
}
free(slices);
}
-#endif
+
/*
Local Variables:
/*
Local Variables: