mirror of
https://github.com/simh/simh.git
synced 2026-04-18 17:07: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:
@@ -238,7 +238,7 @@ const char *sim_stop_messages[] = {
|
||||
the PC at which to start the program.
|
||||
*/
|
||||
|
||||
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)
|
||||
{
|
||||
int32 c[6], d, i, cnt, csum;
|
||||
uint32 org;
|
||||
@@ -932,7 +932,7 @@ switch (pflag) { /* case on syntax */
|
||||
<= 0 -number of extra words
|
||||
*/
|
||||
|
||||
t_stat parse_sym (char *cptr, t_addr addr, UNIT *uptr, t_value *val, int32 sw)
|
||||
t_stat parse_sym (CONST char *cptr, t_addr addr, UNIT *uptr, t_value *val, int32 sw)
|
||||
{
|
||||
int32 bflag, cflag, d, i, j, reg, spec, n1, n2, disp, pflag;
|
||||
t_value by;
|
||||
|
||||
Reference in New Issue
Block a user