/* Format of reals in output (SET WRB). */
enum float_format output_float_format;
+ /* MATRIX...END MATRIX settings. */
+ enum settings_mdisplay mdisplay;
+
int viewlength;
int viewwidth;
bool safer_mode;
struct fmt_spec default_format;
bool testing_mode;
int fuzzbits;
+ int scalemin;
int cmd_algorithm;
int global_algorithm;
.input_float_format = FLOAT_NATIVE_DOUBLE,
.output_integer_format = INTEGER_NATIVE,
.output_float_format = FLOAT_NATIVE_DOUBLE,
+ .mdisplay = SETTINGS_MDISPLAY_TEXT,
.viewlength = 24,
.viewwidth = 79,
.safer_mode = false,
.default_format = { .type = FMT_F, .w = 8, .d = 2 },
.testing_mode = false,
.fuzzbits = 6,
+ .scalemin = 24,
.cmd_algorithm = ENHANCED,
.global_algorithm = ENHANCED,
.syntax = ENHANCED,
the_settings.include = include;
}
+/* Returns the year that starts the epoch. */
+int
+settings_get_epoch (void)
+{
+ return the_settings.styles.epoch;
+}
+
/* Sets the year that starts the epoch. */
void
settings_set_epoch (int epoch)
the_settings.fuzzbits = fuzzbits;
}
+int
+settings_get_scalemin (void)
+{
+ return the_settings.scalemin;
+}
+
+void
+settings_set_scalemin (int scalemin)
+{
+ the_settings.scalemin = scalemin;
+}
+
/* Return the current algorithm setting */
enum behavior_mode
settings_get_algorithm (void)
the_settings.styles.decimal = decimal;
}
+void
+settings_set_include_leading_zero (bool include_leading_zero)
+{
+ the_settings.styles.include_leading_zero = include_leading_zero;
+}
+
const struct fmt_settings *
settings_get_fmt_settings (void)
{
{
the_settings.show_variables = s;
}
+
+enum settings_mdisplay
+settings_get_mdisplay (void)
+{
+ return the_settings.mdisplay;
+}
+
+void
+settings_set_mdisplay (enum settings_mdisplay mdisplay)
+{
+ the_settings.mdisplay = mdisplay;
+}