expressions: Major work to improve error messages.
[pspp] / src / data / calendar.h
index ce6d3a314126226cfd56ba82721e64f000ecc83d..ce3fcc2ee352f73193a44895fcaa70d63548a98e 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
 PSPP - a program for statistical analysis.
 Copyright (C) 2017 Free Software Foundation, Inc.
 
@@ -19,7 +19,16 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #ifndef CALENDAR_H
 #define CALENDAR_H 1
 
-double calendar_gregorian_to_offset (int y, int m, int d, char **errorp);
+struct fmt_settings;
+
+int *calendar_gregorian_adjust (int *y, int *m, int *d,
+                                const struct fmt_settings *);
+int calendar_raw_gregorian_to_offset (int y, int m, int d);
+
+double calendar_gregorian_to_offset (int y, int m, int d,
+                                     const struct fmt_settings *,
+                                     char **errorp);
+
 void calendar_offset_to_gregorian (int ofs, int *y, int *m, int *d, int *yd);
 int calendar_offset_to_year (int ofs);
 int calendar_offset_to_month (int ofs);