X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=csrc%2Fpfcompil.c;h=a3f44f3b270d6ef40e4b41959387f3be0a595353;hb=92f564237b44db2747f921d2f31d071f8217fdd9;hp=a3f01217444676e9b27de460dfc1029e229a5fd8;hpb=f9a1c9cea42bd3c290b8823e1ece25a3bc878462;p=debian%2Fpforth diff --git a/csrc/pfcompil.c b/csrc/pfcompil.c index a3f0121..a3f44f3 100644 --- a/csrc/pfcompil.c +++ b/csrc/pfcompil.c @@ -260,6 +260,7 @@ PForthDictionary pfBuildDictionary( cell_t HeaderSize, cell_t CodeSize ) CreateDicEntryC( ID_FILE_REPOSITION, "REPOSITION-FILE", 0 ); CreateDicEntryC( ID_FILE_FLUSH, "FLUSH-FILE", 0 ); CreateDicEntryC( ID_FILE_RENAME, "(RENAME-FILE)", 0 ); + CreateDicEntryC( ID_FILE_RESIZE, "(RESIZE-FILE)", 0 ); CreateDicEntryC( ID_FILE_RO, "R/O", 0 ); CreateDicEntryC( ID_FILE_RW, "R/W", 0 ); CreateDicEntryC( ID_FILE_WO, "W/O", 0 ); @@ -980,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. */ @@ -1157,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 ) {