From d81ff1f17e96b6c150d82a38601a33caf4001947 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Tue, 6 Mar 2018 16:41:42 -0800 Subject: [PATCH] SCP: Expose get_sim_opt globally so that local commands can parse switches --- scp.c | 1 - scp.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index ae408823..0d44d5c6 100644 --- a/scp.c +++ b/scp.c @@ -474,7 +474,6 @@ typedef enum { SW_NUMBER /* Numeric Value */ } SWITCH_PARSE; SWITCH_PARSE get_switches (const char *cptr, int32 *sw_val, int32 *sw_number); -CONST char *get_sim_sw (CONST char *cptr); t_stat get_aval (t_addr addr, DEVICE *dptr, UNIT *uptr); t_value get_rval (REG *rptr, uint32 idx); void put_rval (REG *rptr, uint32 idx, t_value val); diff --git a/scp.h b/scp.h index c999c1a1..faa97710 100644 --- a/scp.h +++ b/scp.h @@ -228,6 +228,7 @@ size_t sim_strlcpy (char *dst, const char *src, size_t size); #define strcasecmp(str1, str2) sim_strcasecmp ((str1), (str2)) #endif CONST char *get_sim_opt (int32 opt, CONST char *cptr, t_stat *st); +CONST char *get_sim_sw (CONST char *cptr); const char *put_switches (char *buf, size_t bufsize, uint32 sw); CONST char *get_glyph (const char *iptr, char *optr, char mchar); CONST char *get_glyph_nc (const char *iptr, char *optr, char mchar);