1 /* PSPP - computes sample statistics.
2 Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
3 Written by Ben Pfaff <blp@gnu.org>.
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA
23 /* Table of mode settings (x=X, w=Windows, p=PC+, f=has relevance for
29 BLKSIZE: x (only on SHOW, not on SET)
32 BUFNO: x (only on SHOW, not on SET)
36 COMP/COMPRESSION: xwpf (meaning varies between p and xw)
53 JOURNAL: wf (equivalent to LOG)
56 LOG: pf (equivalent to JOURNAL)
70 N: xw (only on SHOW, not on SET)
72 NUMBERED: x (only on SHOW, not on SET)
79 RESULTS: wpf (semantics differ)
81 SCOMP/SCOMPRESSION: xwf
84 SEED: xwpf (semantics differ)
85 SYSMIS: xwf (only on SHOW, not on SET)
92 WEIGHT: xwf (only on SHOW, not on SET)
97 $VARS: wf (only on SHOW, not on SET)
103 /* The value that blank numeric fields are set to when read in;
105 extern double set_blanks;
107 /* Describes one custom currency specification. */
108 struct set_cust_currency
110 char buf[32]; /* Buffer for strings. */
111 char *neg_prefix; /* Negative prefix. */
112 char *prefix; /* Prefix. */
113 char *suffix; /* Suffix. */
114 char *neg_suffix; /* Negative suffix. */
115 int decimal; /* Decimal point. */
116 int grouping; /* Grouping character. */
119 /* CCA through CCE. */
120 extern struct set_cust_currency set_cc[5];
122 /* Whether the active file should be compressed. */
123 extern int set_compression;
125 /* Characters per inch (horizontal). */
128 /* Continuation prompt. */
129 extern char *set_cprompt;
131 /* The character used for a decimal point: ',' or '.'. Only respected
132 for data input and output. */
133 extern int set_decimal;
135 /* The character used for grouping in numbers: '.' or ','; the
136 opposite of set_decimal. Only used in COMMA data input and
138 extern int set_grouping;
140 /* Prompt used for lines between BEGIN DATA and END DATA. */
141 extern char *set_dprompt;
143 /* Whether we echo commands to the listing file/printer; 0=no, 1=yes. */
146 /* The character used to terminate commands. */
147 extern int set_endcmd;
149 /* Types of routing. */
152 SET_ROUTE_SCREEN = 001, /* Output to screen devices? */
153 SET_ROUTE_LISTING = 002, /* Output to listing devices? */
154 SET_ROUTE_OTHER = 004, /* Output to other devices? */
155 SET_ROUTE_DISABLE = 010 /* Disable output--overrides all other bits. */
158 /* Routing for errors, messages, and procedure results. */
159 extern int set_errors, set_messages, set_results;
161 /* Whether an error stops execution; 0=no, 1=yes. */
162 extern int set_errorbreak;
164 /* Default format for variables created by transformations and by DATA
166 extern struct fmt_spec set_format;
168 /* I don't know what this setting means; 0=no, 1=yes, 2=blank. */
169 extern int set_headers;
171 /* If set_echo is on, whether commands from include files are echoed;
173 extern int set_include;
175 /* Journal file's name. */
176 extern char *set_journal;
178 /* Whether we're journaling. */
179 extern int set_journaling;
181 /* Lines per inch (vertical). */
184 /* 0=macro expansion is disabled, 1=macro expansion is enabled. */
185 extern int set_mexpand;
187 /* Maximum number of iterations in a macro loop. */
188 extern int set_miterate;
190 /* Maximum nesting level for macros. */
191 extern int set_mnest;
193 /* Whether we pause after each screen of output; 0=no, 1=yes. */
196 /* Independent of set_printback, controls whether the commands
197 generated by macro invocations are displayed. */
198 extern int set_mprint;
200 /* Maximum number of errors. */
201 extern int set_mxerrs;
203 /* Implied limit of unbounded loop. */
204 extern int set_mxloops;
206 /* Maximum number of warnings + errors. */
207 extern int set_mxwarns;
209 /* Whether a blank line is a command terminator; 0=no, 1=yes. */
210 extern int set_nullline;
212 /* Whether commands are written to the display; 0=off, 1=on. */
213 extern int set_printback;
215 #if !USE_INTERNAL_PAGER
216 /* Name of the pager program. */
217 extern char *set_pager;
218 #endif /* !USE_INTERNAL_PAGER */
220 /* The command prompt. */
221 extern char *set_prompt;
223 /* Name of the results file. */
224 extern char *set_results_file;
226 /* Whether to allow certain unsafe operations. Cannot be unset after
228 extern int set_safer;
230 /* Whether save files should be compressed by default. */
231 extern int set_scompression;
233 /* The random number seed; NOT_LONG if we want a "random" random
235 extern long set_seed;
237 /* 1=The user has modified or made use of the random number seed. */
238 extern int set_seed_used;
240 /* 1=Turn on some heuristics that make testing PSPP for correct
241 workings a little easier. */
242 extern int set_testing_mode;
244 /* Whether to warn on undefined values in numeric data. */
245 extern int set_undefined;
247 /* Requested "view length" in lines. */
248 extern int set_viewlength;
251 extern int set_viewwidth;
253 #endif /* !settings_h */