mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +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:
@@ -69,9 +69,9 @@ uint32 ttp (uint32 dev, uint32 op, uint32 dat);
|
||||
t_stat ttpi_svc (UNIT *uptr);
|
||||
t_stat ttpo_svc (UNIT *uptr);
|
||||
t_stat ttp_reset (DEVICE *dptr);
|
||||
t_stat ttp_set_mode (UNIT *uptr, int32 val, char *cptr, void *desc);
|
||||
t_stat ttp_set_break (UNIT *uptr, int32 val, char *cptr, void *desc);
|
||||
t_stat ttp_set_enbdis (UNIT *uptr, int32 val, char *cptr, void *desc);
|
||||
t_stat ttp_set_mode (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
|
||||
t_stat ttp_set_break (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
|
||||
t_stat ttp_set_enbdis (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
|
||||
|
||||
/* TTP data structures */
|
||||
|
||||
@@ -253,7 +253,7 @@ return SCPE_OK;
|
||||
|
||||
/* Make mode flags uniform */
|
||||
|
||||
t_stat ttp_set_mode (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
t_stat ttp_set_mode (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
ttp_unit[TTO].flags = (ttp_unit[TTO].flags & ~TT_MODE) | val;
|
||||
if (val == TT_MODE_7P)
|
||||
@@ -264,7 +264,7 @@ return SCPE_OK;
|
||||
|
||||
/* Set input break */
|
||||
|
||||
t_stat ttp_set_break (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
t_stat ttp_set_break (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
if (ttp_dev.flags & DEV_DIS)
|
||||
return SCPE_NOFNC;
|
||||
@@ -278,7 +278,7 @@ return SCPE_OK;
|
||||
|
||||
/* Set enabled/disabled */
|
||||
|
||||
t_stat ttp_set_enbdis (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
t_stat ttp_set_enbdis (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
extern DEVICE tt_dev;
|
||||
extern t_stat tt_reset (DEVICE *dptr);
|
||||
|
||||
Reference in New Issue
Block a user