X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fformat.h;h=1f6f3fb993b8bed51f7fbc84eefae64af729f0d6;hb=f3cf52b51e6d89e94190de22b1fa813e8d3746f7;hp=7b8b432eec954ecd07aafff1de4462b1297bb1bc;hpb=05e356b2a3087e819ef3b5388e29c822f41502e1;p=pspp diff --git a/src/format.h b/src/format.h index 7b8b432eec..1f6f3fb993 100644 --- a/src/format.h +++ b/src/format.h @@ -14,15 +14,15 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #if !format_h #define format_h 1 /* 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); @@ -116,8 +119,10 @@ int get_format_var_width (const struct fmt_spec *); int parse_string_as_format (const char *s, int len, const struct fmt_spec *fp, int fc, union value *v); int translate_fmt (int spss); -void data_out (char *s, const struct fmt_spec *fp, const union value *v); +bool 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 */