Added result_class parameter to tab_double and updated all callers. Removed tab_fixed
[pspp] / src / language / stats / npar-summary.c
index 2341761fd7df3e7e144da7c14b2311bd76a55440..332486adc8debc2626a5565d09971eb4d4c9115e 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2009, 2010, 2011 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 #include <config.h>
 
-#include <data/format.h>
-#include <output/tab.h>
-#include <data/casereader.h>
-#include <data/variable.h>
-#include "npar-summary.h"
-#include <math/moments.h>
-#include <data/case.h>
-#include <data/dictionary.h>
+#include "language/stats/npar-summary.h"
+
 #include <math.h>
-#include <minmax.h>
+
+#include "data/case.h"
+#include "data/casereader.h"
+#include "data/dictionary.h"
+#include "data/format.h"
+#include "data/variable.h"
+#include "math/moments.h"
+#include "output/tab.h"
+
+#include "gl/minmax.h"
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -161,11 +164,11 @@ do_summary_box (const struct descriptives *desc,
       col = 1;
       if (desc != NULL)
         {
-          tab_double (table, col++, 2 + v, 0, desc[v].n, fmt);
-          tab_double (table, col++, 2 + v, 0, desc[v].mean, fmt);
-          tab_double (table, col++, 2 + v, 0, desc[v].std_dev, fmt);
-          tab_double (table, col++, 2 + v, 0, desc[v].min, fmt);
-          tab_double (table, col++, 2 + v, 0, desc[v].max, fmt);
+          tab_double (table, col++, 2 + v, 0, desc[v].n, fmt, RC_OTHER);
+          tab_double (table, col++, 2 + v, 0, desc[v].mean, fmt, RC_OTHER);
+          tab_double (table, col++, 2 + v, 0, desc[v].std_dev, fmt, RC_OTHER);
+          tab_double (table, col++, 2 + v, 0, desc[v].min, fmt, RC_OTHER);
+          tab_double (table, col++, 2 + v, 0, desc[v].max, fmt, RC_OTHER);
         }
     }