commit b28fbe8ac9f8a23b909f200723f8947e6f94155e
Author:     Quentin Rameau <[email protected]>
AuthorDate: Tue Jun 28 19:05:29 2016 +0200
Commit:     Quentin Rameau <[email protected]>
CommitDate: Tue Jun 28 19:05:29 2016 +0200

    [cpp] define keywords before defining macros

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 96e6404..6eb109c 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -81,20 +81,20 @@ icpp(void)
                {NULL, 0, 0}
        };
 
+       keywords(keys, NS_CPPCLAUSES);
+
        t = time(NULL);
        tm = localtime(&t);
        strftime(sdate, sizeof(sdate), "-1#\"%b %d %Y\"", tm);
        strftime(stime, sizeof(stime), "-1#\"%H:%M:%S\"", tm);
        defmacro("__DATE__")->u.s = sdate;
        defmacro("__TIME__")->u.s = stime;
-
        defmacro("__STDC_VERSION__")->u.s = "-1#199409L";
        symline = defmacro("__LINE__");
        symfile = defmacro("__FILE__");
 
        for (bp = list; *bp; ++bp)
                defmacro(*bp)->u.s = "-1#1";
-       keywords(keys, NS_CPPCLAUSES);
 }
 
 static void

Reply via email to