From 07fd7c2949dbc85e55e0c49658e3dbd965d1904c Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 30 Mar 2020 14:44:31 +0000 Subject: Changed global variable name so it builds on FreeBSD. --- src/czx81.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/czx81.c b/src/czx81.c index 55bae6a..9c692be 100644 --- a/src/czx81.c +++ b/src/czx81.c @@ -109,7 +109,7 @@ static int key_press_frames = 1; static int current_key_press_frame = 0; static int current_key = -1; -static int trace = FALSE; +static int g_trace = FALSE; static char snappath[4096] = "."; static int allow_save = FALSE; @@ -570,7 +570,7 @@ static void Trace(void) static int CheckTimers(Z80 *z80, Z80Val val) { - if (trace) + if (g_trace) { Trace(); } @@ -945,7 +945,7 @@ static void Menu() { int ch; - mvprintw(0, 0, "F1 .. Tracing %s", trace ? "ON ":"OFF"); + mvprintw(0, 0, "F1 .. Tracing %s", g_trace ? "ON ":"OFF"); mvprintw(2, 0, "F2 .. Frames per key press: %2d", key_press_frames); mvprintw(4, 0, "F3 .. Reset ZX81"); mvprintw(6, 0, "F4 .. Quit"); @@ -958,7 +958,7 @@ static void Menu() switch(ch) { case KEY_F(1): - trace = !trace; + g_trace = !g_trace; break; case KEY_F(2): -- cgit v1.2.3