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
36 #ifdef ENABLE_SUBSHELL
37 # ifdef SUBSHELL_OPTIONAL
38 # define SUBSHELL_USE FALSE
39 # else /* SUBSHELL_OPTIONAL */
40 # define SUBSHELL_USE TRUE
41 # endif /* SUBSHELL_OPTIONAL */
42 #else /* !ENABLE_SUBSHELL */
43 # define SUBSHELL_USE FALSE
44 #endif /* !ENABLE_SUBSHELL */
47 /*** global variables ****************************************************************************/
50 mc_global_t mc_global
= {
51 .mc_run_mode
= MC_RUN_FULL
,
52 .midnight_shutdown
= FALSE
,
54 .sysconfig_dir
= NULL
,
55 .share_data_dir
= NULL
,
58 .source_codepage
= -1,
59 .display_codepage
= -1,
63 #endif /* !HAVE_CHARSET */
64 .utf8_display
= FALSE
,
69 #ifdef ENABLE_BACKGROUND
70 .we_are_background
= FALSE
,
71 #endif /* ENABLE_BACKGROUND */
75 .confirm_history_cleanup
= TRUE
,
76 .show_all_if_ambiguous
= FALSE
,
83 .setup_color_string
= NULL
,
84 .term_color_string
= NULL
,
85 .color_terminal_string
= NULL
,
86 .command_line_colors
= NULL
,
87 #ifndef LINUX_CONS_SAVER_C
89 #endif /* !LINUX_CONS_SAVER_C */
91 .use_subshell
= SUBSHELL_USE
,
93 #ifdef ENABLE_SUBSHELL
95 #endif /* !ENABLE_SUBSHELL */
100 .disable_x11
= FALSE
,
101 .slow_terminal
= FALSE
,
102 .disable_colors
= FALSE
,
103 .ugly_line_drawing
= FALSE
,
105 .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 /* --------------------------------------------------------------------------------------------- */