Changed int to bool in dict_get_weight and sort_active_file_in_place
[pspp-builds.git] / src / math / levene.c
index 105fc09303e5cce49bd797f1c9509a3278e77408..920440103b4d5b33bcb6721746b1048591f61693 100644 (file)
 
 #include <config.h>
 #include "levene.h"
-#include "message.h"
-#include "case.h"
-#include "casefile.h"
-#include "dictionary.h"
+#include <libpspp/message.h>
+#include <data/case.h>
+#include <data/casefile.h>
+#include <data/dictionary.h>
 #include "group-proc.h"
-#include "hash.h"
-#include "str.h"
-#include "variable.h"
-#include "procedure.h"
-#include "alloc.h"
-#include "misc.h"
+#include <libpspp/hash.h>
+#include <libpspp/str.h>
+#include <data/variable.h>
+#include <data/procedure.h>
+#include <libpspp/alloc.h>
+#include <libpspp/misc.h>
 #include "group.h"
 
 #include <math.h>
@@ -187,11 +187,11 @@ static int
 levene_calc (const struct ccase *c, void *_l)
 {
   size_t i;
-  int warn = 0;
+  bool warn = false;
   struct levene_info *l = (struct levene_info *) _l;
   const union value *gv = case_data (c, l->v_indep->fv);
   struct group_statistics key;
-  double weight = dict_get_case_weight(default_dict,c,&warn); 
+  double weight = dict_get_case_weight (default_dict, c, &warn); 
 
   /* Skip the entire case if /MISSING=LISTWISE is set */
   if ( l->missing == LEV_LISTWISE ) 
@@ -291,11 +291,11 @@ static int
 levene2_calc (const struct ccase *c, void *_l)
 {
   size_t i;
-  int warn = 0;
+  bool warn = false;
 
   struct levene_info *l = (struct levene_info *) _l;
 
-  double weight = dict_get_case_weight(default_dict,c,&warn); 
+  double weight = dict_get_case_weight (default_dict, c, &warn); 
 
   const union value *gv = case_data (c, l->v_indep->fv);
   struct group_statistics key;