aboutsummaryrefslogtreecommitdiff
path: root/cc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-12-14 23:29:59 +0100
committerMichael Forney <mforney@mforney.org>2023-05-02 11:53:44 -0700
commit0985a7893a4b5de63a67ebab445892d9fffe275b (patch)
treef9e0bec9ebe796b499669219fdc93596c9ac84bc /cc.h
parent9ae9aa6dce652ab62c1c9ca34e8419e5dc510de1 (diff)
fix bootstrap by renaming constexpr()
The addition of C23 keywords made 'constexpr' unusable as a function name. This prevents cproc from bootstrapping. This patch simply renames the problematic function to 'evalexpr'.
Diffstat (limited to 'cc.h')
-rw-r--r--cc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc.h b/cc.h
index 6f2a193..860ca94 100644
--- a/cc.h
+++ b/cc.h
@@ -487,7 +487,7 @@ struct type *stringconcat(struct stringlit *, _Bool);
struct expr *expr(struct scope *);
struct expr *assignexpr(struct scope *);
-struct expr *constexpr(struct scope *);
+struct expr *evalexpr(struct scope *);
unsigned long long intconstexpr(struct scope *, _Bool);
void delexpr(struct expr *);