%!
% executive.ps
% Doug Wyatt, October 21, 1986 10:47:10 am PDT
%
/executive {
execdict begin
clearinterrupt disableinterrupt
/execdepth execdepth 1 add def
(\nPostScript(tm) Version ) print version print
(\nCopyright (c) 1985 Adobe Systems Incorporated.\n) print
{ % loop
/quitflag false def
$error /newerror false put
/prompt load stopped
{ % if
handleerror (Error during prompt execution\n) print exit
} if
{ % stopped
mark idleproc clearinterrupt
/stmtfile (%statementedit) (r) file def
disableinterrupt
} stopped
{ % if....
disableinterrupt cleartomark
$error /newerror get
{ % if
$error /errorname get
/undefinedfilename ne { handleerror } if
$error /newerror false put
exit
} if
}
{ % ..else
pop stmtfile
end
{ clearinterrupt cvx exec disableinterrupt } stopped
execdict begin
{ disableinterrupt handleerror stmtfile closefile } if
} ifelse
checkquit
} loop
/quitflag false def
/execdepth execdepth 1 sub def
end
$error /doclose false put
interrupt
} bind def