mirror of
https://github.com/simh/simh.git
synced 2026-05-04 23:15:23 +00:00
ALL: Massive 'const' cleanup
These changes facilitate more robust parameter type checking and helps to identify unexpected coding errors. Most simulators can now also be compiled with a C++ compiler without warnings. Additionally, these changes have also been configured to facilitate easier backporting of simulator and device simulation modules to run under the simh v3.9+ SCP framework.
This commit is contained in:
@@ -98,9 +98,9 @@ t_stat muxc_svc (UNIT *uptr);
|
||||
t_stat muxo_svc (UNIT *uptr);
|
||||
t_stat muxi_rtc_svc (UNIT *uptr);
|
||||
t_stat mux_reset (DEVICE *dptr);
|
||||
t_stat mux_attach (UNIT *uptr, char *cptr);
|
||||
t_stat mux_attach (UNIT *uptr, CONST char *cptr);
|
||||
t_stat mux_detach (UNIT *uptr);
|
||||
t_stat mux_vlines (UNIT *uptr, int32 val, char *cptr, void *desc);
|
||||
t_stat mux_vlines (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
|
||||
void mux_reset_ln (int32 ln);
|
||||
void mux_scan_next (t_bool clr);
|
||||
t_stat muxi_put_char (uint32 c, uint32 ln);
|
||||
@@ -418,7 +418,7 @@ if ((newln >= 0) && (mux_sta[newln] & MUXL_REP)) { /* rcv enb pending? */
|
||||
tmxr_poll_rx (&mux_desc); /* poll for input */
|
||||
for (ln = 0; ln < MUX_NUMLIN; ln++) { /* loop thru lines */
|
||||
if (mux_ldsc[ln].conn) { /* connected? */
|
||||
if (c = tmxr_getc_ln (&mux_ldsc[ln])) { /* get char */
|
||||
if ((c = tmxr_getc_ln (&mux_ldsc[ln]))) { /* get char */
|
||||
if (c & SCPE_BREAK) /* break? */
|
||||
mux_sta[ln] |= MUXL_RBP; /* set rcv brk */
|
||||
else { /* normal char */
|
||||
@@ -545,7 +545,7 @@ return SCPE_OK;
|
||||
|
||||
/* Attach master unit */
|
||||
|
||||
t_stat mux_attach (UNIT *uptr, char *cptr)
|
||||
t_stat mux_attach (UNIT *uptr, CONST char *cptr)
|
||||
{
|
||||
t_stat r;
|
||||
|
||||
@@ -573,7 +573,7 @@ return r;
|
||||
|
||||
/* Change number of lines */
|
||||
|
||||
t_stat mux_vlines (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
t_stat mux_vlines (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
int32 newln, i, t;
|
||||
t_stat r;
|
||||
|
||||
Reference in New Issue
Block a user