diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-19 09:15:57 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-19 09:15:57 -0700 |
commit | 1ae9a10d56fca8fe585e77533c49e5c9d680ff12 (patch) | |
tree | b6e51a3c385727efca5cd9a2ca83bc770d10a6a4 /src/bufio/impl.h | |
parent | 21055a1e5d34dda1b8151dd46a6bedca22bd73d9 (diff) |
chore: removed bufio from tree
Diffstat (limited to 'src/bufio/impl.h')
-rw-r--r-- | src/bufio/impl.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/bufio/impl.h b/src/bufio/impl.h deleted file mode 100644 index f5c3bcf..0000000 --- a/src/bufio/impl.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <u.h> -#include <io.h> -#include <bufio.h> - -enum -{ - BUF·max = 4 * 8096, - BUF·size = 4 * 4096, - BUF·ungets = 8, - BUF·err = -1, - BUF·eof = +1, -}; - -typedef struct Buffer -{ - uint8 eof; - int64 off; - int64 size; - - byte* base; - byte* pos; - byte* end; - byte b[]; -} Buffer; - -void* newbuffer(uintptr off, uintptr size); - -struct bufio·Scanner -{ - io·Reader r; - Buffer buf; -}; |