X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/f1994bf609c5b053c5c0d7db2062b570fa9f5ead..2d8c3ec4828a9a6502a3b81334e1b50294d26fcc:/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 ) {