Separate table functions that format their arguments from those that don't.
authorBen Pfaff <blp@gnu.org>
Tue, 11 Aug 2009 04:53:18 +0000 (21:53 -0700)
committerBen Pfaff <blp@gnu.org>
Tue, 11 Aug 2009 04:53:18 +0000 (21:53 -0700)
commit59981a5060a0e672b98655be240886d89a513d31
tree00e3d4b047eb5ce0a1cf3ed5f3cb1ae36bceb4ce
parent07db00919d6f067fd5dd6c6c1c2c2fba4f42cf21
Separate table functions that format their arguments from those that don't.

The tab_text, tab_joint_text, and tab_output_text functions, until now,
had an option bit TAT_PRINTF that specified whether they passed their text
argument through sprintf.  This interface was bad because it made it
impossible for GCC to tell whether it needed to verify a printf format
string or not.

This commit solves the problem by breaking each of these functions into one
that does format its argument and one that doesn't.

This is cross-ported from a similar commit on the master branch.
15 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/crosstabs.q
src/language/stats/descriptives.c
src/language/stats/examine.q
src/language/stats/oneway.q
src/language/stats/rank.q
src/language/stats/regression.q
src/language/stats/reliability.q
src/language/stats/t-test.q
src/output/table.c
src/output/table.h