This commit is contained in:
2026-03-26 14:08:35 +01:00
parent 0d5a2b8115
commit 9e99293c56
+7 -1
View File
@@ -23,7 +23,13 @@ void scan_next_line(scan_t *s) {
} }
scan_result_t scan_eof(scan_t *s) { scan_result_t scan_eof(scan_t *s) {
return *s->cur == '\0'; return (scan_result_t) {
.ok=*s->cur == '\0',
.error=(scan_error_t){
// TODO: make reusable error value maker. kind of what we had earlier, but with no allocation
},
}
} }
bool scan_literal(scan_t *s, const char *lit) { bool scan_literal(scan_t *s, const char *lit) {