X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fdescriptives.c;h=0cee83e06b79b018feeeb4834e46af87fabc1f89;hb=3b54533821614d17afc61f1cd3b87d3a06fbf4da;hp=2738fb137ee6b558e44e28ec1d951a8064d4c8d0;hpb=5cab4cf3322f29c0ed7134d23740e07382914f20;p=pspp diff --git a/src/language/stats/descriptives.c b/src/language/stats/descriptives.c index 2738fb137e..0cee83e06b 100644 --- a/src/language/stats/descriptives.c +++ b/src/language/stats/descriptives.c @@ -76,7 +76,7 @@ struct dsc_trns size_t var_cnt; /* Number of variables. */ enum dsc_missing_type missing_type; /* Treatment of missing values. */ enum mv_class exclude; /* Classes of missing values to exclude. */ - struct variable *filter; /* Dictionary FILTER BY variable. */ + const struct variable *filter; /* Dictionary FILTER BY variable. */ struct casereader *z_reader; /* Reader for count, mean, stddev. */ casenumber count; /* Number left in this SPLIT FILE group.*/ bool ok; @@ -272,7 +272,7 @@ cmd_descriptives (struct lexer *lexer, struct dataset *ds) else { enum dsc_statistic s = match_statistic (lexer); - if (s == DSC_NONE ) + if (s == DSC_NONE) { lex_error (lexer, NULL); goto error; @@ -292,7 +292,7 @@ cmd_descriptives (struct lexer *lexer, struct dataset *ds) else { dsc->sort_by_stat = match_statistic (lexer); - if (dsc->sort_by_stat == DSC_NONE ) + if (dsc->sort_by_stat == DSC_NONE) dsc->sort_by_stat = DSC_MEAN; } if (lex_match (lexer, T_LPAREN)) @@ -656,7 +656,9 @@ descriptives_trns_proc (void *trns_, struct ccase **c, { if (t->ok) { - msg (SE, _("Internal error processing Z scores")); + msg (SE, _("Internal error processing Z scores. " + "Please report this to %s."), + PACKAGE_BUGREPORT); t->ok = false; } descriptives_set_all_sysmis_zscores (t, *c); @@ -725,7 +727,7 @@ setup_z_trns (struct dsc_proc *dsc, struct dataset *ds) t->z_score_cnt = cnt; t->missing_type = dsc->missing_type; t->exclude = dsc->exclude; - if ( t->missing_type == DSC_LISTWISE ) + if (t->missing_type == DSC_LISTWISE) { t->var_cnt = dsc->var_cnt; t->vars = xnmalloc (t->var_cnt, sizeof *t->vars); @@ -778,7 +780,7 @@ static void calc_descriptives (struct dsc_proc *dsc, struct casereader *group, struct dataset *ds) { - struct variable *filter = dict_get_filter (dataset_dict (ds)); + const struct variable *filter = dict_get_filter (dataset_dict (ds)); struct casereader *pass1, *pass2; casenumber count; struct ccase *c; @@ -1002,7 +1004,7 @@ display (struct dsc_proc *dsc) table, PIVOT_AXIS_ROW, N_("Variable")); for (size_t i = 0; i < dsc->var_cnt; i++) { - struct dsc_var *dv = &dsc->vars[i]; + const struct dsc_var *dv = &dsc->vars[i]; int row = pivot_category_create_leaf (variables->root, pivot_value_new_variable (dv->v));