Change license from GPLv2+ to GPLv3+.
[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 (void);
24 void settings_done (void);
25
26 void force_long_view (void);
27 int get_viewlength (void);
28 void set_viewlength (int);
29
30 int get_viewwidth (void);
31 void set_viewwidth (int);
32
33 bool get_safer_mode (void);
34 void set_safer_mode (void);
35
36 bool get_echo (void);
37 void set_echo (bool);
38 bool get_include (void);
39 void set_include (bool);
40
41 int get_epoch (void);
42 void set_epoch (int);
43
44 bool get_errorbreak (void);
45 void set_errorbreak (bool);
46
47 bool get_error_routing_to_terminal (void);
48 void set_error_routing_to_terminal (bool);
49 bool get_error_routing_to_listing (void);
50 void set_error_routing_to_listing (bool);
51
52 bool get_scompression (void);
53 void set_scompression (bool);
54
55 bool get_undefined (void);
56 void set_undefined (bool);
57 double get_blanks (void);
58 void set_blanks (double);
59
60 int get_mxwarns (void);
61 void set_mxwarns (int);
62 int get_mxerrs (void);
63 void set_mxerrs (int);
64
65 bool get_printback (void);
66 void set_printback (bool);
67 bool get_mprint (void);
68 void set_mprint (bool);
69
70 int get_mxloops (void);
71 void set_mxloops (int);
72
73 bool get_nulline (void);
74 void set_nulline (bool);
75
76 char get_endcmd (void);
77 void set_endcmd (char);
78
79 size_t get_workspace (void);
80 size_t get_workspace_cases (size_t value_cnt);
81 void set_workspace (size_t);
82
83 const struct fmt_spec *get_format (void);
84 void set_format (const struct fmt_spec *);
85
86 bool get_testing_mode (void);
87 void set_testing_mode (bool);
88
89 enum behavior_mode {
90   ENHANCED,             /* Use improved PSPP behavior. */
91   COMPATIBLE            /* Be as compatible as possible. */
92 };
93
94 enum behavior_mode get_algorithm (void);
95 void set_algorithm (enum behavior_mode);
96 enum behavior_mode get_syntax (void);
97 void set_syntax(enum behavior_mode);
98 void set_cmd_algorithm (enum behavior_mode);
99 void unset_cmd_algorithm (void);
100
101 #endif /* !settings_h */