From: Ben Pfaff Date: Tue, 11 Aug 2009 05:01:16 +0000 (-0700) Subject: Delete tab_create()'s unused third parameter. X-Git-Tag: sid-i386-build98~7 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7878e5e2f2d1045bba2483ab9a752ceae50086f3;p=pspp-builds.git Delete tab_create()'s unused third parameter. This parameter was used a long time ago, but it is no longer needed, so remove it. --- diff --git a/src/language/data-io/data-parser.c b/src/language/data-io/data-parser.c index b1592950..44054267 100644 --- 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; - 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")); @@ -679,7 +679,7 @@ dump_delimited_table (const struct data_parser *parser, 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")); diff --git a/src/language/data-io/print.c b/src/language/data-io/print.c index f7a3d152..897c10cc 100644 --- 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); - 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); diff --git a/src/language/dictionary/split-file.c b/src/language/dictionary/split-file.c index c0349d02..5d3650e3 100644 --- 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; - 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); diff --git a/src/language/dictionary/sys-file-info.c b/src/language/dictionary/sys-file-info.c index 0a7123e9..1202045d 100644 --- 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); - 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)); @@ -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); - 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")); @@ -389,7 +389,7 @@ display_variables (const struct variable **vl, size_t n, int flags) 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")); @@ -483,7 +483,7 @@ display_data_file_attributes (struct attrset *set, int flags) 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); @@ -718,7 +718,7 @@ display_vectors (const struct dictionary *dict, int sorted) 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); diff --git a/src/language/stats/binomial.c b/src/language/stats/binomial.c index 68a747bb..bc87a94d 100644 --- 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; - 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); diff --git a/src/language/stats/chisquare.c b/src/language/stats/chisquare.c index 71857cfb..bc1b6474 100644 --- 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; } - 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)); @@ -216,7 +216,7 @@ create_combo_frequency_table (const struct chisquare_test *test) 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")); @@ -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; - 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); diff --git a/src/language/stats/crosstabs.q b/src/language/stats/crosstabs.q index 2b45cf14..ad278eeb 100644 --- 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; - 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")); @@ -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, - (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. */ @@ -1226,8 +1225,7 @@ create_chisq_table (struct pivot_table *pt) 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.")); @@ -1254,7 +1252,7 @@ create_sym_table (struct pivot_table *pt) 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.")); @@ -1276,8 +1274,7 @@ create_risk_table (struct pivot_table *pt) { 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.")); @@ -1302,7 +1299,7 @@ create_direct_table (struct pivot_table *pt) 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.")); diff --git a/src/language/stats/descriptives.c b/src/language/stats/descriptives.c index c5d46964..d87410fb 100644 --- a/src/language/stats/descriptives.c +++ b/src/language/stats/descriptives.c @@ -552,7 +552,7 @@ dump_z_table (struct dsc_proc *dsc) 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); @@ -873,7 +873,7 @@ display (struct dsc_proc *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); diff --git a/src/language/stats/examine.q b/src/language/stats/examine.q index 41a43abf..f415d003 100644 --- 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; - 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); @@ -1368,7 +1368,7 @@ show_descriptives (const struct variable **dependent_var, 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); @@ -1680,7 +1680,7 @@ show_extremes (const struct variable **dependent_var, 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); @@ -1885,7 +1885,7 @@ show_percentiles (const struct variable **dependent_var, 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); diff --git a/src/language/stats/frequencies.q b/src/language/stats/frequencies.q index 2ffeafe5..e670c089 100644 --- 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; - 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); @@ -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; - 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")); @@ -1398,7 +1398,7 @@ dump_statistics (const struct variable *v, bool show_varname, } 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) ; diff --git a/src/language/stats/npar-summary.c b/src/language/stats/npar-summary.c index a6666b0d..8e6f11a8 100644 --- 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; - table = tab_create (columns, 2 + n_vars, 0); + table = tab_create (columns, 2 + n_vars); tab_dim (table, tab_natural_dimensions, NULL, NULL); diff --git a/src/language/stats/oneway.q b/src/language/stats/oneway.q index de881734..ddb84d89 100644 --- a/src/language/stats/oneway.q +++ b/src/language/stats/oneway.q @@ -259,7 +259,7 @@ show_anova_table (void) 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); @@ -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; - 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); @@ -517,7 +517,7 @@ show_homogeneity (void) 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); @@ -577,7 +577,7 @@ show_contrast_coeffs (short *bad_contrast) 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); @@ -661,7 +661,7 @@ show_contrast_tests (short *bad_contrast) 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); diff --git a/src/language/stats/regression.q b/src/language/stats/regression.q index fc67845d..84fd9e57 100644 --- 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)); - 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); @@ -191,7 +191,7 @@ reg_stats_coeff (pspp_linreg_cache * c) 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); @@ -288,7 +288,7 @@ reg_stats_anova (pspp_linreg_cache * c) 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); @@ -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); - 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); diff --git a/src/language/stats/reliability.q b/src/language/stats/reliability.q index 9d220b9d..dfb81367 100644 --- 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 ); @@ -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; - 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); @@ -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 ; - 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); @@ -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; - 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); diff --git a/src/language/stats/sign.c b/src/language/stats/sign.c index 07a2499e..d5970c6f 100644 --- 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; - 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; @@ -108,7 +108,7 @@ output_statistics_table (const struct two_sample_test *t2s, 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); diff --git a/src/language/stats/t-test.q b/src/language/stats/t-test.q index 3b810f64..3d47bb81 100644 --- 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; - 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); @@ -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; - 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); @@ -1091,7 +1091,7 @@ pscbox (struct t_test_proc *proc) 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); diff --git a/src/language/stats/wilcoxon.c b/src/language/stats/wilcoxon.c index f145a0c4..26d14ab8 100644 --- 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; - 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); @@ -306,7 +306,7 @@ show_tests_box (const struct wilcoxon_state *ws, ) { 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); diff --git a/src/language/utilities/echo.c b/src/language/utilities/echo.c index 05353f81..3d3c2c40 100644 --- 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; - 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 ); diff --git a/src/output/table.c b/src/output/table.c index 06cf47bb..b3e0de7a 100644 --- 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 * -tab_create (int nc, int nr, int reallocable UNUSED) +tab_create (int nc, int nr) { 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) { - 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)); } @@ -857,7 +857,7 @@ tab_output_text_format (int options, const char *format, ...) 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, diff --git a/src/output/table.h b/src/output/table.h index 293c0c0d..e04da584 100644 --- a/src/output/table.h +++ b/src/output/table.h @@ -126,7 +126,7 @@ struct tab_rendering }; /* 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);