mirror of
https://github.com/simh/simh.git
synced 2026-02-17 13:08:22 +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:
@@ -219,12 +219,11 @@ int32 idc_rtime = 100; /* rotate latency */
|
||||
int32 idc_ctime = 5; /* command latency */
|
||||
uint8 idc_tplte[] = { 0, 1, 2, 3, 4, TPL_END }; /* ctrl + drive */
|
||||
|
||||
DEVICE idc_dev;
|
||||
uint32 id (uint32 dev, uint32 op, uint32 dat);
|
||||
t_stat idc_svc (UNIT *uptr);
|
||||
t_stat idc_reset (DEVICE *dptr);
|
||||
t_stat idc_attach (UNIT *uptr, char *cptr);
|
||||
t_stat idc_set_size (UNIT *uptr, int32 val, char *cptr, void *desc);
|
||||
t_stat idc_attach (UNIT *uptr, CONST char *cptr);
|
||||
t_stat idc_set_size (UNIT *uptr, int32 val, CONST char *cptr, void *desc);
|
||||
void idc_wd_byte (uint32 dat);
|
||||
t_stat idc_rds (UNIT *uptr);
|
||||
t_stat idc_wds (UNIT *uptr);
|
||||
@@ -770,7 +769,7 @@ return SCPE_OK;
|
||||
|
||||
/* Attach routine (with optional autosizing) */
|
||||
|
||||
t_stat idc_attach (UNIT *uptr, char *cptr)
|
||||
t_stat idc_attach (UNIT *uptr, CONST char *cptr)
|
||||
{
|
||||
uint32 i, p;
|
||||
t_stat r;
|
||||
@@ -796,7 +795,7 @@ return SCPE_OK;
|
||||
|
||||
/* Set size command validation routine */
|
||||
|
||||
t_stat idc_set_size (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||
t_stat idc_set_size (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
if (uptr->flags & UNIT_ATT)
|
||||
return SCPE_ALATT;
|
||||
|
||||
Reference in New Issue
Block a user