[hackers] [scc] Remove external declarations in stmt.c || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 23 Jul 2015 21:06:55 +0200 (CEST)

commit bbf9abf470ddb8c0baa2424f63f67ce785af47aa
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Thu Jul 23 18:47:27 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Thu Jul 23 18:47:27 2015 +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.

diff --git a/cc1/cc1.h b/cc1/cc1.h
index ec2ff40..3399bc8 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
_AT_@ -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
index e409cd3..f32187e 100644
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
_AT_@ -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
Received on Thu Jul 23 2015 - 21:06:55 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 23 2015 - 21:12:11 CEST