[hackers] [scc] Do not use a reserved namespace || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 9 Jan 2016 21:35:02 +0100 (CET)

commit e616dabd2cc1d69b5e6fb26ba8de7775c668d0ae
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 9 21:34:11 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 9 21:34:11 2016 +0100

    Do not use a reserved namespace
    
    is* is a reserved namespace and it should not be used.

diff --git a/cc1/expr.c b/cc1/expr.c
index 88c35eb..ed8eb63 100644
--- a/cc1/expr.c
+++ b/cc1/expr.c
_AT_@ -128,7 +128,7 @@ set_p1_p2:
 }
 
 static int
-isnull(Node *np)
+null(Node *np)
 {
         if (!np->constant || np->type != pvoidtype)
                 return 0;
_AT_@ -170,9 +170,9 @@ chkternary(Node *yes, Node *no)
                          * If we have a null pointer constant then
                          * convert to the another type
                          */
- if (isnull(yes))
+ if (null(yes))
                                 yes = convert(yes, no->type, 0);
- if (isnull(no))
+ if (null(no))
                                 no = convert(no, yes->type, 0);
 
                         if (!eqtype(yes->type, no->type))
Received on Sat Jan 09 2016 - 21:35:02 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 09 2016 - 21:36:32 CET