1
0
mirror of https://github.com/simh/simh.git synced 2026-05-17 02:21:42 +00:00

I1401, I7094, ID16, ID32, ND100, PDP10, SAGE, VAX780, SCP: Declaration Hygiene

simh t_bool has been declared as int.  Given this, compilers didn't
notice inconsistent declarations with other int types.  These changes
fix those problems.

I1401: Consistently declare conv_old as t_bool

I7094: Consistently declare ch6_req_wr as returning t_stat

ID16, ID32: Consistently declare idc_wds as returning t_stat

ND100: Properly declare sim_load flag argument as int

PDP10: Consistently declare build_dib_tab as returning t_stat

SAGE: Properly declare sim_load flag argument as int

VAX780: Consistently declare rtfile_read as returning t_bool

TIMER: Properly declare sim_timer_cancel as returning t_stat

CONSOLE: Properly declare sim_os_fd_isatty as returning int
This commit is contained in:
Mark Pizzolato
2026-05-13 11:19:44 -10:00
parent 242472d8b8
commit de4f01c73b
14 changed files with 23 additions and 25 deletions

View File

@@ -667,7 +667,7 @@ return SCPE_OK;
/* Write data sector */
t_bool idc_wds (UNIT *uptr)
t_stat idc_wds (UNIT *uptr)
{
for ( ; idc_bptr < IDC_NUMBY; idc_bptr++)
idcxb[idc_bptr] = idc_db; /* fill with last */
@@ -678,7 +678,7 @@ if (ferror (uptr->fileref)) { /* error? */
idc_done (STC_DTE);
return SCPE_IOERR;
}
return FALSE;
return SCPE_OK;
}
/* Data transfer error test routine */