From 74ca21a41bcb5a49d19e65c9ba88f1f864cb7095 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sat, 3 Sep 2016 19:57:54 +0200 Subject: *: big code reorganization. - source and tests are now splitted by target - utils lib is now called common still pending move error.c from blogc to common --- src/debug.c | 80 ------------------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 src/debug.c (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c deleted file mode 100644 index 9689028..0000000 --- a/src/debug.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * blogc: A blog compiler. - * Copyright (C) 2015-2016 Rafael G. Martins - * - * This program can be distributed under the terms of the BSD License. - * See the file LICENSE. - */ - -#include - -#include "template-parser.h" -#include "utils.h" -#include "debug.h" - - -static const char* -get_operator(blogc_template_stmt_operator_t op) -{ - if (op & BLOGC_TEMPLATE_OP_NEQ) - return "!="; - if (op & BLOGC_TEMPLATE_OP_EQ) { - if (op & BLOGC_TEMPLATE_OP_LT) - return "<="; - else if (op & BLOGC_TEMPLATE_OP_GT) - return ">="; - return "=="; - } - if (op & BLOGC_TEMPLATE_OP_LT) - return "<"; - else if (op & BLOGC_TEMPLATE_OP_GT) - return ">"; - return ""; -} - - -void -blogc_debug_template(sb_slist_t *stmts) -{ - for (sb_slist_t *tmp = stmts; tmp != NULL; tmp = tmp->next) { - blogc_template_stmt_t *data = tmp->data; - fprintf(stderr, "DEBUG: