~mcf/cproc

Remove constexpr token because it breaks the build. v1 PROPOSED

John Duncan: 1
 Remove constexpr token because it breaks the build.

 4 files changed, 1 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mcf/cproc/patches/34829/mbox | git am -3
Learn more about email & git

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

---
 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