diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 12:52:38 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 12:52:38 -0600 |
| commit | e569552eb9766bc663871b6f3cb203a77e83503c (patch) | |
| tree | a3bd6f994a6c61aae2430e51de762880b002be03 /src/exec.h | |
| parent | 5d830cb1c04da59553d3af848340162a7be9fa58 (diff) | |
| download | zash-e569552eb9766bc663871b6f3cb203a77e83503c.tar.gz | |
C23: constexpr internal linkage, naming and trailing commas; clangd at C23
A constexpr at file scope has external linkage, so the CSI offsets and
CSI_MAX_CALLS now say static. The naming check gets the C23 spellings
wrap the check itself: typed constants keep the macro case, and a local
static constexpr table keeps the variable case. .clangd says -std=c23,
which it still did not, so the editor could not read constexpr at all.
Diffstat (limited to 'src/exec.h')
| -rw-r--r-- | src/exec.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -37,7 +37,7 @@ typedef enum skip_type { SKIP_NONE, SKIP_BREAK, SKIP_CONTINUE, - SKIP_RETURN + SKIP_RETURN, } skip_type; extern skip_type skip_kind; /**< a break/continue/return is in progress */ @@ -61,8 +61,7 @@ void exec_init(void); */ enum { BI_SPECIAL = 1u << 0, /**< POSIX special builtin */ - BI_PURE = 1u << 1, /**< only writes to out1/out2: safe to run in the - shell in place of a subshell */ + BI_PURE = 1u << 1, }; /** |
