Refactor SET and SHOW commands so it's harder to forget implementing SHOW.
[pspp] / src / data / settings.c
index 34649de73c3ed54d44e712afba1efc6dcfbc795a..313fed0baf191821434d0cc91de087ebb61bc262 100644 (file)
@@ -305,6 +305,13 @@ settings_set_include (bool include)
   the_settings.include = include;
 }
 
+/* Returns the year that starts the epoch. */
+int
+settings_get_epoch (void)
+{
+  return the_settings.styles.epoch;
+}
+
 /* Sets the year that starts the epoch. */
 void
 settings_set_epoch (int epoch)