scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit d553bfe3ba8be8d05a14fabb1aa1f93327983646
parent 71a81dc0027c360070f33bf80828ac94df93e776
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu, 16 Feb 2017 10:24:51 +0100

[cc1] Fix debug declaration

Diffstat:
cc1/fold.c | 1-
inc/cc.h | 3++-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/fold.c b/cc1/fold.c @@ -643,7 +643,6 @@ Node * simplify(Node *np) { Node *p, *l, *r; - extern int debug; if (!np) return NULL; diff --git a/inc/cc.h b/inc/cc.h @@ -1,8 +1,9 @@ /* See LICENSE file for copyright and license details. */ #include <stddef.h> -#ifndef NDEBUG extern int debug; + +#ifndef NDEBUG #define DBG(...) dbg(__VA_ARGS__) #define DBGON() (debug = 1) #else