[hackers] [scc] Convert second expression of for(;;) in a condition || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 15 Aug 2015 23:27:07 +0200 (CEST)

commit 2afac7e64519cbcbf3d081a9061329badcf88344
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Aug 15 11:13:11 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Aug 15 11:13:11 2015 +0200

    Convert second expression of for(;;) in a condition

diff --git a/cc1/stmt.c b/cc1/stmt.c
index 75f9119..c31fd8d 100644
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
_AT_@ -91,7 +91,7 @@ For(Symbol *lbreak, Symbol *lcont, Caselist *lswitch)
         expect('(');
         einit = (yytoken != ';') ? expr() : NULL;
         expect(';');
- econd = (yytoken != ';') ? expr() : NULL;
+ econd = (yytoken != ';') ? condition() : NULL;
         expect(';');
         einc = (yytoken != ')') ? expr() : NULL;
         expect(')');
Received on Sat Aug 15 2015 - 23:27:07 CEST

This archive was generated by hypermail 2.3.0 : Sat Aug 15 2015 - 23:36:14 CEST