From da9fe1e040b04cbe816c67fab7cb45d7db75107c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 26 Apr 2024 16:29:55 +0300 Subject: restructure debugging a bit --- src/scope.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/scope.c') diff --git a/src/scope.c b/src/scope.c index 290dfd6..d2521c8 100644 --- a/src/scope.c +++ b/src/scope.c @@ -5,16 +5,6 @@ #include #include -struct scope { - size_t id; - struct scope *parent; - - const char *fname; - const char *buf; - - struct vec visible; -}; - struct vec scopes = {0}; struct scope *create_scope() @@ -139,15 +129,3 @@ void destroy_scopes() vec_destroy(&scopes); } - -void semantic_error(struct scope *scope, struct ast *n, const char *msg, ...) -{ - va_list args; - va_start(args, msg); - struct src_issue issue; - issue.loc = n->loc; - issue.fname = scope->fname; - issue.buf = scope->buf; - vsrc_issue(issue, msg, args); - va_end(args); -} -- cgit v1.2.3