2 Global structure for some library-related variables
4 Copyright (C) 2009, 2011
5 The Free Software Foundation, Inc.
8 Slava Zanko <slavazanko@gmail.com>, 2009.
10 This file is part of the Midnight Commander.
12 The Midnight Commander is free software: you can redistribute it
13 and/or modify it under the terms of the GNU General Public License as
14 published by the Free Software Foundation, either version 3 of the License,
15 or (at your option) any later version.
17 The Midnight Commander is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program. If not, see <http://www.gnu.org/licenses/>.
26 /** \file glibcompat.c
27 * \brief Source: global structure for some library-related variables
37 #ifdef HAVE_SUBSHELL_SUPPORT
38 # ifdef SUBSHELL_OPTIONAL
39 # define SUBSHELL_USE FALSE
40 # else /* SUBSHELL_OPTIONAL */
41 # define SUBSHELL_USE TRUE
42 # endif /* SUBSHELL_OPTIONAL */
43 #else /* !HAVE_SUBSHELL_SUPPORT */
44 # define SUBSHELL_USE FALSE
45 #endif /* !HAVE_SUBSHELL_SUPPORT */
48 /*** global variables ****************************************************************************/
51 mc_global_t mc_global
= {
52 #ifdef WITH_BACKGROUND
53 .we_are_background
= 0,
54 #endif /* WITH_BACKGROUND */
58 .mc_run_mode
= MC_RUN_FULL
,
61 .source_codepage
= -1,
62 .display_codepage
= -1,
66 #endif /* !HAVE_CHARSET */
69 .sysconfig_dir
= NULL
,
70 .share_data_dir
= NULL
,
78 .midnight_shutdown
= FALSE
,
79 .confirm_history_cleanup
= TRUE
,
80 .show_all_if_ambiguous
= FALSE
85 .setup_color_string
= NULL
,
86 .term_color_string
= NULL
,
87 .color_terminal_string
= NULL
,
88 #ifndef LINUX_CONS_SAVER_C
90 #endif /* !LINUX_CONS_SAVER_C */
92 .use_subshell
= SUBSHELL_USE
,
94 #ifdef HAVE_SUBSHELL_SUPPORT
96 #endif /* !HAVE_SUBSHELL_SUPPORT */
99 .command_line_colors
= NULL
,
101 .disable_x11
= FALSE
,
102 .slow_terminal
= FALSE
,
103 .disable_colors
= FALSE
,
104 .ugly_line_drawing
= FALSE
,
106 .alternate_plus_minus
= FALSE
,
112 .preallocate_space
= FALSE
,
120 /*** file scope macro definitions ****************************************************************/
122 /*** file scope type declarations ****************************************************************/
124 /*** file scope variables ************************************************************************/
126 /*** file scope functions ************************************************************************/
128 /*** public functions ****************************************************************************/
129 /* --------------------------------------------------------------------------------------------- */