mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
Clarify macro variables for USE_INTERNAL_EDIT.
Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
785a2fc6e9
commit
c2060a420a
@ -351,7 +351,9 @@ main (int argc, char *argv[])
|
||||
|
||||
load_keymap_defs (!mc_args__nokeymap);
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
macros_list = g_array_new (TRUE, FALSE, sizeof (macros_t));
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
tty_init_colors (mc_global.tty.disable_colors, mc_args__force_colors);
|
||||
|
||||
@ -450,6 +452,7 @@ main (int argc, char *argv[])
|
||||
|
||||
done_key ();
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
if (macros_list != NULL)
|
||||
{
|
||||
guint i;
|
||||
@ -464,6 +467,7 @@ main (int argc, char *argv[])
|
||||
}
|
||||
(void) g_array_free (macros_list, TRUE);
|
||||
}
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
str_uninit_strings ();
|
||||
|
||||
|
@ -203,6 +203,7 @@ int quit = 0;
|
||||
/* Set to TRUE to suppress printing the last directory */
|
||||
int print_last_revert = FALSE;
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
/* index to record_macro_buf[], -1 if not recording a macro */
|
||||
int macro_index = -1;
|
||||
|
||||
@ -210,6 +211,7 @@ int macro_index = -1;
|
||||
struct macro_action_t record_macro_buf[MAX_MACRO_LENGTH];
|
||||
|
||||
GArray *macros_list;
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
/*** file scope macro definitions ****************************************************************/
|
||||
|
||||
|
@ -126,6 +126,7 @@ extern int quit;
|
||||
/* Set to TRUE to suppress printing the last directory */
|
||||
extern gboolean print_last_revert;
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
/* index to record_macro_buf[], -1 if not recording a macro */
|
||||
extern int macro_index;
|
||||
|
||||
@ -133,6 +134,7 @@ extern int macro_index;
|
||||
extern struct macro_action_t record_macro_buf[MAX_MACRO_LENGTH];
|
||||
|
||||
extern GArray *macros_list;
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
extern int saving_setup;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user