output: Make table dimension functions work in arbitrary contexts.
authorBen Pfaff <blp@gnu.org>
Mon, 15 Jun 2009 04:50:46 +0000 (21:50 -0700)
committerBen Pfaff <blp@gnu.org>
Mon, 15 Jun 2009 04:50:46 +0000 (21:50 -0700)
commitab249f50e9f994b9a92a74b148f596f47fee0de9
tree914fe7437a69bc249c1e2cea81a1cd329c88d534
parentbeced3ad774631c091241d5087761879c0aa88b1
output: Make table dimension functions work in arbitrary contexts.

Until now the function passed to tab_dim has only been called at the
time that the table is passed to tab_submit.  But in upcoming commits
the table will be kept around and rendered possibly much later (by the
GUI), so the function to tab_dim has to be sure to only use data that
will exist at that time.  Thus, this commit makes it possible to free
the auxiliary data passed to that function, so that in the few cases
where it needs to keep around extra data, it can do so without leaking
memory.  At the same time, convert the few functions that do need this
feature to use it.
20 files changed:
src/language/data-io/data-parser.c
src/language/data-io/print.c
src/language/dictionary/split-file.c
src/language/dictionary/sys-file-info.c
src/language/stats/binomial.c
src/language/stats/chisquare.c
src/language/stats/crosstabs.q
src/language/stats/descriptives.c
src/language/stats/examine.q
src/language/stats/frequencies.q
src/language/stats/npar-summary.c
src/language/stats/oneway.q
src/language/stats/regression.q
src/language/stats/reliability.q
src/language/stats/sign.c
src/language/stats/t-test.q
src/language/stats/wilcoxon.c
src/language/utilities/echo.c
src/output/table.c
src/output/table.h