From ca51776ec7263cb12c9661c8d8fae8f58314c143 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 22 May 2020 10:11:40 -0700 Subject: [PATCH] SCP: Enable global message suppression by library code The global variable sim_show_message as 0 will suppress message output which may be needed from time to time by library code. --- scp.c | 4 ++-- scp.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scp.c b/scp.c index 4bb73426..d9b3c2c3 100644 --- a/scp.c +++ b/scp.c @@ -592,7 +592,7 @@ volatile t_bool sim_is_running = FALSE; t_bool sim_processing_event = FALSE; uint32 sim_brk_summ = 0; uint32 sim_brk_types = 0; -BRKTYPTAB *sim_brk_type_desc = NULL; /* type descriptions */ +BRKTYPTAB *sim_brk_type_desc = NULL; /* type descriptions */ uint32 sim_brk_dflt = 0; uint32 sim_brk_match_type; t_addr sim_brk_match_addr; @@ -603,6 +603,7 @@ int32 sim_brk_ent = 0; int32 sim_brk_lnt = 0; int32 sim_brk_ins = 0; int32 sim_quiet = 0; +int32 sim_show_message = 1; /* the message display status of the currently open do file */ int32 sim_step = 0; int32 sim_runlimit = 0; int32 sim_runlimit_initial = 0; @@ -639,7 +640,6 @@ char *sim_prompt = NULL; /* prompt string */ static FILE *sim_gotofile; /* the currently open do file */ static int32 sim_goto_line[MAX_DO_NEST_LVL+1]; /* the current line number in the currently open do file */ static int32 sim_do_echo = 0; /* the echo status of the currently open do file */ -static int32 sim_show_message = 1; /* the message display status of the currently open do file */ static int32 sim_on_inherit = 0; /* the inherit status of on state and conditions when executing do files */ static int32 sim_do_depth = 0; static t_bool sim_cmd_echoed = FALSE; /* Command was emitted already prior to message output */ diff --git a/scp.h b/scp.h index a7aed0a9..4324ea6b 100644 --- a/scp.h +++ b/scp.h @@ -364,6 +364,7 @@ extern UNIT *sim_dfunit; extern int32 sim_interval; extern int32 sim_switches; extern int32 sim_switch_number; +extern int32 sim_show_message; extern int32 sim_quiet; extern int32 sim_step; extern t_stat sim_last_cmd_stat; /* Command Status */