version 1.4.63b
[polyglot.git] / io.h
diff --git a/io.h b/io.h
index 2e048ff..3ef43d0 100644 (file)
--- a/io.h
+++ b/io.h
@@ -1,53 +1,53 @@
-\r
-// io.h\r
-\r
-#ifndef IO_H\r
-#define IO_H\r
-\r
-// includes\r
-\r
-#include "util.h"\r
-\r
-// defined\r
-\r
-#define BufferSize 16384\r
-\r
-// types\r
-\r
-typedef struct {\r
-\r
-   int in_fd;\r
-   int out_fd;\r
-\r
-   const char * name;\r
-\r
-   bool in_eof;\r
-\r
-   sint32 in_size;\r
-   sint32 out_size;\r
-\r
-   char in_buffer[BufferSize];\r
-   char out_buffer[BufferSize];\r
-} io_t;\r
-\r
-// functions\r
-\r
-extern bool io_is_ok      (const io_t * io);\r
-\r
-extern void io_init       (io_t * io);\r
-extern void io_close      (io_t * io);\r
-\r
-extern void io_get_update (io_t * io);\r
-\r
-extern bool io_peek       (io_t * io);\r
-\r
-extern bool io_line_ready (const io_t * io);\r
-extern bool io_get_line   (io_t * io, char string[], int size);\r
-\r
-extern void io_send       (io_t * io, const char format[], ...);\r
-extern void io_send_queue (io_t * io, const char format[], ...);\r
-\r
-#endif // !defined IO_H\r
-\r
-// end of io.h\r
-\r
+
+// io.h
+
+#ifndef IO_H
+#define IO_H
+
+// includes
+
+#include "util.h"
+
+// defined
+
+#define BufferSize 16384
+
+// types
+
+typedef struct {
+
+   int in_fd;
+   int out_fd;
+
+   const char * name;
+
+   bool in_eof;
+
+   sint32 in_size;
+   sint32 out_size;
+
+   char in_buffer[BufferSize];
+   char out_buffer[BufferSize];
+} io_t;
+
+// functions
+
+extern bool io_is_ok      (const io_t * io);
+
+extern void io_init       (io_t * io);
+extern void io_close      (io_t * io);
+
+extern void io_get_update (io_t * io);
+
+extern bool io_peek       (io_t * io);
+
+extern bool io_line_ready (const io_t * io);
+extern bool io_get_line   (io_t * io, char string[], int size);
+
+extern void io_send       (io_t * io, const char format[], ...);
+extern void io_send_queue (io_t * io, const char format[], ...);
+
+#endif // !defined IO_H
+
+// end of io.h
+