[hackers] [scc] [cc1] Fix initialization order || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 13 Dec 2016 17:59:11 +0100 (CET)

commit a084860b9939d877698e1cceb49fe10dd1019f39
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Dec 13 17:53:15 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Dec 13 17:56:39 2016 +0100

    [cc1] Fix initialization order
    
    keywords() reset counterid, and icpp() was defining new types
    which had an id that after reseting counterid didn't have
    a good value.

diff --git a/cc1/main.c b/cc1/main.c
index c2ba7d3..3525cea 100644
--- a/cc1/main.c
+++ b/cc1/main.c
_AT_@ -58,9 +58,8 @@ main(int argc, char *argv[])
         int i;
 
         atexit(clean);
- itypes();
- icpp();
         ilex();
+ icpp();
 
         /* if run as cpp, only run the preprocessor */
         name = (cp = strrchr(*argv, '/')) ? cp + 1 : *argv;
Received on Tue Dec 13 2016 - 17:59:11 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 13 2016 - 18:00:41 CET