Added functions to compute covariance matrix.
[pspp-builds.git] / src / math / group.c
index 154e6f882ffd7341693a6590a3932eb990b111ce..29c5ab23db4b7bde28a7c7f2657dba7ede4e8533 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <config.h>
 #include <stdlib.h>
-#include <libpspp/alloc.h>
 #include <libpspp/compiler.h>
 #include <libpspp/hash.h>
 #include "group.h"
 #include <data/variable.h>
 #include <libpspp/misc.h>
 
+#include "xalloc.h"
 
 /* Return -1 if the id of a is less than b; +1 if greater than and
    0 if equal */
 int
-compare_group(const struct group_statistics *a,
+compare_group (const struct group_statistics *a,
                 const struct group_statistics *b,
                 int width)
 {
@@ -39,7 +39,7 @@ compare_group(const struct group_statistics *a,
 
 
 unsigned
-hash_group(const struct group_statistics *g, int width)
+hash_group (const struct group_statistics *g, int width)
 {
   unsigned id_hash;
 
@@ -50,7 +50,7 @@ hash_group(const struct group_statistics *g, int width)
 
 
 void
-free_group(struct group_statistics *v, void *aux UNUSED)
+free_group (struct group_statistics *v, void *aux UNUSED)
 {
   free(v);
 }