vms bits to c99

This commit is contained in:
nhmall
2021-01-27 21:15:31 -05:00
parent 5ac860bdc7
commit c2cb89cae9
6 changed files with 75 additions and 114 deletions

View File

@@ -17,8 +17,7 @@ extern void VDECL(lib$signal, (unsigned, ...));
/* terminate, converting Unix-style exit code into VMS status code */
void
vms_exit(status)
int status;
vms_exit(int status)
{
/* convert non-zero to failure, zero to success */
exit(status ? (SS$_ABORT | STS$M_INHIB_MSG) : SS$_NORMAL);
@@ -27,7 +26,7 @@ int status;
/* put the user into the debugger; used for abort() when in wizard mode */
void
vms_abort()
vms_abort(void)
{
if (debuggable)
lib$signal(SS$_DEBUG);