IBM1130: Fix non-windows build

This commit is contained in:
Mark Pizzolato 2017-05-15 10:49:37 -07:00
parent 17c56a0c88
commit e0a45f9af9
2 changed files with 6 additions and 6 deletions

View file

@ -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);

View file

@ -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<cmdsize; i++, j++) {
@ -1669,7 +1669,7 @@ static void my_yield (void)
t_bool stuff_and_wait (char *cmd, int timeout, int delay)
{
LONG scp_cmd = stuff_cmd(cmd);
long scp_cmd = stuff_cmd(cmd);
while (scp_cmd == SCP_COMMAND) {
if (timeout < 0)