1 /* GLIB - Library of useful routines for C programming
3 Free Software Foundation, Inc.
6 Slava Zanko <slavazanko@gmail.com>, 2009.
8 This file is part of the Midnight Commander.
10 The Midnight Commander is free software; you can redistribute it
11 and/or modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2 of the
13 License, or (at your option) any later version.
15 The Midnight Commander is distributed in the hope that it will be
16 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26 /** \file glibcompat.c
27 * \brief Source: compatibility with older versions of glib
29 * Following code was copied from glib to GNU Midnight Commander to
30 * provide compatibility with older versions of glib.
39 #ifdef HAVE_SUBSHELL_SUPPORT
40 # ifdef SUBSHELL_OPTIONAL
41 # define SUBSHELL_USE FALSE
42 # else /* SUBSHELL_OPTIONAL */
43 # define SUBSHELL_USE TRUE
44 # endif /* SUBSHELL_OPTIONAL */
45 #else /* !HAVE_SUBSHELL_SUPPORT */
46 # define SUBSHELL_USE FALSE
47 #endif /* !HAVE_SUBSHELL_SUPPORT */
50 /*** global variables ****************************************************************************/
53 mc_global_t mc_global
= {
54 #ifdef WITH_BACKGROUND
55 .we_are_background
= 0,
56 #endif /* WITH_BACKGROUND */
60 .mc_run_mode
= MC_RUN_FULL
,
63 .source_codepage
= -1,
64 .display_codepage
= -1,
68 #endif /* !HAVE_CHARSET */
71 .sysconfig_dir
= NULL
,
72 .share_data_dir
= NULL
,
78 .disable_colors
= FALSE
,
80 .ugly_line_drawing
= FALSE
,
81 .slow_terminal
= FALSE
86 .midnight_shutdown
= FALSE
,
87 .confirm_history_cleanup
= TRUE
,
88 .show_all_if_ambiguous
= FALSE
93 .setup_color_string
= NULL
,
94 .term_color_string
= NULL
,
95 .color_terminal_string
= NULL
,
96 #ifndef LINUX_CONS_SAVER_C
98 #endif /* !LINUX_CONS_SAVER_C */
100 .use_subshell
= SUBSHELL_USE
,
102 #ifdef HAVE_SUBSHELL_SUPPORT
104 #endif /* !HAVE_SUBSHELL_SUPPORT */
107 .command_line_colors
= NULL
,
120 /*** file scope macro definitions ****************************************************************/
122 /*** file scope type declarations ****************************************************************/
124 /*** file scope variables ************************************************************************/
126 /*** file scope functions ************************************************************************/
128 /*** public functions ****************************************************************************/
129 /* --------------------------------------------------------------------------------------------- */