Rename it to avoid clash with global exitloop.
Signed-off-by: Vitezslav Samel <vitezslav(a)samel.cz>
---
src/tui/input.c | 8 ++++----
src/tui/listbox.c | 8 ++++----
src/tui/menurt.c | 10 +++++-----
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/tui/input.c b/src/tui/input.c
index 1dc129f..e363722 100644
--- a/src/tui/input.c
+++ b/src/tui/input.c
@@ -139,7 +139,7 @@ void tx_fillfields(struct FIELDLIST *list, int *aborted)
{
struct FIELD *field;
int exitkey;
- int exitloop = 0;
+ int endloop = 0;
field = list->list;
@@ -158,15 +158,15 @@ void tx_fillfields(struct FIELDLIST *list, int *aborted)
case 13:
case 10:
*aborted = 0;
- exitloop = 1;
+ endloop = 1;
break;
case 27:
case 24:
*aborted = 1;
- exitloop = 1;
+ endloop = 1;
break;
}
- } while (!exitloop);
+ } while (!endloop);
curs_set(0);
}
diff --git a/src/tui/listbox.c b/src/tui/listbox.c
index 3574626..a9d528c 100644
--- a/src/tui/listbox.c
+++ b/src/tui/listbox.c
@@ -81,7 +81,7 @@ void tx_show_listbox(struct scroll_list *list)
void tx_operate_listbox(struct scroll_list *list, int *keystroke, int *aborted)
{
int ch;
- int exitloop = 0;
+ int endloop = 0;
int row = 0;
char padding[MAX_TEXT_LENGTH];
char sp_buf[10];
@@ -98,7 +98,7 @@ void tx_operate_listbox(struct scroll_list *list, int *keystroke, int
*aborted)
update_panels();
doupdate();
- while (!exitloop) {
+ while (!endloop) {
snprintf(sp_buf, 9, "%%%zuc",
list->width - strlen(list->textptr->text) - 3);
snprintf(padding, MAX_TEXT_LENGTH - 1, sp_buf, ' ');
@@ -145,14 +145,14 @@ void tx_operate_listbox(struct scroll_list *list, int *keystroke,
int *aborted)
break;
case 13:
*aborted = 0;
- exitloop = 1;
+ endloop = 1;
break;
case 27:
case 'x':
case 'X':
case 24:
*aborted = 1;
- exitloop = 1;
+ endloop = 1;
case 12:
case 'l':
case 'L':
diff --git a/src/tui/menurt.c b/src/tui/menurt.c
index 3d118cf..265e297 100644
--- a/src/tui/menurt.c
+++ b/src/tui/menurt.c
@@ -179,7 +179,7 @@ void tx_operatemenu(struct MENU *menu, int *position, int *aborted)
{
struct ITEM *itemptr;
int row = *position;
- int exitloop = 0;
+ int endloop = 0;
int ch;
char *keyptr;
@@ -240,9 +240,9 @@ void tx_operatemenu(struct MENU *menu, int *position, int *aborted)
tx_refresh_screen();
break;
case 13:
- exitloop = 1;
+ endloop = 1;
break;
- /* case 27: exitloop = 1;*aborted = 1;row=menu->itemcount;break; */
+ /* case 27: endloop = 1;*aborted = 1;row=menu->itemcount;break; */
case '^':
break; /* ignore caret key */
default:
@@ -250,10 +250,10 @@ void tx_operatemenu(struct MENU *menu, int *position, int *aborted)
if ((keyptr != NULL)
&& keyptr - menu->shortcuts < menu->itemcount) {
row = keyptr - menu->shortcuts + 1;
- exitloop = 1;
+ endloop = 1;
}
}
- } while (!(exitloop));
+ } while (!endloop);
*position = row; /* position of executed option is in *position */
del_panel(menu->descpanel);
--
1.7.8.4