projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update INSTALL file
[pspp-builds.git]
/
src
/
data
/
format.h
diff --git
a/src/data/format.h
b/src/data/format.h
index 3615612898ab2853d219d53269c85edc1db417e9..049ffc6fdc9f7d903af41dad566521f24d287d41 100644
(file)
--- a/
src/data/format.h
+++ b/
src/data/format.h
@@
-69,6
+69,8
@@
struct fmt_spec
int d; /* Number of implied decimal places. */
};
int d; /* Number of implied decimal places. */
};
+/* Maximum width of any numeric format. */
+#define FMT_MAX_NUMERIC_WIDTH 40
/* A numeric output style. */
struct fmt_number_style
/* A numeric output style. */
struct fmt_number_style
@@
-108,6
+110,10
@@
char *fmt_to_string (const struct fmt_spec *, char s[FMT_STRING_LEN_MAX + 1]);
bool fmt_equal (const struct fmt_spec *, const struct fmt_spec *);
void fmt_resize (struct fmt_spec *, int new_width);
bool fmt_equal (const struct fmt_spec *, const struct fmt_spec *);
void fmt_resize (struct fmt_spec *, int new_width);
+void fmt_fix (struct fmt_spec *, bool for_input);
+void fmt_fix_input (struct fmt_spec *);
+void fmt_fix_output (struct fmt_spec *);
+
/* Format types. */
const char *fmt_name (enum fmt_type) PURE_FUNCTION;
bool fmt_from_name (const char *name, enum fmt_type *);
/* Format types. */
const char *fmt_name (enum fmt_type) PURE_FUNCTION;
bool fmt_from_name (const char *name, enum fmt_type *);
@@
-158,4
+164,6
@@
int fmt_grouping_char (const struct fmt_number_style *, enum fmt_type);
void fmt_set_decimal (struct fmt_number_style *, char);
void fmt_set_decimal (struct fmt_number_style *, char);
+extern const struct fmt_spec F_8_0 ;
+
#endif /* data/format.h */
#endif /* data/format.h */