X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=csrc%2Fpf_io.h;h=7cf43102237c3a7dc3b797f72bc2a81f8d57bd6e;hb=662a735afec44a089d332b36749e3efacacaa92a;hp=8af16677d05e8a06fdbe36355140437e3c9d9265;hpb=46fcda16ac30c5555e21d11ea8e2089c657bf1d6;p=debian%2Fpforth diff --git a/csrc/pf_io.h b/csrc/pf_io.h index 8af1667..7cf4310 100644 --- a/csrc/pf_io.h +++ b/csrc/pf_io.h @@ -85,6 +85,7 @@ void ioTerm( void ); cell_t sdReadFile( void *ptr, cell_t Size, int32_t nItems, FileStream * Stream ); cell_t sdWriteFile( void *ptr, cell_t Size, int32_t nItems, FileStream * Stream ); cell_t sdSeekFile( FileStream * Stream, off_t Position, int32_t Mode ); + cell_t sdRenameFile( const char *OldName, const char *NewName ); off_t sdTellFile( FileStream * Stream ); cell_t sdCloseFile( FileStream * Stream ); cell_t sdInputChar( FileStream *stream ); @@ -127,6 +128,7 @@ void ioTerm( void ); #define sdTellFile ftello #endif #define sdCloseFile fclose + #define sdRenameFile rename #define sdInputChar fgetc #define PF_STDIN ((FileStream *) stdin)