int syntax;
struct fmt_settings styles;
+ double small;
enum settings_output_devices output_routing[SETTINGS_N_OUTPUT_TYPES];
ENHANCED, /* global_algorithm */
ENHANCED, /* syntax */
FMT_SETTINGS_INIT, /* styles */
+ .0001, /* small */
/* output_routing */
{SETTINGS_DEVICE_LISTING | SETTINGS_DEVICE_TERMINAL,
settings_copy (struct settings *dst, const struct settings *src)
{
*dst = *src;
- fmt_settings_copy (&dst->styles, &src->styles);
+ dst->styles = fmt_settings_copy (&src->styles);
}
/* Returns a copy of the current settings. */
return &the_settings.styles;
}
+double
+settings_get_small (void)
+{
+ return the_settings.small;
+}
+
+void
+settings_set_small (double small)
+{
+ the_settings.small = small;
+}
+
/* Returns a string of the form "$#,###.##" according to FMT,
which must be of type FMT_DOLLAR. The caller must free the
string. */