diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-04 23:18:54 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-06 11:18:37 -0800 |
commit | 9215c35975be745628e8188473154c7e476add55 (patch) | |
tree | 14d4f5d51381f8a59803233c24dfafc846ddf583 /src/io/line.hpp | |
parent | 9544985ccbb20d7f8377c63a4e59d1ff97b844ac (diff) | |
download | tmwa-9215c35975be745628e8188473154c7e476add55.tar.gz tmwa-9215c35975be745628e8188473154c7e476add55.tar.bz2 tmwa-9215c35975be745628e8188473154c7e476add55.tar.xz tmwa-9215c35975be745628e8188473154c7e476add55.zip |
Wrap remaining FDs in a class
Diffstat (limited to 'src/io/line.hpp')
-rw-r--r-- | src/io/line.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/io/line.hpp b/src/io/line.hpp index 6dccfd9..78e1d25 100644 --- a/src/io/line.hpp +++ b/src/io/line.hpp @@ -24,6 +24,7 @@ # include "../strings/fstring.hpp" # include "../strings/zstring.hpp" +# include "fd.hpp" # include "read.hpp" @@ -67,7 +68,7 @@ namespace io LineReader(ZString name); LineReader(LineReader&&) = delete; // needed for unit tests - LineReader(ZString name, int fd); + LineReader(ZString name, FD fd); bool read_line(Line& l); bool is_open(); @@ -80,7 +81,7 @@ namespace io explicit LineCharReader(ZString name); LineCharReader(LineCharReader&&) = delete; - LineCharReader(ZString name, int fd); + LineCharReader(ZString name, FD fd); bool get(LineChar& c); void adv(); |