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