X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=io.h;h=78322620cc5cc3a7fec427ce86587401aa1a10e5;hp=ed470d6953e04eafcaf4eaa002411677654fd3d3;hb=e15efca6667b2673b4c1a5879a6917eab6800e58;hpb=0d182b4efac85dce968068bfe4509e52e9a30051 diff --git a/io.h b/io.h index ed470d6..7832262 100644 --- a/io.h +++ b/io.h @@ -8,13 +8,13 @@ #include "util.h" -// constants +// defined -const int BufferSize = 16384; +#define BufferSize 16384 // types -struct io_t { +typedef struct { int in_fd; int out_fd; @@ -28,7 +28,7 @@ struct io_t { char in_buffer[BufferSize]; char out_buffer[BufferSize]; -}; +} io_t; // functions