DEBUG EVALUATE: Use output_log() instead of printf().
[pspp] / src / language / expressions / helpers.c
index 6e73887285a8d79543b21573ee84d7fc09c415ed..4a0a01b97b680907b0c1efe33f9bb1010e68891a 100644 (file)
@@ -45,7 +45,8 @@ expr_ymd_to_ofs (double year, double month, double day)
       return SYSMIS;
     }
 
-  ofs = calendar_gregorian_to_offset (y, m, d, &error);
+  ofs = calendar_gregorian_to_offset (y, m, d, settings_get_fmt_settings (),
+                                      &error);
   if (error != NULL)
     {
       msg (SE, "%s", error);
@@ -363,7 +364,8 @@ add_months (double date, int months, enum date_sum_method method)
   if (method == SUM_CLOSEST && d > calendar_days_in_month (y, m))
     d = calendar_days_in_month (y, m);
 
-  output = calendar_gregorian_to_offset (y, m, d, &error);
+  output = calendar_gregorian_to_offset (y, m, d, settings_get_fmt_settings (),
+                                         &error);
   if (output != SYSMIS)
     output = (output * DAY_S) + fmod (date, DAY_S);
   else
@@ -664,7 +666,7 @@ npdf_beta (double x, double a, double b, double lambda)
     }
 }
 
-double
+static double
 round__ (double x, double mult, double fuzzbits, double adjustment)
 {
   if (fuzzbits <= 0)