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