[hackers] [scc] Fix comment in compound() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Fri, 14 Aug 2015 07:38:12 +0200 (CEST)

commit 743db5c26f0173ca447f0de8533c14abdd79f0da
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Aug 14 07:37:31 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Aug 14 07:37:31 2015 +0200

    Fix comment in compound()
    
    We have a symbolic constant now for global context, use it.

diff --git a/cc1/stmt.c b/cc1/stmt.c
index 390a906..eb701d5 100644
--- a/cc1/stmt.c
+++ b/cc1/stmt.c
_AT_@ -333,10 +333,10 @@ compound(Symbol *lbreak, Symbol *lcont, Caselist *lswitch)
 
         popctx();
         /*
- * curctx == 1 means we are at the end of a function
+ * curctx == GLOBALCTX+1 means we are at the end of a function
          * so we have to pop the context related to the parameters
          */
- if (curctx == 1)
+ if (curctx == GLOBALCTX+1)
                 popctx();
         expect('}');
 }
Received on Fri Aug 14 2015 - 07:38:12 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 14 2015 - 07:48:10 CEST