nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de8f24
)
lib: fix extern type of NativeFile
author
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 5 Mar 2014 13:08:26 +0000
(08:08 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 5 Mar 2014 13:15:38 +0000
(08:15 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/standard/file.nit
patch
|
blob
|
history
diff --git
a/lib/standard/file.nit
b/lib/standard/file.nit
index
64094f7
..
4ba20a0
100644
(file)
--- a/
lib/standard/file.nit
+++ b/
lib/standard/file.nit
@@
-443,7
+443,7
@@
extern FileStat `{ struct stat * `}
end
# Instance of this class are standard FILE * pointers
-private extern NativeFile
+private extern NativeFile `{ FILE* `}
fun io_read(buf: NativeString, len: Int): Int is extern "file_NativeFile_NativeFile_io_read_2"
fun io_write(buf: NativeString, len: Int): Int is extern "file_NativeFile_NativeFile_io_write_2"
fun io_close: Int is extern "file_NativeFile_NativeFile_io_close_0"