projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59981a5
)
Delete tab_create()'s unused third parameter.
author
Ben Pfaff
<blp@gnu.org>
Tue, 11 Aug 2009 05:01:16 +0000
(22:01 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Tue, 11 Aug 2009 05:01:16 +0000
(22:01 -0700)
This parameter was used a long time ago, but it is no longer needed, so
remove it.
20 files changed:
src/language/data-io/data-parser.c
patch
|
blob
|
history
src/language/data-io/print.c
patch
|
blob
|
history
src/language/dictionary/split-file.c
patch
|
blob
|
history
src/language/dictionary/sys-file-info.c
patch
|
blob
|
history
src/language/stats/binomial.c
patch
|
blob
|
history
src/language/stats/chisquare.c
patch
|
blob
|
history
src/language/stats/crosstabs.q
patch
|
blob
|
history
src/language/stats/descriptives.c
patch
|
blob
|
history
src/language/stats/examine.q
patch
|
blob
|
history
src/language/stats/frequencies.q
patch
|
blob
|
history
src/language/stats/npar-summary.c
patch
|
blob
|
history
src/language/stats/oneway.q
patch
|
blob
|
history
src/language/stats/regression.q
patch
|
blob
|
history
src/language/stats/reliability.q
patch
|
blob
|
history
src/language/stats/sign.c
patch
|
blob
|
history
src/language/stats/t-test.q
patch
|
blob
|
history
src/language/stats/wilcoxon.c
patch
|
blob
|
history
src/language/utilities/echo.c
patch
|
blob
|
history
src/output/table.c
patch
|
blob
|
history
src/output/table.h
patch
|
blob
|
history
diff --git
a/src/language/data-io/data-parser.c
b/src/language/data-io/data-parser.c
index b15929509a73481a01e8c0f69762d2f312549bad..44054267785fb51a874de832ac66e2da51376881 100644
(file)
--- a/
src/language/data-io/data-parser.c
+++ b/
src/language/data-io/data-parser.c
@@
-638,7
+638,7
@@
dump_fixed_table (const struct data_parser *parser,
struct tab_table *t;
size_t i;
struct tab_table *t;
size_t i;
- t = tab_create (4, parser->field_cnt + 1
, 0
);
+ t = tab_create (4, parser->field_cnt + 1);
tab_columns (t, TAB_COL_DOWN);
tab_headers (t, 0, 0, 1, 0);
tab_text (t, 0, 0, TAB_CENTER | TAT_TITLE, _("Variable"));
tab_columns (t, TAB_COL_DOWN);
tab_headers (t, 0, 0, 1, 0);
tab_text (t, 0, 0, TAB_CENTER | TAT_TITLE, _("Variable"));
@@
-679,7
+679,7
@@
dump_delimited_table (const struct data_parser *parser,
struct tab_table *t;
size_t i;
struct tab_table *t;
size_t i;
- t = tab_create (2, parser->field_cnt + 1
, 0
);
+ t = tab_create (2, parser->field_cnt + 1);
tab_columns (t, TAB_COL_DOWN);
tab_headers (t, 0, 0, 1, 0);
tab_text (t, 0, 0, TAB_CENTER | TAT_TITLE, _("Variable"));
tab_columns (t, TAB_COL_DOWN);
tab_headers (t, 0, 0, 1, 0);
tab_text (t, 0, 0, TAB_CENTER | TAT_TITLE, _("Variable"));
diff --git
a/src/language/data-io/print.c
b/src/language/data-io/print.c
index f7a3d152c58bf513081f38a9809b97afa2537a90..897c10cc158c8858a6c539bb54275bb53e9c0aec 100644
(file)
--- a/
src/language/data-io/print.c
+++ b/
src/language/data-io/print.c
@@
-395,7
+395,7
@@
dump_table (struct print_trns *trns, const struct file_handle *fh)
int row;
spec_cnt = ll_count (&trns->specs);
int row;
spec_cnt = ll_count (&trns->specs);
- t = tab_create (4, spec_cnt + 1
, 0
);
+ t = tab_create (4, spec_cnt + 1);
tab_columns (t, TAB_COL_DOWN);
tab_box (t, TAL_1, TAL_1, TAL_0, TAL_1, 0, 0, 3, spec_cnt);
tab_hline (t, TAL_2, 0, 3, 1);
tab_columns (t, TAB_COL_DOWN);
tab_box (t, TAL_1, TAL_1, TAL_0, TAL_1, 0, 0, 3, spec_cnt);
tab_hline (t, TAL_2, 0, 3, 1);
diff --git
a/src/language/dictionary/split-file.c
b/src/language/dictionary/split-file.c
index c0349d02e0c4e18252b7a156d148a8c40bf25c44..5d3650e3b3de569bd6e3eee5e1ff30d3ffddd267 100644
(file)
--- a/
src/language/dictionary/split-file.c
+++ b/
src/language/dictionary/split-file.c
@@
-77,7
+77,7
@@
output_split_file_values (const struct dataset *ds, const struct ccase *c)
if (split_cnt == 0)
return;
if (split_cnt == 0)
return;
- t = tab_create (3, split_cnt + 1
, 0
);
+ t = tab_create (3, split_cnt + 1);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_vline (t, TAL_GAP, 1, 0, split_cnt);
tab_vline (t, TAL_GAP, 2, 0, split_cnt);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_vline (t, TAL_GAP, 1, 0, split_cnt);
tab_vline (t, TAL_GAP, 2, 0, split_cnt);
diff --git
a/src/language/dictionary/sys-file-info.c
b/src/language/dictionary/sys-file-info.c
index 0a7123e9d457e2d8573241897c71a7e4dcc5ca5c..1202045d098cc6fdcd4bc342e6c610b5b01f0137 100644
(file)
--- a/
src/language/dictionary/sys-file-info.c
+++ b/
src/language/dictionary/sys-file-info.c
@@
-109,7
+109,7
@@
cmd_sysfile_info (struct lexer *lexer, struct dataset *ds UNUSED)
}
casereader_destroy (reader);
}
casereader_destroy (reader);
- t = tab_create (2, 11
, 0
);
+ t = tab_create (2, 11);
tab_vline (t, TAL_GAP, 1, 0, 8);
tab_text (t, 0, 0, TAB_LEFT, _("File:"));
tab_text (t, 1, 0, TAB_LEFT, fh_get_file_name (h));
tab_vline (t, TAL_GAP, 1, 0, 8);
tab_text (t, 0, 0, TAB_LEFT, _("File:"));
tab_text (t, 1, 0, TAB_LEFT, fh_get_file_name (h));
@@
-164,7
+164,7
@@
cmd_sysfile_info (struct lexer *lexer, struct dataset *ds UNUSED)
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_submit (t);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_submit (t);
- t = tab_create (4, 1 + 2 * dict_get_var_cnt (d)
, 1
);
+ t = tab_create (4, 1 + 2 * dict_get_var_cnt (d));
tab_dim (t, sysfile_info_dim, NULL, NULL);
tab_headers (t, 0, 0, 1, 0);
tab_text (t, 0, 0, TAB_LEFT | TAT_TITLE, _("Variable"));
tab_dim (t, sysfile_info_dim, NULL, NULL);
tab_headers (t, 0, 0, 1, 0);
tab_text (t, 0, 0, TAB_LEFT | TAT_TITLE, _("Variable"));
@@
-389,7
+389,7
@@
display_variables (const struct variable **vl, size_t n, int flags)
if (flags & DF_DICT_INDEX)
nc++;
if (flags & DF_DICT_INDEX)
nc++;
- t = tab_create (nc, n + 5
, 1
);
+ t = tab_create (nc, n + 5);
tab_headers (t, 0, 0, 1, 0);
tab_hline (t, TAL_2, 0, nc - 1, 1);
tab_text (t, 0, 0, TAB_LEFT | TAT_TITLE, _("Variable"));
tab_headers (t, 0, 0, 1, 0);
tab_hline (t, TAL_2, 0, nc - 1, 1);
tab_text (t, 0, 0, TAB_LEFT | TAT_TITLE, _("Variable"));
@@
-483,7
+483,7
@@
display_data_file_attributes (struct attrset *set, int flags)
if (!n_attrs)
return;
if (!n_attrs)
return;
- t = tab_create (2, n_attrs + 1
, 0
);
+ t = tab_create (2, n_attrs + 1);
tab_headers (t, 0, 0, 1, 0);
tab_box (t, TAL_1, TAL_1, -1, TAL_1, 0, 0, tab_nc (t) - 1, tab_nr (t) - 1);
tab_hline (t, TAL_2, 0, 1, 1);
tab_headers (t, 0, 0, 1, 0);
tab_box (t, TAL_1, TAL_1, -1, TAL_1, 0, 0, tab_nc (t) - 1, tab_nr (t) - 1);
tab_hline (t, TAL_2, 0, 1, 1);
@@
-718,7
+718,7
@@
display_vectors (const struct dictionary *dict, int sorted)
if (sorted)
qsort (vl, nvec, sizeof *vl, compare_vector_ptrs_by_name);
if (sorted)
qsort (vl, nvec, sizeof *vl, compare_vector_ptrs_by_name);
- t = tab_create (4, nrow + 1
, 0
);
+ t = tab_create (4, nrow + 1);
tab_headers (t, 0, 0, 1, 0);
tab_columns (t, TAB_COL_DOWN);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 0, 0, 1, 0);
tab_columns (t, TAB_COL_DOWN);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/binomial.c
b/src/language/stats/binomial.c
index 68a747bbd8a12a1401ce94c9087b30db19377647..bc87a94da3316b0c0cf0b99c0035092a7d93a8cb 100644
(file)
--- a/
src/language/stats/binomial.c
+++ b/
src/language/stats/binomial.c
@@
-187,7
+187,7
@@
binomial_execute (const struct dataset *ds,
const struct fmt_spec *wfmt = wvar ?
var_get_print_format (wvar) : & F_8_0;
const struct fmt_spec *wfmt = wvar ?
var_get_print_format (wvar) : & F_8_0;
- struct tab_table *table = tab_create (7, ost->n_vars * 3 + 1
, 0
);
+ struct tab_table *table = tab_create (7, ost->n_vars * 3 + 1);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/chisquare.c
b/src/language/stats/chisquare.c
index 71857cfbf05ac0194f78fc320cee82f0ea676977..bc1b6474ff16c167d06ea94ca55de828475d7a9e 100644
(file)
--- a/
src/language/stats/chisquare.c
+++ b/
src/language/stats/chisquare.c
@@
-180,7
+180,7
@@
create_variable_frequency_table (const struct dictionary *dict,
return NULL;
}
return NULL;
}
- table = tab_create(4, n_cells + 2
, 0
);
+ table = tab_create(4, n_cells + 2);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_title (table, var_to_string(var));
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_title (table, var_to_string(var));
@@
-216,7
+216,7
@@
create_combo_frequency_table (const struct chisquare_test *test)
int n_cells = test->hi - test->lo + 1;
int n_cells = test->hi - test->lo + 1;
- table = tab_create(1 + ost->n_vars * 4, n_cells + 3
, 0
);
+ table = tab_create(1 + ost->n_vars * 4, n_cells + 3);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_title (table, _("Frequencies"));
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_title (table, _("Frequencies"));
@@
-272,7
+272,7
@@
create_stats_table (const struct chisquare_test *test)
const struct one_sample_test *ost = (const struct one_sample_test*) test;
struct tab_table *table;
const struct one_sample_test *ost = (const struct one_sample_test*) test;
struct tab_table *table;
- table = tab_create (1 + ost->n_vars, 4
, 0
);
+ table = tab_create (1 + ost->n_vars, 4);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_title (table, _("Test Statistics"));
tab_headers (table, 1, 0, 1, 0);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_title (table, _("Test Statistics"));
tab_headers (table, 1, 0, 1, 0);
diff --git
a/src/language/stats/crosstabs.q
b/src/language/stats/crosstabs.q
index 2b45cf14fd70c024654d95a970f63f8259180297..ad278eebc0adf0387bca3667e807503581a7567b 100644
(file)
--- a/
src/language/stats/crosstabs.q
+++ b/
src/language/stats/crosstabs.q
@@
-840,7
+840,7
@@
make_summary_table (struct crosstabs_proc *proc)
struct string name;
int i;
struct string name;
int i;
- summary = tab_create (7, 3 + proc->n_pivots
, 1
);
+ summary = tab_create (7, 3 + proc->n_pivots);
tab_title (summary, _("Summary."));
tab_headers (summary, 1, 0, 3, 0);
tab_joint_text (summary, 1, 0, 6, 0, TAB_CENTER, _("Cases"));
tab_title (summary, _("Summary."));
tab_headers (summary, 1, 0, 3, 0);
tab_joint_text (summary, 1, 0, 6, 0, TAB_CENTER, _("Cases"));
@@
-1151,8
+1151,7
@@
create_crosstab_table (struct crosstabs_proc *proc, struct pivot_table *pt)
int i;
table = tab_create (pt->n_consts + 1 + pt->n_cols + 1,
int i;
table = tab_create (pt->n_consts + 1 + pt->n_cols + 1,
- (pt->n_entries / pt->n_cols) * 3 / 2 * proc->n_cells + 10,
- true);
+ (pt->n_entries / pt->n_cols) * 3 / 2 * proc->n_cells + 10);
tab_headers (table, pt->n_consts + 1, 0, 2, 0);
/* First header line. */
tab_headers (table, pt->n_consts + 1, 0, 2, 0);
/* First header line. */
@@
-1226,8
+1225,7
@@
create_chisq_table (struct pivot_table *pt)
struct tab_table *chisq;
chisq = tab_create (6 + (pt->n_vars - 2),
struct tab_table *chisq;
chisq = tab_create (6 + (pt->n_vars - 2),
- pt->n_entries / pt->n_cols * 3 / 2 * N_CHISQ + 10,
- 1);
+ pt->n_entries / pt->n_cols * 3 / 2 * N_CHISQ + 10);
tab_headers (chisq, 1 + (pt->n_vars - 2), 0, 1, 0);
tab_title (chisq, _("Chi-square tests."));
tab_headers (chisq, 1 + (pt->n_vars - 2), 0, 1, 0);
tab_title (chisq, _("Chi-square tests."));
@@
-1254,7
+1252,7
@@
create_sym_table (struct pivot_table *pt)
struct tab_table *sym;
sym = tab_create (6 + (pt->n_vars - 2),
struct tab_table *sym;
sym = tab_create (6 + (pt->n_vars - 2),
- pt->n_entries / pt->n_cols * 7 + 10
, 1
);
+ pt->n_entries / pt->n_cols * 7 + 10);
tab_headers (sym, 2 + (pt->n_vars - 2), 0, 1, 0);
tab_title (sym, _("Symmetric measures."));
tab_headers (sym, 2 + (pt->n_vars - 2), 0, 1, 0);
tab_title (sym, _("Symmetric measures."));
@@
-1276,8
+1274,7
@@
create_risk_table (struct pivot_table *pt)
{
struct tab_table *risk;
{
struct tab_table *risk;
- risk = tab_create (4 + (pt->n_vars - 2), pt->n_entries / pt->n_cols * 4 + 10,
- 1);
+ risk = tab_create (4 + (pt->n_vars - 2), pt->n_entries / pt->n_cols * 4 + 10);
tab_headers (risk, 1 + pt->n_vars - 2, 0, 2, 0);
tab_title (risk, _("Risk estimate."));
tab_headers (risk, 1 + pt->n_vars - 2, 0, 2, 0);
tab_title (risk, _("Risk estimate."));
@@
-1302,7
+1299,7
@@
create_direct_table (struct pivot_table *pt)
struct tab_table *direct;
direct = tab_create (7 + (pt->n_vars - 2),
struct tab_table *direct;
direct = tab_create (7 + (pt->n_vars - 2),
- pt->n_entries / pt->n_cols * 7 + 10
, 1
);
+ pt->n_entries / pt->n_cols * 7 + 10);
tab_headers (direct, 3 + (pt->n_vars - 2), 0, 1, 0);
tab_title (direct, _("Directional measures."));
tab_headers (direct, 3 + (pt->n_vars - 2), 0, 1, 0);
tab_title (direct, _("Directional measures."));
diff --git
a/src/language/stats/descriptives.c
b/src/language/stats/descriptives.c
index c5d469640bbbc0c583c4176d498b37e630cf2d6c..d87410fb17a4a19226db63768e6f7baed99f22d6 100644
(file)
--- a/
src/language/stats/descriptives.c
+++ b/
src/language/stats/descriptives.c
@@
-552,7
+552,7
@@
dump_z_table (struct dsc_proc *dsc)
cnt++;
}
cnt++;
}
- t = tab_create (2, cnt + 1
, 0
);
+ t = tab_create (2, cnt + 1);
tab_title (t, _("Mapping of variables to corresponding Z-scores."));
tab_columns (t, SOM_COL_DOWN);
tab_headers (t, 0, 0, 1, 0);
tab_title (t, _("Mapping of variables to corresponding Z-scores."));
tab_columns (t, SOM_COL_DOWN);
tab_headers (t, 0, 0, 1, 0);
@@
-873,7
+873,7
@@
display (struct dsc_proc *dsc)
sort (dsc->vars, dsc->var_cnt, sizeof *dsc->vars,
descriptives_compare_dsc_vars, dsc);
sort (dsc->vars, dsc->var_cnt, sizeof *dsc->vars,
descriptives_compare_dsc_vars, dsc);
- t = tab_create (nc, dsc->var_cnt + 1
, 0
);
+ t = tab_create (nc, dsc->var_cnt + 1);
tab_headers (t, 1, 0, 1, 0);
tab_box (t, TAL_1, TAL_1, -1, -1, 0, 0, nc - 1, dsc->var_cnt);
tab_box (t, -1, -1, -1, TAL_1, 1, 0, nc - 1, dsc->var_cnt);
tab_headers (t, 1, 0, 1, 0);
tab_box (t, TAL_1, TAL_1, -1, -1, 0, 0, nc - 1, dsc->var_cnt);
tab_box (t, -1, -1, -1, TAL_1, 1, 0, nc - 1, dsc->var_cnt);
diff --git
a/src/language/stats/examine.q
b/src/language/stats/examine.q
index 41a43abfe9a362c5e2f57f1d91718a93c33a437f..f415d0033017e7f8a510257c9541f327e7d26258 100644
(file)
--- a/
src/language/stats/examine.q
+++ b/
src/language/stats/examine.q
@@
-1131,7
+1131,7
@@
show_summary (const struct variable **dependent_var, int n_dep_var,
n_cols = heading_columns + 6;
n_cols = heading_columns + 6;
- tbl = tab_create (n_cols, n_rows
, 0
);
+ tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
@@
-1368,7
+1368,7
@@
show_descriptives (const struct variable **dependent_var,
n_cols = heading_columns + 2;
n_cols = heading_columns + 2;
- tbl = tab_create (n_cols, n_rows
, 0
);
+ tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
@@
-1680,7
+1680,7
@@
show_extremes (const struct variable **dependent_var,
n_cols = heading_columns + 2;
n_cols = heading_columns + 2;
- tbl = tab_create (n_cols, n_rows
, 0
);
+ tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
@@
-1885,7
+1885,7
@@
show_percentiles (const struct variable **dependent_var,
n_cols = heading_columns + n_percentiles;
n_cols = heading_columns + n_percentiles;
- tbl = tab_create (n_cols, n_rows
, 0
);
+ tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/frequencies.q
b/src/language/stats/frequencies.q
index 2ffeafe59eb7d0458e95ccf32e39b0f8ebbd71c1..e670c089b5c69c93a40ba52427a254d34c3b6732 100644
(file)
--- a/
src/language/stats/frequencies.q
+++ b/
src/language/stats/frequencies.q
@@
-1078,7
+1078,7
@@
dump_full (const struct variable *v, const struct variable *wv)
vf = get_var_freqs (v);
ft = &vf->tab;
n_categories = ft->n_valid + ft->n_missing;
vf = get_var_freqs (v);
ft = &vf->tab;
n_categories = ft->n_valid + ft->n_missing;
- t = tab_create (5 + lab, n_categories + 3
, 0
);
+ t = tab_create (5 + lab, n_categories + 3);
tab_headers (t, 0, 0, 2, 0);
aux = xmalloc (sizeof *aux);
tab_headers (t, 0, 0, 2, 0);
aux = xmalloc (sizeof *aux);
@@
-1192,7
+1192,7
@@
dump_condensed (const struct variable *v, const struct variable *wv)
vf = get_var_freqs (v);
ft = &vf->tab;
n_categories = ft->n_valid + ft->n_missing;
vf = get_var_freqs (v);
ft = &vf->tab;
n_categories = ft->n_valid + ft->n_missing;
- t = tab_create (4, n_categories + 2
, 0
);
+ t = tab_create (4, n_categories + 2);
tab_headers (t, 0, 0, 2, 0);
tab_text (t, 0, 1, TAB_CENTER | TAT_TITLE, _("Value"));
tab_headers (t, 0, 0, 2, 0);
tab_text (t, 0, 1, TAB_CENTER | TAT_TITLE, _("Value"));
@@
-1398,7
+1398,7
@@
dump_statistics (const struct variable *v, bool show_varname,
}
calc_stats (v, stat_value);
}
calc_stats (v, stat_value);
- t = tab_create (3, n_stats + n_percentiles + 2
, 0
);
+ t = tab_create (3, n_stats + n_percentiles + 2);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_1, TAL_1, -1, -1 , 0 , 0 , 2, tab_nr(t) - 1) ;
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_1, TAL_1, -1, -1 , 0 , 0 , 2, tab_nr(t) - 1) ;
diff --git
a/src/language/stats/npar-summary.c
b/src/language/stats/npar-summary.c
index a6666b0d97d2172db72f2f92982dcd0f27eb59fc..8e6f11a8efa3aeb20591c7bf3476b8096c00e292 100644
(file)
--- a/
src/language/stats/npar-summary.c
+++ b/
src/language/stats/npar-summary.c
@@
-102,7
+102,7
@@
do_summary_box (const struct descriptives *desc,
if ( desc ) columns += 5;
if ( quartiles ) columns += 3;
if ( desc ) columns += 5;
if ( quartiles ) columns += 3;
- table = tab_create (columns, 2 + n_vars
, 0
);
+ table = tab_create (columns, 2 + n_vars);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/oneway.q
b/src/language/stats/oneway.q
index de8817340f3078d2161e8f470b090cd8753638f0..ddb84d896fa1ac6701f8f4634071525a363ad3f9 100644
(file)
--- a/
src/language/stats/oneway.q
+++ b/
src/language/stats/oneway.q
@@
-259,7
+259,7
@@
show_anova_table (void)
struct tab_table *t;
struct tab_table *t;
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
@@
-370,7
+370,7
@@
show_descriptives (const struct dictionary *dict)
for ( v = 0; v < n_vars; ++v )
n_rows += group_proc_get (vars[v])->n_groups + 1;
for ( v = 0; v < n_vars; ++v )
n_rows += group_proc_get (vars[v])->n_groups + 1;
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 2, 0, 2, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 2, 0, 2, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
@@
-517,7
+517,7
@@
show_homogeneity (void)
struct tab_table *t;
struct tab_table *t;
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 1, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 1, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
@@
-577,7
+577,7
@@
show_contrast_coeffs (short *bad_contrast)
struct tab_table *t;
struct tab_table *t;
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 2, 0, 2, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 2, 0, 2, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
@@
-661,7
+661,7
@@
show_contrast_tests (short *bad_contrast)
struct tab_table *t;
struct tab_table *t;
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 3, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 3, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/regression.q
b/src/language/stats/regression.q
index fc67845dffce54c041db99fd6d69ea258e088f6d..84fd9e5787e17f1d57555bee40e30df475b6a0ab 100644
(file)
--- a/
src/language/stats/regression.q
+++ b/
src/language/stats/regression.q
@@
-149,7
+149,7
@@
reg_stats_r (pspp_linreg_cache * c)
rsq = c->ssm / c->sst;
adjrsq = 1.0 - (1.0 - rsq) * (c->n_obs - 1.0) / (c->n_obs - c->n_indeps);
std_error = sqrt (pspp_linreg_mse (c));
rsq = c->ssm / c->sst;
adjrsq = 1.0 - (1.0 - rsq) * (c->n_obs - 1.0) / (c->n_obs - c->n_indeps);
std_error = sqrt (pspp_linreg_mse (c));
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_2, TAL_2, -1, TAL_1, 0, 0, n_cols - 1, n_rows - 1);
tab_hline (t, TAL_2, 0, n_cols - 1, 1);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_2, TAL_2, -1, TAL_1, 0, 0, n_cols - 1, n_rows - 1);
tab_hline (t, TAL_2, 0, n_cols - 1, 1);
@@
-191,7
+191,7
@@
reg_stats_coeff (pspp_linreg_cache * c)
assert (c != NULL);
n_rows = c->n_coeffs + 3;
assert (c != NULL);
n_rows = c->n_coeffs + 3;
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_2, TAL_2, -1, TAL_1, 0, 0, n_cols - 1, n_rows - 1);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_2, TAL_2, -1, TAL_1, 0, 0, n_cols - 1, n_rows - 1);
@@
-288,7
+288,7
@@
reg_stats_anova (pspp_linreg_cache * c)
struct tab_table *t;
assert (c != NULL);
struct tab_table *t;
assert (c != NULL);
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
@@
-379,7
+379,7
@@
reg_stats_bcov (pspp_linreg_cache * c)
assert (c != NULL);
n_cols = c->n_indeps + 1 + 2;
n_rows = 2 * (c->n_indeps + 1);
assert (c != NULL);
n_cols = c->n_indeps + 1 + 2;
n_rows = 2 * (c->n_indeps + 1);
- t = tab_create (n_cols, n_rows
, 0
);
+ t = tab_create (n_cols, n_rows);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_2, TAL_2, -1, TAL_1, 0, 0, n_cols - 1, n_rows - 1);
tab_headers (t, 2, 0, 1, 0);
tab_dim (t, tab_natural_dimensions, NULL, NULL);
tab_box (t, TAL_2, TAL_2, -1, TAL_1, 0, 0, n_cols - 1, n_rows - 1);
diff --git
a/src/language/stats/reliability.q
b/src/language/stats/reliability.q
index 9d220b9d256a2bdbc7e7c466d8692fba3c8cef57..dfb81367912a3bcd96a25aa00bb964145a98f0ab 100644
(file)
--- a/
src/language/stats/reliability.q
+++ b/
src/language/stats/reliability.q
@@
-381,7
+381,7
@@
run_reliability (struct casereader *input, struct dataset *ds,
{
{
- struct tab_table *tab = tab_create(1, 1
, 0
);
+ struct tab_table *tab = tab_create(1, 1);
tab_dim (tab, tab_natural_dimensions, NULL, NULL);
tab_flags (tab, SOMF_NO_TITLE );
tab_dim (tab, tab_natural_dimensions, NULL, NULL);
tab_flags (tab, SOMF_NO_TITLE );
@@
-425,7
+425,7
@@
reliability_statistics (const struct reliability *rel)
int heading_columns = rol[rel->model].heading_cols;
int heading_rows = rol[rel->model].heading_rows;
int heading_columns = rol[rel->model].heading_cols;
int heading_rows = rol[rel->model].heading_rows;
- struct tab_table *tbl = tab_create (n_cols, n_rows
, 0
);
+ struct tab_table *tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
@@
-468,7
+468,7
@@
reliability_summary_total (const struct reliability *rel)
const int heading_rows = 1;
const int n_rows = rel->sc[0].n_items + heading_rows ;
const int heading_rows = 1;
const int n_rows = rel->sc[0].n_items + heading_rows ;
- struct tab_table *tbl = tab_create (n_cols, n_rows
, 0
);
+ struct tab_table *tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
@@
-678,7
+678,7
@@
case_processing_summary (casenumber n_valid, casenumber n_missing,
int heading_columns = 2;
int heading_rows = 1;
struct tab_table *tbl;
int heading_columns = 2;
int heading_rows = 1;
struct tab_table *tbl;
- tbl = tab_create (n_cols, n_rows
, 0
);
+ tbl = tab_create (n_cols, n_rows);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
tab_headers (tbl, heading_columns, 0, heading_rows, 0);
tab_dim (tbl, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/sign.c
b/src/language/stats/sign.c
index 07a2499e9f70ab2b850a8d7a7db1727d1b5a4bf5..d5970c6ff0a61297803374c92755762cdca1f6d0 100644
(file)
--- a/
src/language/stats/sign.c
+++ b/
src/language/stats/sign.c
@@
-52,7
+52,7
@@
output_frequency_table (const struct two_sample_test *t2s,
const struct dictionary *dict)
{
int i;
const struct dictionary *dict)
{
int i;
- struct tab_table *table = tab_create (3, 1 + 4 * t2s->n_pairs
, 0
);
+ struct tab_table *table = tab_create (3, 1 + 4 * t2s->n_pairs);
const struct variable *wv = dict_get_weight (dict);
const struct fmt_spec *wfmt = wv ? var_get_print_format (wv) : & F_8_0;
const struct variable *wv = dict_get_weight (dict);
const struct fmt_spec *wfmt = wv ? var_get_print_format (wv) : & F_8_0;
@@
-108,7
+108,7
@@
output_statistics_table (const struct two_sample_test *t2s,
const struct sign_test_params *param)
{
int i;
const struct sign_test_params *param)
{
int i;
- struct tab_table *table = tab_create (1 + t2s->n_pairs, 4
, 0
);
+ struct tab_table *table = tab_create (1 + t2s->n_pairs, 4);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/stats/t-test.q
b/src/language/stats/t-test.q
index 3b810f640270d63e0cb51748ff75bd3bda5aeb28..3d47bb81f8d7b0bfcfbb648e9fe2f49fb873af38 100644
(file)
--- a/
src/language/stats/t-test.q
+++ b/
src/language/stats/t-test.q
@@
-475,7
+475,7
@@
static void
ssbox_base_init (struct ssbox *this, int cols, int rows)
{
this->finalize = ssbox_base_finalize;
ssbox_base_init (struct ssbox *this, int cols, int rows)
{
this->finalize = ssbox_base_finalize;
- this->t = tab_create (cols, rows
, 0
);
+ this->t = tab_create (cols, rows);
tab_columns (this->t, SOM_COL_DOWN);
tab_headers (this->t, 0, 0, 1, 0);
tab_columns (this->t, SOM_COL_DOWN);
tab_headers (this->t, 0, 0, 1, 0);
@@
-1067,7
+1067,7
@@
trbox_base_init (struct trbox *self, size_t data_rows, int cols)
const size_t rows = 3 + data_rows;
self->finalize = trbox_base_finalize;
const size_t rows = 3 + data_rows;
self->finalize = trbox_base_finalize;
- self->t = tab_create (cols, rows
, 0
);
+ self->t = tab_create (cols, rows);
tab_headers (self->t, 0, 0, 3, 0);
tab_box (self->t, TAL_2, TAL_2, TAL_0, TAL_0, 0, 0, cols - 1, rows - 1);
tab_hline (self->t, TAL_2, 0, cols- 1, 3);
tab_headers (self->t, 0, 0, 3, 0);
tab_box (self->t, TAL_2, TAL_2, TAL_0, TAL_0, 0, 0, cols - 1, rows - 1);
tab_hline (self->t, TAL_2, 0, cols- 1, 3);
@@
-1091,7
+1091,7
@@
pscbox (struct t_test_proc *proc)
struct tab_table *table;
struct tab_table *table;
- table = tab_create (cols, rows
, 0
);
+ table = tab_create (cols, rows);
tab_columns (table, SOM_COL_DOWN);
tab_headers (table, 0, 0, 1, 0);
tab_columns (table, SOM_COL_DOWN);
tab_headers (table, 0, 0, 1, 0);
diff --git
a/src/language/stats/wilcoxon.c
b/src/language/stats/wilcoxon.c
index f145a0c4c8f27c118692a4a37e301efcf011a2a9..26d14ab8f3b803559c01696e03bf2cdd632b89ca 100644
(file)
--- a/
src/language/stats/wilcoxon.c
+++ b/
src/language/stats/wilcoxon.c
@@
-225,7
+225,7
@@
show_ranks_box (const struct wilcoxon_state *ws,
const struct variable *wv = dict_get_weight (dict);
const struct fmt_spec *wfmt = wv ? var_get_print_format (wv) : & F_8_0;
const struct variable *wv = dict_get_weight (dict);
const struct fmt_spec *wfmt = wv ? var_get_print_format (wv) : & F_8_0;
- struct tab_table *table = tab_create (5, 1 + 4 * t2s->n_pairs
, 0
);
+ struct tab_table *table = tab_create (5, 1 + 4 * t2s->n_pairs);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
@@
-306,7
+306,7
@@
show_tests_box (const struct wilcoxon_state *ws,
)
{
size_t i;
)
{
size_t i;
- struct tab_table *table = tab_create (1 + t2s->n_pairs, exact ? 5 : 3
, 0
);
+ struct tab_table *table = tab_create (1 + t2s->n_pairs, exact ? 5 : 3);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
tab_dim (table, tab_natural_dimensions, NULL, NULL);
diff --git
a/src/language/utilities/echo.c
b/src/language/utilities/echo.c
index 05353f81e6ad0e885c33c55fb7fa26a006613ad7..3d3c2c40e73ebde043d0be174f37205e41b3d5f8 100644
(file)
--- a/
src/language/utilities/echo.c
+++ b/
src/language/utilities/echo.c
@@
-33,7
+33,7
@@
cmd_echo (struct lexer *lexer, struct dataset *ds UNUSED)
if (lex_token (lexer) != T_STRING)
return CMD_FAILURE;
if (lex_token (lexer) != T_STRING)
return CMD_FAILURE;
- tab = tab_create(1, 1
, 0
);
+ tab = tab_create(1, 1);
tab_dim (tab, tab_natural_dimensions, NULL, NULL);
tab_flags (tab, SOMF_NO_TITLE );
tab_dim (tab, tab_natural_dimensions, NULL, NULL);
tab_flags (tab, SOMF_NO_TITLE );
diff --git
a/src/output/table.c
b/src/output/table.c
index 06cf47bb5ac15aa50e43feb1be4e59e1db6f6982..b3e0de7accfaf55b851850b7b523314da7220571 100644
(file)
--- a/
src/output/table.c
+++ b/
src/output/table.c
@@
-56,7
+56,7
@@
options_to_font (unsigned options)
/* Creates a table with NC columns and NR rows. */
struct tab_table *
/* Creates a table with NC columns and NR rows. */
struct tab_table *
-tab_create (int nc, int nr
, int reallocable UNUSED
)
+tab_create (int nc, int nr)
{
struct tab_table *t;
{
struct tab_table *t;
@@
-843,7
+843,7
@@
do_tab_output_text (struct tab_table *t, int options, char *text)
void
tab_output_text (int options, const char *text)
{
void
tab_output_text (int options, const char *text)
{
- struct tab_table *table = tab_create (1, 1
, 0
);
+ struct tab_table *table = tab_create (1, 1);
do_tab_output_text (table, options, pool_strdup (table->container, text));
}
do_tab_output_text (table, options, pool_strdup (table->container, text));
}
@@
-857,7
+857,7
@@
tab_output_text_format (int options, const char *format, ...)
struct tab_table *table;
va_list args;
struct tab_table *table;
va_list args;
- table = tab_create (1, 1
, 0
);
+ table = tab_create (1, 1);
va_start (args, format);
do_tab_output_text (table, options,
va_start (args, format);
do_tab_output_text (table, options,
diff --git
a/src/output/table.h
b/src/output/table.h
index 293c0c0d035619450c1da4ddbda3bbf077aecefa..e04da584b3e11a236206c8190ce1a7721eeaab53 100644
(file)
--- a/
src/output/table.h
+++ b/
src/output/table.h
@@
-126,7
+126,7
@@
struct tab_rendering
};
/* Tables. */
};
/* Tables. */
-struct tab_table *tab_create (int nc, int nr
, int reallocable
);
+struct tab_table *tab_create (int nc, int nr);
void tab_destroy (struct tab_table *);
void tab_ref (struct tab_table *);
void tab_resize (struct tab_table *, int nc, int nr);
void tab_destroy (struct tab_table *);
void tab_ref (struct tab_table *);
void tab_resize (struct tab_table *, int nc, int nr);