format: New functions fmt_change_width(), fmt_change_decimals().
[pspp] / src / data / format.h
index 7df374453def01b5392c2149c57bb203f2723d0e..8057dc6127602bb87a70d2c8338e77c530f35973 100644 (file)
@@ -20,8 +20,8 @@
 /* Display format types. */
 
 #include <stdbool.h>
-#include <libpspp/str.h>
-#include <data/val-type.h>
+#include "data/val-type.h"
+#include "libpspp/str.h"
 
 /* Format type categories.
 
@@ -95,6 +95,9 @@ void fmt_fix (struct fmt_spec *, bool for_input);
 void fmt_fix_input (struct fmt_spec *);
 void fmt_fix_output (struct fmt_spec *);
 
+void fmt_change_width (struct fmt_spec *, int width, bool for_input);
+void fmt_change_decimals (struct fmt_spec *, int decimals, bool for_input);
+
 /* Format types. */
 bool is_fmt_type (enum fmt_type);
 
@@ -125,6 +128,7 @@ int fmt_to_io (enum fmt_type) PURE_FUNCTION;
 bool fmt_from_io (int io, enum fmt_type *);
 
 const char *fmt_date_template (enum fmt_type) PURE_FUNCTION;
+const char *fmt_gui_name (enum fmt_type);
 \f
 /* Format settings.