ox

The Ox programming language, compiler and tools (WIP)
Log | Files | Refs | README | LICENSE

commit 0866bf069793d4a9f63f801b4bd7a9b5d55b8923
parent 5f440e081055340f8eb36fdabbe0cbef0d4dc36a
Author: citbl <citbl@citbl.org>
Date:   Mon, 20 Oct 2025 22:25:04 +1000

cleanups

Diffstat:
Mmakefile | 2+-
Msrc/parser.h | 2--
Msrc/parser/parser_utils.c | 6------
3 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/makefile b/makefile @@ -25,7 +25,7 @@ debug: cc ${STD} -g -Wall -Wextra -o ${BIN} ${SRC} ${LIB} default: - cc ${STD} -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -fsanitize=address -fsanitize=undefined -o ${BIN} ${SRC} ${LIB} # -Wpedantic -Wshadow -Wconversion + cc ${STD} -g -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -fsanitize=address,undefined -o ${BIN} ${SRC} ${LIB} # -Wpedantic -Wshadow -Wconversion clean: rm -rf ${BIN} ${BIN}.* err.log diff --git a/src/parser.h b/src/parser.h @@ -62,5 +62,3 @@ Node* make_call_node(Node*, NodeVec); const char* span_str(const char* src, Span s, char* stack_alloc_chptr); const char* range_str(const char* src, size_t start, size_t end, char* stack_alloc_chptr); bool span_ident_same(Span a, Span b, const char* src); - -void error_fmt(char* buffer, const char* message, Node* node); diff --git a/src/parser/parser_utils.c b/src/parser/parser_utils.c @@ -67,12 +67,6 @@ span_ident_same(Span a, Span b, const char* src) // return s; // } -void -error_fmt(char* buffer, const char* msg, Node* node) -{ - sprintf(buffer, "%s (%s L.%zu:%zu).", msg, node->filename, node->line, node->col); -} - static void print_node(const char* source, Node* node, int level) {