commit bbf9abf470ddb8c0baa2424f63f67ce785af47aa
parent a564bb5b0d450239b5e5f7379a631dee4593ca28
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 23 Jul 2015 18:47:27 +0200
Remove external declarations in stmt.c
It is better to have them in cc1.h, so the correctness can be
tested in all the modules.
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/cc1/cc1.h b/cc1/cc1.h
@@ -330,8 +330,9 @@ extern Node *simplify(unsigned char, Type *tp, Node *lp, Node *rp);
extern Node *usimplify(unsigned char op, Type *tp, Node *np);
/* expr.c */
-extern Node *expr(void), *negate(Node *np), *constexpr(void),
- *iconstexpr(void);
+extern Node *expr(void), *negate(Node *np), *constexpr(void);
+extern Node *convert(Node *np, Type *tp1, char iscast);
+extern Node *iszero(Node *np), *eval(Node *np), *iconstexpr(void);
/* cpp.c */
extern void icpp(void);
diff --git a/cc1/stmt.c b/cc1/stmt.c
@@ -9,8 +9,6 @@
Symbol *curfun;
-extern Node *convert(Node *np, Type *tp1, char iscast);
-extern Node *iszero(Node *np), *eval(Node *np);
static void stmt(Symbol *lbreak, Symbol *lcont, Caselist *lswitch);
static void