summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-03-30 14:44:31 +0000
committerIan C <ianc@noddybox.co.uk>2020-03-30 14:44:31 +0000
commit07fd7c2949dbc85e55e0c49658e3dbd965d1904c (patch)
tree93333c300233933254bf08d6eb06a3b607b694c4
parente2f4e398c33f30f9b03448fb6687b7e06a65f21f (diff)
Changed global variable name so it builds on FreeBSD.
-rw-r--r--src/czx81.c8
1 files changed, 4 insertions, 4 deletions
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):