mirror of
https://github.com/open-simh/simh.git
synced 2026-05-05 07:33:56 +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:
@@ -37,7 +37,7 @@ void vax_init(void)
|
||||
sim_savename = "VAX";
|
||||
}
|
||||
|
||||
void (*sim_vm_init) (void) = &vax_init;
|
||||
WEAK void (*sim_vm_init) (void) = &vax_init;
|
||||
|
||||
extern DEVICE cpu_dev;
|
||||
extern DEVICE tlb_dev;
|
||||
@@ -109,7 +109,7 @@ DEVICE *sim_devices[] = {
|
||||
-o for memory, specify origin
|
||||
*/
|
||||
|
||||
t_stat sim_load (FILE *fileref, char *cptr, char *fnam, int flag)
|
||||
t_stat sim_load (FILE *fileref, CONST char *cptr, CONST char *fnam, int flag)
|
||||
{
|
||||
t_stat r;
|
||||
int32 i;
|
||||
|
||||
Reference in New Issue
Block a user