9ef278fc509e88f8b9fb7b52b6e97edeeb4671f3
[pspp-builds.git] / src / data / settings.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17 #if !settings_h
18 #define settings_h 1
19
20 #include <stdbool.h>
21 #include <stddef.h>
22
23 void settings_init (int *, int *);
24 void settings_done (void);
25
26 int get_viewlength (void);
27 void set_viewlength (int);
28
29 int get_viewwidth (void);
30 void set_viewwidth (int);
31
32 bool get_safer_mode (void);
33 void set_safer_mode (void);
34
35 bool get_echo (void);
36 void set_echo (bool);
37 bool get_include (void);
38 void set_include (bool);
39
40 int get_epoch (void);
41 void set_epoch (int);
42
43 bool get_errorbreak (void);
44 void set_errorbreak (bool);
45
46 bool get_error_routing_to_terminal (void);
47 void set_error_routing_to_terminal (bool);
48 bool get_error_routing_to_listing (void);
49 void set_error_routing_to_listing (bool);
50
51 bool get_scompression (void);
52 void set_scompression (bool);
53
54 bool get_undefined (void);
55 void set_undefined (bool);
56 double get_blanks (void);
57 void set_blanks (double);
58
59 int get_mxwarns (void);
60 void set_mxwarns (int);
61 int get_mxerrs (void);
62 void set_mxerrs (int);
63
64 bool get_printback (void);
65 void set_printback (bool);
66 bool get_mprint (void);
67 void set_mprint (bool);
68
69 int get_mxloops (void);
70 void set_mxloops (int);
71
72 bool get_nulline (void);
73 void set_nulline (bool);
74
75 char get_endcmd (void);
76 void set_endcmd (char);
77
78 size_t get_workspace (void);
79 size_t get_workspace_cases (size_t value_cnt);
80 void set_workspace (size_t);
81
82 const struct fmt_spec *get_format (void);
83 void set_format (const struct fmt_spec *);
84
85 bool get_testing_mode (void);
86 void set_testing_mode (bool);
87
88 enum behavior_mode {
89   ENHANCED,             /* Use improved PSPP behavior. */
90   COMPATIBLE            /* Be as compatible as possible. */
91 };
92
93 enum behavior_mode get_algorithm (void);
94 void set_algorithm (enum behavior_mode);
95 enum behavior_mode get_syntax (void);
96 void set_syntax(enum behavior_mode);
97 void set_cmd_algorithm (enum behavior_mode);
98 void unset_cmd_algorithm (void);
99
100 #endif /* !settings_h */