syntax: add missing SQL keywords (closes MidnightCommander/mc#129)
[midnight-commander.git] / lib / global.c
blob1dc1b6e16701cfc2ba3d9e7b91741c7094fa3cb8
1 /*
2 Global structure for some library-related variables
4 Copyright (C) 2009-2017
5 Free Software Foundation, Inc.
7 Written by:
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
31 #include <config.h>
33 #include "global.h"
34 #include "lib/timer.h"
36 /* *INDENT-OFF* */
37 #ifdef ENABLE_SUBSHELL
38 # ifdef SUBSHELL_OPTIONAL
39 # define SUBSHELL_USE FALSE
40 # else /* SUBSHELL_OPTIONAL */
41 # define SUBSHELL_USE TRUE
42 # endif /* SUBSHELL_OPTIONAL */
43 #else /* !ENABLE_SUBSHELL */
44 # define SUBSHELL_USE FALSE
45 #endif /* !ENABLE_SUBSHELL */
46 /* *INDENT-ON* */
48 /*** global variables ****************************************************************************/
50 /* *INDENT-OFF* */
51 mc_global_t mc_global = {
52 .mc_run_mode = MC_RUN_FULL,
53 .timer = NULL,
54 .midnight_shutdown = FALSE,
56 .sysconfig_dir = NULL,
57 .share_data_dir = NULL,
59 #ifdef HAVE_CHARSET
60 .source_codepage = -1,
61 .display_codepage = -1,
62 #else
63 .eight_bit_clean = TRUE,
64 .full_eight_bits = FALSE,
65 #endif /* !HAVE_CHARSET */
66 .utf8_display = FALSE,
68 .message_visible = 1,
69 .keybar_visible = 1,
71 #ifdef ENABLE_BACKGROUND
72 .we_are_background = FALSE,
73 #endif /* ENABLE_BACKGROUND */
75 .widget =
77 .confirm_history_cleanup = TRUE,
78 .show_all_if_ambiguous = FALSE,
79 .is_right = FALSE
82 .shell = NULL,
84 .tty =
86 .skin = NULL,
87 .setup_color_string = NULL,
88 .term_color_string = NULL,
89 .color_terminal_string = NULL,
90 .command_line_colors = NULL,
91 #ifndef LINUX_CONS_SAVER_C
92 .console_flag = '\0',
93 #endif /* !LINUX_CONS_SAVER_C */
95 .use_subshell = SUBSHELL_USE,
97 #ifdef ENABLE_SUBSHELL
98 .subshell_pty = 0,
99 #endif /* !ENABLE_SUBSHELL */
101 .xterm_flag = FALSE,
102 .disable_x11 = FALSE,
103 .slow_terminal = FALSE,
104 .disable_colors = FALSE,
105 .ugly_line_drawing = FALSE,
106 .old_mouse = FALSE,
107 .alternate_plus_minus = FALSE,
108 .winch_flag = 0
111 .vfs =
113 .cd_symlinks = TRUE,
114 .preallocate_space = FALSE,
118 /* *INDENT-ON* */
120 #undef SUBSHELL_USE
122 /*** file scope macro definitions ****************************************************************/
124 /*** file scope type declarations ****************************************************************/
126 /*** file scope variables ************************************************************************/
128 /*** file scope functions ************************************************************************/
130 /*** public functions ****************************************************************************/
131 /* --------------------------------------------------------------------------------------------- */