summaryrefslogtreecommitdiff
path: root/src/source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/source.cc')
-rw-r--r--src/source.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/source.cc b/src/source.cc
index b8c04a7..41458af 100644
--- a/src/source.cc
+++ b/src/source.cc
@@ -1,17 +1,16 @@
#ifndef SOURCE_CC
#define SOURCE_CC
-#include "array.cc"
#include "common.cc"
#include "memory.cc"
typedef u32 Source_Id;
struct Span {
- Source_Id id;
+ String file;
usize start, end;
- Span(Source_Id id, usize start, usize end) : id(id), start(start), end(end) {}
+ Span(String file, usize start, usize end) : file(file), start(start), end(end) {}
};
struct Buffer {
@@ -89,7 +88,6 @@ bool buffer_stack_pop(Buffer_Stack* manager, Buffer** b) {
Link* next = link->prev;
link_remove(link);
-
manager->stack = next;
Buffer* buffer = containerof(Buffer, link, link);