mirror of
https://github.com/simh/simh.git
synced 2026-02-26 16:54:22 +00:00
SCP: Expose get_sim_opt globally so that local commands can parse switches
This commit is contained in:
1
scp.c
1
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);
|
||||
|
||||
1
scp.h
1
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);
|
||||
|
||||
Reference in New Issue
Block a user