summaryrefslogtreecommitdiff
path: root/src/source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/source.cc')
-rw-r--r--src/source.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/source.cc b/src/source.cc
index bf00afc..e672838 100644
--- a/src/source.cc
+++ b/src/source.cc
@@ -2,6 +2,7 @@
#define SOURCE_CC
#include <cstdio>
+
#include "common.cc"
#include "memory.cc"
@@ -19,13 +20,13 @@ bool span_write(const Span* span, FILE* stream) {
assert_neq(stream, nullptr);
i32 rc = fprintf(stream, "Span { file: ");
- if(unlikely(rc < 0)) return false;
-
+ if (unlikely(rc < 0)) return false;
+
bool status = string_write(&span->file, stream);
- if(unlikely(!status)) return false;
+ if (unlikely(!status)) return false;
rc = fprintf(stream, ", start: %zu, end: %zu }", span->start, span->end);
- if(unlikely(rc < 0)) return false;
+ if (unlikely(rc < 0)) return false;
return true;
}
@@ -45,7 +46,7 @@ bool buffer_init(const Allocator* allocator, const String* content_in,
assert_neq(file_in, nullptr);
assert_neq(out, nullptr);
- //TODO: use defer!!
+ // TODO: use defer!!
Buffer* buffer = allocate<Buffer>(allocator, 1);
if (buffer == nullptr) return false;