pep8analysis: add copyright and doc to the pep8analysis_web module
[nit.git] / c_src / stream_nit.h
index 3ee6d51..3a4d51e 100644 (file)
 
 #include <unistd.h>
 
-#include <stream._nitni.h>
+int stream_FDStream_FDStream_native_read_char_1(void *s, int fd);
 
 #define stream_FDStream_FDStream_native_close_1(self, p0) (close(p0))
-
-int stream_FDStream_FDStream_native_read_char_1(FDStream s, int fd);
-void stream_FDStream_FDStream_write_char_1(FDStream s, int fd, int c);
 #define stream_FDStream_FDStream_native_read_3(s, i, b, l) read((i), ((b)), ((l)))
 #define stream_FDStream_FDStream_native_write_3(s, i, b, l) write((i), ((b)), ((l)))
+#define stream_FDStream_FDStream_native_write_char_2(s, i, c) write((i), (char[]){(c)}, 1 )
 
 #endif