X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fsettings.h;h=ac4c1e202b89d4455a2ebc4f8bda075c8699b557;hb=3b3131d18a2dc8ad24d53d3a9502ed7a0096f858;hp=4bdc65d1fe32cc2cb5e9a756145234d2ce229e3d;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp diff --git a/src/data/settings.h b/src/data/settings.h index 4bdc65d1fe..ac4c1e202b 100644 --- a/src/data/settings.h +++ b/src/data/settings.h @@ -1,21 +1,18 @@ -/* PSPP - computes sample statistics. - Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. - Written by Ben Pfaff . +/* PSPP - a program for statistical analysis. + Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301, USA. */ + along with this program. If not, see . */ #if !settings_h #define settings_h 1 @@ -23,15 +20,6 @@ #include #include -/* Types of routing. */ -enum - { - SET_ROUTE_SCREEN = 001, /* Output to screen devices? */ - SET_ROUTE_LISTING = 002, /* Output to listing devices? */ - SET_ROUTE_OTHER = 004, /* Output to other devices? */ - SET_ROUTE_DISABLE = 010 /* Disable output--overrides all other bits. */ - }; - void settings_init (void); void settings_done (void); @@ -45,11 +33,6 @@ void set_viewwidth (int); bool get_safer_mode (void); void set_safer_mode (void); -char get_decimal (void); -void set_decimal (char); -char get_grouping (void); -void set_grouping (char); - bool get_echo (void); void set_echo (bool); bool get_include (void); @@ -61,6 +44,11 @@ void set_epoch (int); bool get_errorbreak (void); void set_errorbreak (bool); +bool get_error_routing_to_terminal (void); +void set_error_routing_to_terminal (bool); +bool get_error_routing_to_listing (void); +void set_error_routing_to_listing (bool); + bool get_scompression (void); void set_scompression (bool); @@ -89,29 +77,12 @@ char get_endcmd (void); void set_endcmd (char); size_t get_workspace (void); +size_t get_workspace_cases (size_t value_cnt); void set_workspace (size_t); const struct fmt_spec *get_format (void); void set_format (const struct fmt_spec *); -/* Maximum number of custom currency specifications */ -#define CC_CNT 5 - -/* One custom currency specification. */ -#define CC_WIDTH 16 -struct custom_currency - { - char neg_prefix[CC_WIDTH]; /* Negative prefix. */ - char prefix[CC_WIDTH]; /* Prefix. */ - char suffix[CC_WIDTH]; /* Suffix. */ - char neg_suffix[CC_WIDTH]; /* Negative suffix. */ - char decimal; /* Decimal point. */ - char grouping; /* Grouping character. */ - }; - -const struct custom_currency *get_cc (int idx); -void set_cc (int idx, const struct custom_currency *); - bool get_testing_mode (void); void set_testing_mode (bool);