From 3a1a0983b1200bd69edc691faaabd230ebfdd866 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Tue, 9 May 2023 12:51:32 -0400 Subject: [PATCH] SCP: Updated to current. --- Visual Studio Projects/SEL32.vcproj | 3 +++ scp.c | 28 +++++++++++++--------------- scp.h | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Visual Studio Projects/SEL32.vcproj b/Visual Studio Projects/SEL32.vcproj index 73c87a3..f073469 100644 --- a/Visual Studio Projects/SEL32.vcproj +++ b/Visual Studio Projects/SEL32.vcproj @@ -47,6 +47,7 @@ RuntimeLibrary="1" UsePrecompiledHeader="0" WarningLevel="3" + WarnAsError="true" DebugInformationFormat="3" CompileAs="1" ShowIncludes="false" @@ -135,6 +136,7 @@ EnableFunctionLevelLinking="true" UsePrecompiledHeader="0" WarningLevel="3" + WarnAsError="true" DebugInformationFormat="3" CompileAs="1" /> @@ -239,6 +241,7 @@ + diff --git a/scp.c b/scp.c index e2673ef..4a2d847 100644 --- a/scp.c +++ b/scp.c @@ -23,6 +23,9 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from Robert M Supnik. + 01-Oct-22 RMS Replaced readline with editline due to licensing issues (Paul Koning) + 15-Aug-22 RMS Fixed inconsistent SIM_HAVE_DLOPEN naming (Walter Mueller) + 06-Mar-22 RMS Removed UNIT_RAW support 21-Oct-21 RMS Fixed bug in byte deposits if aincr > 1 16-Feb-21 JDB Rewrote get_rval, put_rval to support arrays of structures 25-Jan-21 JDB REG "size" field now determines access size @@ -2734,10 +2737,6 @@ t_bool register_check = FALSE; t_stat stat = SCPE_OK; CTAB *docmdp = NULL; -#if defined (__MWERKS__) && defined (macintosh) -argc = ccommand (&argv); -#endif - /* Make sure that argv has at least 10 elements and that it ends in a NULL pointer */ targv = (char **)calloc (1+MAX(10, argc), sizeof(*targv)); for (i=0; iname, SCPE_BARE_STATUS (tstat), sim_error_text (tstat)); if (sim_ttisatty()) { - if (get_yn ("Continue with additional tests? [N] ", SCPE_STOP) == SCPE_STOP) + if (get_yn ("Continue with additional tests? [N] ", FALSE) == FALSE) break; } else diff --git a/scp.h b/scp.h index a34a822..1c2527c 100644 --- a/scp.h +++ b/scp.h @@ -163,7 +163,7 @@ t_stat show_writelock (FILE *st, UNIT *uptr, int32 val, CONST void *desc); const char *sim_dname (DEVICE *dptr); const char *sim_uname (UNIT *dptr); const char *sim_set_uname (UNIT *uptr, const char *uname); -t_stat get_yn (const char *ques, t_stat deflt); +t_bool get_yn (const char *ques, t_bool deflt); void sim_srand (unsigned int seed); int sim_rand (void); #ifdef RAND_MAX