mirror of
https://github.com/simh/simh.git
synced 2026-04-15 16:11:13 +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:
@@ -66,7 +66,7 @@ int ws_lp_y = -1;
|
||||
static HWND static_wh;
|
||||
static HINSTANCE static_inst;
|
||||
static int xpixels, ypixels;
|
||||
static char *window_name;
|
||||
static const char *window_name;
|
||||
static HBRUSH white_brush;
|
||||
static HBRUSH black_brush;
|
||||
#ifdef SWITCH_CURSORS
|
||||
@@ -317,7 +317,7 @@ ws_thread_init(void)
|
||||
|
||||
/* called from display layer on first display op */
|
||||
int
|
||||
ws_init(char *name, int xp, int yp, int colors, void *dptr)
|
||||
ws_init(const char *name, int xp, int yp, int colors, void *dptr)
|
||||
{
|
||||
xpixels = xp;
|
||||
ypixels = yp;
|
||||
|
||||
Reference in New Issue
Block a user