aboutsummaryrefslogtreecommitdiff
path: root/src/bufio/impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bufio/impl.h')
-rw-r--r--src/bufio/impl.h34
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;
-};