diff --git a/Ibm1130/ibm1130_defs.h b/Ibm1130/ibm1130_defs.h index 699d751c..ff4ebf52 100644 --- a/Ibm1130/ibm1130_defs.h +++ b/Ibm1130/ibm1130_defs.h @@ -281,7 +281,7 @@ void break_simulation (t_stat reason); /* let a device halt the sim char hollerith_to_ascii (uint16 hol); /* for debugging use only */ t_bool gdu_active (void); void remark_cmd (char *remark); -LONG stuff_cmd (char *cmd); +long stuff_cmd (char *cmd); t_bool stuff_and_wait (char *cmd, int timeout, int delay); void update_gui (t_bool force); void sim_init (void); diff --git a/Ibm1130/ibm1130_gui.c b/Ibm1130/ibm1130_gui.c index 1bd43334..20856a59 100644 --- a/Ibm1130/ibm1130_gui.c +++ b/Ibm1130/ibm1130_gui.c @@ -109,7 +109,7 @@ extern UNIT prt_unit; static void destroy_console_window (void) {} t_stat console_reset (DEVICE *dptr) {return SCPE_OK;} - LONG stuff_cmd (char *cmd) {return 0} + long stuff_cmd (char *cmd) {return 0} t_bool stuff_and_wait (char *cmd, int timeout, int delay) {return FALSE;} char *read_cmdline (char *ptr, int size, FILE *stream) {return read_line(ptr, size, stream);} void remark_cmd (char *remark) {sim_printf("%s\n", remark);} @@ -1535,7 +1535,7 @@ static DWORD iCmdThreadID = 0; static HANDLE hCmdReadEvent = NULL; static HANDLE hCmdReadyEvent = NULL; static BOOL scp_reading = FALSE; -static LONG scp_command = 0; +static long scp_command = 0; static char cmdbuffer[256]; static BOOL read_exiting = FALSE; @@ -1618,12 +1618,12 @@ char *read_cmdline (char *ptr, int size, FILE *stream) /* stuff_cmd - force a command into the read_cmdline output buffer. Called asynchronously by GUI */ -LONG stuff_cmd (char *cmd) +long stuff_cmd (char *cmd) { INPUT_RECORD *ip; size_t i, j, cmdsize = strlen(cmd); DWORD dwEventsWritten; - LONG scp_cmd = SCP_COMMAND; + long scp_cmd = SCP_COMMAND; ip = (INPUT_RECORD *)calloc(2+2*cmdsize, sizeof(*ip)); for (i=j=0; i