shithub: scc

Download patch

ref: bbf9abf470ddb8c0baa2424f63f67ce785af47aa
parent: a564bb5b0d450239b5e5f7379a631dee4593ca28
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Jul 23 14:47:27 EDT 2015

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.

--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -330,8 +330,9 @@
 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);
--- 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