projects
/
pforth
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add CR to BYE
[pforth]
/
csrc
/
pf_io.c
diff --git
a/csrc/pf_io.c
b/csrc/pf_io.c
index
343a02d
..
da16a14
100644
(file)
--- a/
csrc/pf_io.c
+++ b/
csrc/pf_io.c
@@
-194,7
+194,7
@@
cell_t sdWriteFile( void *ptr, cell_t Size, int32_t nItems, FileStream * Stream
TOUCH(Stream);
return 0;
}
TOUCH(Stream);
return 0;
}
-cell_t sdSeekFile( FileStream * Stream,
cell
_t Position, int32_t Mode )
+cell_t sdSeekFile( FileStream * Stream,
file_offset
_t Position, int32_t Mode )
{
UNIMPLEMENTED("sdSeekFile");
TOUCH(Stream);
{
UNIMPLEMENTED("sdSeekFile");
TOUCH(Stream);
@@
-202,7
+202,7
@@
cell_t sdSeekFile( FileStream * Stream, cell_t Position, int32_t Mode )
TOUCH(Mode);
return 0;
}
TOUCH(Mode);
return 0;
}
-
cell
_t sdTellFile( FileStream * Stream )
+
file_offset
_t sdTellFile( FileStream * Stream )
{
UNIMPLEMENTED("sdTellFile");
TOUCH(Stream);
{
UNIMPLEMENTED("sdTellFile");
TOUCH(Stream);
@@
-230,12
+230,10
@@
cell_t sdRenameFile( const char *OldName, const char *NewName )
return -1;
}
return -1;
}
-ThrowCode sdResizeFile( FileStream * File, u
cell_t SizeLo, ucell_t SizeHi
)
+ThrowCode sdResizeFile( FileStream * File, u
int64_t NewSize
)
{
UNIMPLEMENTED("sdResizeFile");
{
UNIMPLEMENTED("sdResizeFile");
- TOUCH(File);
- TOUCH(SizeLo);
- TOUCH(SizeHi);
+ TOUCH(NewSize);
return THROW_RESIZE_FILE;
}
return THROW_RESIZE_FILE;
}