fixed computation of sample covariance
[pspp] / src / language / dictionary / vector.c
index 90f245c85f4b84b9ca54490667fa7fd751aeadd9..17cbb1a64d5ae0984c3566dab13316fc46f933e2 100644 (file)
 
 #include <stdlib.h>
 
-#include <procedure.h>
+#include <data/procedure.h>
 #include <data/dictionary.h>
 #include <data/variable.h>
 #include <language/command.h>
 #include <language/lexer/lexer.h>
+#include <language/lexer/variable-parser.h>
 #include <libpspp/alloc.h>
+#include <libpspp/assertion.h>
 #include <libpspp/message.h>
 #include <libpspp/misc.h>
 #include <libpspp/str.h>
@@ -176,7 +178,7 @@ cmd_vector (void)
                  v[i] = dict_create_var_assert (default_dict, name, 0);
                }
               if (!dict_create_vector (default_dict, cp, v, nv))
-                assert (0);
+                NOT_REACHED ();
              cp += strlen (cp) + 1;
            }
           free (v);