[hackers] [scc] [cc1] Use ansi syntax for complex function pointer expressions || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 20 May 2016 15:34:06 +0200 (CEST)

commit 7f67b52547e174f08e25f66932e29502be2c5074
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri May 20 15:22:40 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri May 20 15:22:40 2016 +0200

    [cc1] Use ansi syntax for complex function pointer expressions
    
    For a function pointer generated from a ternary operator is better
    to use the ANSI syntax, because otherwise we have
    too many parenthesis

diff --git a/cc1/decl.c b/cc1/decl.c
index ccf1342..582f4a7 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -290,7 +290,7 @@ fundcl(struct declarators *dp)
         type.prop = 0;
 
         k_r = (yytoken == ')' || yytoken == IDEN);
- (*(k_r ? krfun : ansifun))(&type, types, syms, &ntypes, &nsyms);
+ (k_r ? krfun : ansifun)(&type, types, syms, &ntypes, &nsyms);
         expect(')');
 
         type.n.elem = ntypes;
Received on Fri May 20 2016 - 15:34:06 CEST

This archive was generated by hypermail 2.3.0 : Fri May 20 2016 - 15:36:14 CEST