X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Freliability.q;h=681669d18999fdac3c5516c9815b9079aae99dfb;hb=2cf38ce51a9f34961d68a75e0b312a591b5c9abf;hp=0e8165a45858eb1e75655d85c2d25d14e666c2d9;hpb=c6fe58a22249f4f486b42f35fd8bd537c91e8e6e;p=pspp-builds.git diff --git a/src/language/stats/reliability.q b/src/language/stats/reliability.q index 0e8165a4..681669d1 100644 --- a/src/language/stats/reliability.q +++ b/src/language/stats/reliability.q @@ -16,26 +16,27 @@ #include -#include "xalloc.h" -#include "xmalloca.h" +#include -#include "gettext.h" -#define _(msgid) gettext (msgid) -#define N_(msgid) msgid - -#include +#include +#include +#include #include #include -#include -#include -#include -#include - +#include #include - +#include +#include #include #include +#include "xalloc.h" +#include "xmalloca.h" + +#include "gettext.h" +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid + /* (headers) */ /* (specification) @@ -335,7 +336,7 @@ run_reliability (struct casereader *input, struct dataset *ds, struct cronbach *s = &rel->sc[si]; - s->totals_idx = casereader_get_value_cnt (input); + s->totals_idx = caseproto_get_n_widths (casereader_get_proto (input)); input = casereader_create_append_numeric (input, append_sum, s, NULL); @@ -385,7 +386,7 @@ run_reliability (struct casereader *input, struct dataset *ds, tab_dim (tab, tab_natural_dimensions, NULL); tab_flags (tab, SOMF_NO_TITLE ); - tab_text(tab, 0, 0, TAT_PRINTF, "Scale: %s", ds_cstr (&rel->scale_name)); + tab_text_format (tab, 0, 0, 0, "Scale: %s", ds_cstr (&rel->scale_name)); tab_submit(tab); } @@ -719,8 +720,7 @@ case_processing_summary (casenumber n_valid, casenumber n_missing, tab_text (tbl, heading_columns, 0, TAB_CENTER | TAT_TITLE, _("N")); - tab_text (tbl, heading_columns + 1, 0, TAB_CENTER | TAT_TITLE | TAT_PRINTF, - _("%%")); + tab_text (tbl, heading_columns + 1, 0, TAB_CENTER | TAT_TITLE, _("%")); total = n_missing + n_valid;