From bb6c2628ce4320f95168d37ebdd2ca3a93ba3b99 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Fri, 1 Jan 2016 20:19:47 +0000
Subject: [PATCH] clarify macro variables for use_internal_edit
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/main.c | 4 ++++
src/setup.c | 2 ++
src/setup.h | 2 ++
3 files changed, 8 insertions(+)
diff --git a/src/main.c b/src/main.c
index 060f31b..492980b 100644
a
|
b
|
main (int argc, char *argv[]) |
351 | 351 | |
352 | 352 | load_keymap_defs (!mc_args__nokeymap); |
353 | 353 | |
| 354 | #ifdef USE_INTERNAL_EDIT |
354 | 355 | macros_list = g_array_new (TRUE, FALSE, sizeof (macros_t)); |
| 356 | #endif /* USE_INTERNAL_EDIT */ |
355 | 357 | |
356 | 358 | tty_init_colors (mc_global.tty.disable_colors, mc_args__force_colors); |
357 | 359 | |
… |
… |
main (int argc, char *argv[]) |
450 | 452 | |
451 | 453 | done_key (); |
452 | 454 | |
| 455 | #ifdef USE_INTERNAL_EDIT |
453 | 456 | if (macros_list != NULL) |
454 | 457 | { |
455 | 458 | guint i; |
… |
… |
main (int argc, char *argv[]) |
464 | 467 | } |
465 | 468 | (void) g_array_free (macros_list, TRUE); |
466 | 469 | } |
| 470 | #endif /* USE_INTERNAL_EDIT */ |
467 | 471 | |
468 | 472 | str_uninit_strings (); |
469 | 473 | |
diff --git a/src/setup.c b/src/setup.c
index 542d16c..3f6a38e 100644
a
|
b
|
int quit = 0; |
203 | 203 | /* Set to TRUE to suppress printing the last directory */ |
204 | 204 | int print_last_revert = FALSE; |
205 | 205 | |
| 206 | #ifdef USE_INTERNAL_EDIT |
206 | 207 | /* index to record_macro_buf[], -1 if not recording a macro */ |
207 | 208 | int macro_index = -1; |
208 | 209 | |
… |
… |
int macro_index = -1; |
210 | 211 | struct macro_action_t record_macro_buf[MAX_MACRO_LENGTH]; |
211 | 212 | |
212 | 213 | GArray *macros_list; |
| 214 | #endif /* USE_INTERNAL_EDIT */ |
213 | 215 | |
214 | 216 | /*** file scope macro definitions ****************************************************************/ |
215 | 217 | |
diff --git a/src/setup.h b/src/setup.h
index 20ef2eb..169c635 100644
a
|
b
|
extern int quit; |
126 | 126 | /* Set to TRUE to suppress printing the last directory */ |
127 | 127 | extern gboolean print_last_revert; |
128 | 128 | |
| 129 | #ifdef USE_INTERNAL_EDIT |
129 | 130 | /* index to record_macro_buf[], -1 if not recording a macro */ |
130 | 131 | extern int macro_index; |
131 | 132 | |
… |
… |
extern int macro_index; |
133 | 134 | extern struct macro_action_t record_macro_buf[MAX_MACRO_LENGTH]; |
134 | 135 | |
135 | 136 | extern GArray *macros_list; |
| 137 | #endif /* USE_INTERNAL_EDIT */ |
136 | 138 | |
137 | 139 | extern int saving_setup; |
138 | 140 | |