73 |
|
|
74 |
union value; |
union value; |
75 |
|
|
76 |
/* Maximum length of formatted value, in character. */ |
/* Maximum length of formatted value, in characters. */ |
77 |
#define MAX_FORMATTED_LEN 256 |
#define MAX_FORMATTED_LEN 256 |
78 |
|
|
79 |
int parse_format_specifier (struct fmt_spec *input, int allow_xt); |
/* Flags for parsing formats. */ |
80 |
int parse_format_specifier_name (const char **cp, int allow_xt); |
enum fmt_parse_flags |
81 |
int check_input_specifier (const struct fmt_spec *spec); |
{ |
82 |
int check_output_specifier (const struct fmt_spec *spec); |
FMTP_ALLOW_XT = 001, /* 1=Allow X and T formats. */ |
83 |
|
FMTP_SUPPRESS_ERRORS = 002 /* 1=Do not emit error messages. */ |
84 |
|
}; |
85 |
|
|
86 |
|
int parse_format_specifier (struct fmt_spec *input, enum fmt_parse_flags); |
87 |
|
int parse_format_specifier_name (const char **cp, enum fmt_parse_flags); |
88 |
|
int check_input_specifier (const struct fmt_spec *spec, int emit_error); |
89 |
|
int check_output_specifier (const struct fmt_spec *spec, int emit_error); |
90 |
int check_string_specifier (const struct fmt_spec *spec, int min_len); |
int check_string_specifier (const struct fmt_spec *spec, int min_len); |
91 |
void convert_fmt_ItoO (const struct fmt_spec *input, struct fmt_spec *output); |
void convert_fmt_ItoO (const struct fmt_spec *input, struct fmt_spec *output); |
92 |
int get_format_var_width (const struct fmt_spec *); |
int get_format_var_width (const struct fmt_spec *); |