[hackers] [scc] [cpp] define keywords before defining macros || Quentin Rameau

From: <git_AT_suckless.org>
Date: Wed, 29 Jun 2016 13:51:52 +0200 (CEST)

commit b28fbe8ac9f8a23b909f200723f8947e6f94155e
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Jun 28 19:05:29 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
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
_AT_@ -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
Received on Wed Jun 29 2016 - 13:51:52 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 29 2016 - 14:00:22 CEST