Change "union value" to dynamically allocate long strings.
[pspp-builds.git] / src / language / stats / reliability.q
index 0e8165a45858eb1e75655d85c2d25d14e666c2d9..166a4dfae129fd2b59f3bb31b494be5a47d31882 100644 (file)
 
 #include <config.h>
 
-#include "xalloc.h"
-#include "xmalloca.h"
+#include <math.h>
 
-#include "gettext.h"
-#define _(msgid) gettext (msgid)
-#define N_(msgid) msgid
-
-#include <data/variable.h>
+#include <data/case.h>
+#include <data/casegrouper.h>
+#include <data/casereader.h>
 #include <data/dictionary.h>
 #include <data/procedure.h>
-#include <data/casereader.h>
-#include <data/casegrouper.h>
-#include <math/moments.h>
-#include <data/case.h>
-
+#include <data/variable.h>
 #include <language/command.h>
-
+#include <libpspp/misc.h>
+#include <math/moments.h>
 #include <output/manager.h>
 #include <output/table.h>
 
+#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);