X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fsettings.h;h=3c33a8798505cc09f451fcf7e10ebf33ebf33fa2;hb=f1696fab032a5ae5c44e3a3dedba343fce9ffd5c;hp=5ca015263531f8685b48ab93be4fc0a6fb4201ac;hpb=def7e6026513a3ee7c2b38416b30a2e890e34311;p=pspp diff --git a/src/settings.h b/src/settings.h index 5ca0152635..3c33a87985 100644 --- a/src/settings.h +++ b/src/settings.h @@ -139,6 +139,7 @@ int get_viewlength(void); int get_viewwidth(void); void init_settings(void) ; +void done_settings(void) ; /* Whether pspp can erase and overwrite files */ int safer_mode(void); @@ -168,6 +169,9 @@ char *get_cprompt(void); /* Whether we echo commands to the listing file/printer;*/ int get_echo(void); +/* What year to use as the start of the epoch. */ +int get_epoch (void); + /* If echo is on, whether commands from include files are echoed */ int get_include(void); @@ -227,11 +231,30 @@ const char *get_pager(void); #endif /* !USE_INTERNAL_PAGER */ -/* Return 1 if the seed has been set since the last time this function - was called. - Fill the value pointed to by seed with the seed . -*/ -int seed_is_set(unsigned long *seed); +#include +gsl_rng *get_rng (void); + + +enum {ENHANCED,COMPATIBLE}; + + +/* Set the algorithm option globally */ +void set_algorithm(int x); + +/* Set the algorithm option for this command only */ +void set_cmd_algorithm(int x); + +/* Unset the algorithm option for this command */ +void unset_cmd_algorithm(void); + +/* Return the current algorithm setting */ +int get_algorithm(void); + +/* Set the syntax option */ +void set_syntax(int x); + +/* Get the current syntax setting */ +int get_syntax(void); #endif /* !settings_h */