mirror of
https://github.com/simh/simh.git
synced 2026-04-24 19:33:40 +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:
@@ -91,9 +91,9 @@ jmp_buf cpu_halt;
|
||||
t_stat cpu_examine (t_value *vptr, t_addr addr, UNIT *uptr, int32 sw);
|
||||
t_stat cpu_deposit (t_value val, t_addr addr, UNIT *uptr, int32 sw);
|
||||
t_stat cpu_reset (DEVICE *dptr);
|
||||
t_stat cpu_req (UNIT *u, int32 val, char *cptr, void *desc);
|
||||
t_stat cpu_set_pult (UNIT *u, int32 val, char *cptr, void *desc);
|
||||
t_stat cpu_show_pult (FILE *st, UNIT *up, int32 v, void *dp);
|
||||
t_stat cpu_req (UNIT *u, int32 val, CONST char *cptr, void *desc);
|
||||
t_stat cpu_set_pult (UNIT *u, int32 val, CONST char *cptr, void *desc);
|
||||
t_stat cpu_show_pult (FILE *st, UNIT *up, int32 v, CONST void *dp);
|
||||
|
||||
|
||||
/*
|
||||
@@ -392,7 +392,7 @@ t_stat cpu_reset (DEVICE *dptr)
|
||||
/*
|
||||
* Request routine
|
||||
*/
|
||||
t_stat cpu_req (UNIT *u, int32 val, char *cptr, void *desc)
|
||||
t_stat cpu_req (UNIT *u, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
GRP |= GRP_PANEL_REQ;
|
||||
return SCPE_OK;
|
||||
@@ -401,7 +401,7 @@ t_stat cpu_req (UNIT *u, int32 val, char *cptr, void *desc)
|
||||
/*
|
||||
* Hardwired program selector validation
|
||||
*/
|
||||
t_stat cpu_set_pult (UNIT *u, int32 val, char *cptr, void *desc)
|
||||
t_stat cpu_set_pult (UNIT *u, int32 val, CONST char *cptr, void *desc)
|
||||
{
|
||||
int sw;
|
||||
if (cptr) sw = atoi(cptr); else sw = 0;
|
||||
@@ -417,7 +417,7 @@ t_stat cpu_set_pult (UNIT *u, int32 val, char *cptr, void *desc)
|
||||
return SCPE_ARG;
|
||||
}
|
||||
|
||||
t_stat cpu_show_pult (FILE *st, UNIT *up, int32 v, void *dp)
|
||||
t_stat cpu_show_pult (FILE *st, UNIT *up, int32 v, CONST void *dp)
|
||||
{
|
||||
fprintf(st, "Pult packet switch position is %d", pult_packet_switch);
|
||||
return SCPE_OK;
|
||||
|
||||
Reference in New Issue
Block a user