X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/0b1e24898c41afa1f07854c295881b23aa2faea6..7d169e32d0619ecf128abe042ec5ef6a2655e1a1:/csrc/pfcompil.c diff --git a/csrc/pfcompil.c b/csrc/pfcompil.c index b618c9f..a3f44f3 100644 --- a/csrc/pfcompil.c +++ b/csrc/pfcompil.c @@ -981,7 +981,7 @@ ThrowCode ffIncludeFile( FileStream *InputFile ) ***************************************************************/ Err ffPushInputStream( FileStream *InputFile ) { - cell_t Result = 0; + Err Result = 0; IncludeFrame *inf; /* Push current input state onto special include stack. */ @@ -1158,7 +1158,11 @@ cell_t ffRefill( void ) /* ACCEPT is deferred so we call it through the dictionary. */ PUSH_DATA_STACK( gCurrentTask->td_SourcePtr ); PUSH_DATA_STACK( TIB_SIZE ); - pfCatch( gAcceptP_XT ); + ThrowCode throwCode = pfCatch( gAcceptP_XT ); + if (throwCode) { + Result = throwCode; + goto error; + } Num = POP_DATA_STACK; if( Num < 0 ) {