~mcf/cproc

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Remove constexpr token because it breaks the build.

John Duncan <john@exten.site>
Details
Message ID
<20220821161747.26647-1-john@exten.site>
DKIM signature
pass
Download raw message
Patch: +1 -3
---
 cc.h     | 1 -
 make.log | 1 +
 pp.c     | 1 -
 token.c  | 1 -
 4 files changed, 1 insertion(+), 3 deletions(-)
 create mode 100644 make.log

diff --git a/cc.h b/cc.h
index 0d29dde..aeb9330 100644
--- a/cc.h
+++ b/cc.h
@@ -23,7 +23,6 @@ enum tokenkind {
	TCASE,
	TCHAR,
	TCONST,
	TCONSTEXPR,
	TCONTINUE,
	TDEFAULT,
	TDO,
diff --git a/make.log b/make.log
new file mode 100644
index 0000000..e1411b6
--- /dev/null
+++ b/make.log
@@ -0,0 +1 @@
cc -std=c99 -Wall -Wpedantic -Wno-parentheses -Wno-switch -g -pipe -c -o expr.o expr.c
diff --git a/pp.c b/pp.c
index a27f7eb..f73dc35 100644
--- a/pp.c
+++ b/pp.c
@@ -569,7 +569,6 @@ keyword(struct token *tok)
		{"case",           TCASE},
		{"char",           TCHAR},
		{"const",          TCONST},
		{"constexpr",      TCONSTEXPR},
		{"continue",       TCONTINUE},
		{"default",        TDEFAULT},
		{"do",             TDO},
diff --git a/token.c b/token.c
index 1bc1249..2a03f9c 100644
--- a/token.c
+++ b/token.c
@@ -20,7 +20,6 @@ const char *tokstr[] = {
	[TCASE] = "case",
	[TCHAR] = "char",
	[TCONST] = "const",
	[TCONSTEXPR] = "constexpr",
	[TCONTINUE] = "continue",
	[TDEFAULT] = "default",
	[TDO] = "do",
-- 
2.25.1
Reply to thread Export thread (mbox)