[hackers] [scc] [libc] Fix debug declaration || Quentin Rameau
commit cfcf74f963ca7a62f4dbe4a3496edfe7a108ed82
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Feb 16 10:24:51 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri Feb 17 10:51:29 2017 +0100
[libc] Fix debug declaration
diff --git a/cc1/fold.c b/cc1/fold.c
index 7f8416a..2cfa316 100644
--- a/cc1/fold.c
+++ b/cc1/fold.c
_AT_@ -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
index be86109..dfbf96a 100644
--- a/inc/cc.h
+++ b/inc/cc.h
_AT_@ -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
Received on Fri Feb 17 2017 - 10:52:56 CET
This archive was generated by hypermail 2.3.0
: Fri Feb 17 2017 - 11:00:34 CET