X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fsettings.c;h=c70635cec03fc06da0dd7c472a8da626e2010fd6;hb=4f9ffb2d8002963c99b6b63edc82cf55608a887b;hp=7d7934af9240ccaaff1df4ce0ed0270647882cdc;hpb=540e5b39fe6617203c86f4b582f35537e0fe90ef;p=pspp diff --git a/src/data/settings.c b/src/data/settings.c index 7d7934af92..c70635cec0 100644 --- a/src/data/settings.c +++ b/src/data/settings.c @@ -74,6 +74,7 @@ struct settings struct fmt_spec default_format; bool testing_mode; int fuzzbits; + int scalemin; int cmd_algorithm; int global_algorithm; @@ -122,6 +123,7 @@ static struct settings the_settings = { .default_format = { .type = FMT_F, .w = 8, .d = 2 }, .testing_mode = false, .fuzzbits = 6, + .scalemin = 24, .cmd_algorithm = ENHANCED, .global_algorithm = ENHANCED, .syntax = ENHANCED, @@ -548,6 +550,18 @@ settings_set_fuzzbits (int fuzzbits) 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)