X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fformat.h;h=988c8f8c6ae982941954de882d346b7a2c6b4a9b;hb=5ff91bd55867848d448c2f09bc7057cc1fb77b18;hp=f1a11a1fa8ffc8ef3d2e06579ddec693f8fde006;hpb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;p=pspp diff --git a/src/format.h b/src/format.h index f1a11a1fa8..988c8f8c6a 100644 --- a/src/format.h +++ b/src/format.h @@ -22,7 +22,7 @@ /* Display format types. */ -#include "bool.h" +#include /* See the definitions of these functions and variables when modifying this list: @@ -104,6 +104,9 @@ enum fmt_parse_flags FMTP_SUPPRESS_ERRORS = 002 /* 1=Do not emit error messages. */ }; +/* Common formats. */ +extern const struct fmt_spec f8_2; /* F8.2. */ + int parse_format_specifier (struct fmt_spec *input, enum fmt_parse_flags); int parse_format_specifier_name (const char **cp, enum fmt_parse_flags); int check_input_specifier (const struct fmt_spec *spec, int emit_error); @@ -119,5 +122,7 @@ int translate_fmt (int spss); void data_out (char *s, const struct fmt_spec *fp, const union value *v); char *fmt_to_string (const struct fmt_spec *); void num_to_string (double v, char *s, int w, int d); +struct fmt_spec make_input_format (int type, int w, int d); +struct fmt_spec make_output_format (int type, int w, int d); #endif /* !format_h */