From eeff5e273f22aa28e81ab080e9ffdce85ac394b8 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 22 Oct 2021 09:59:31 +0200 Subject: Prepare skeleton for bytecode interpreter --- src/bootstrap/string_view.h | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/bootstrap/string_view.h (limited to 'src/bootstrap/string_view.h') diff --git a/src/bootstrap/string_view.h b/src/bootstrap/string_view.h deleted file mode 100644 index 42273ab..0000000 --- a/src/bootstrap/string_view.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef BDL_STRINGVIEW_H -#define BDL_STRINGVIEW_H - -typedef struct StringView { - char *start; - size_t n; -} StringView; - -// Consume a character in the stream. -char sv_next(StringView *sv); - -// Check what is the current character in the stream. -char sv_peek(const StringView *sv); - -// Compare if the arguments are the same. -bool sv_equal(const StringView *a, const StringView *b); - -// Write a character to the given output stream. -void sv_write(const StringView *sv, FILE *file); - -#endif // BDL_STRINGVIEW_H -- cgit v1.2.1