diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-25 15:28:46 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-25 15:28:46 -0500 |
| commit | 70f7f15781c4e8000dbcc927984c3198f92ba15e (patch) | |
| tree | 7f3469cb097db0fdfc845cd6edd0687de034036c /builtins | |
| parent | 18db0fcee83f448258c17c7ac6ab80c623685666 (diff) | |
Implement reductions
Diffstat (limited to 'builtins')
| -rw-r--r-- | builtins/functions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/builtins/functions.c b/builtins/functions.c index 23d4fa66..9283bc38 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -27,6 +27,7 @@ public void fail(CORD fmt, ...) va_list args; va_start(args, fmt); CORD_vfprintf(stderr, fmt, args); + fputs("\n", stderr); va_end(args); raise(SIGABRT); } @@ -41,11 +42,16 @@ public void fail_source(const char *filename, int64_t start, int64_t end, CORD f CORD_vfprintf(stderr, fmt, args); va_end(args); + (void)filename; + (void)start; + (void)end; + /* file_t *file = filename ? load_file(filename) : NULL; if (filename && file) { fputs("\n", stderr); fprint_span(stderr, file, file->text+start, file->text+end, "\x1b[31;1m", 2, USE_COLOR); } + */ raise(SIGABRT); } |
