[Nickle] nickle: Branch 'master'
Keith Packard
keithp at keithp.com
Wed Jan 22 22:13:06 PST 2025
gram.y | 4 ++--
meson.build | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 6906f1dd06fc0302bb695c7fdbbf3ba25b9a70a7
Author: Keith Packard <keithp at keithp.com>
Date: Wed Jan 22 22:12:23 2025 -0800
Switch 'bool' in %union to 'boolean' for C23 compatibility
C23 makes 'bool' a keyword, so we can no longer use it as a union
member.
Signed-off-by: Keith Packard <keithp at keithp.com>
diff --git a/gram.y b/gram.y
index ecd7ba3..694edca 100644
--- a/gram.y
+++ b/gram.y
@@ -84,7 +84,7 @@ ParseNewSymbol (Publish publish, Class class, Type *type, Atom name);
SymbolPtr symbol;
NamespacePtr namespace;
CodePtr code;
- Bool bool;
+ Bool boolean;
AtomListPtr atomList;
FuncDecl funcDecl;
}
@@ -121,7 +121,7 @@ ParseNewSymbol (Publish publish, Class class, Type *type, Atom name);
%type <argDecl> argdecl
%type <argType> opt_argdefines argdefines args
%type <argDecl> argdefine
-%type <bool> opt_dotdotdot
+%type <boolean> opt_dotdotdot
%type <expr> opt_expr for_exprs expr opt_exprs exprs simpleexpr
%type <expr> opt_actuals actuals
diff --git a/meson.build b/meson.build
index cdbb965..ea2a487 100644
--- a/meson.build
+++ b/meson.build
@@ -7,7 +7,7 @@
project('nickle', 'c',
default_options: [
'buildtype=debugoptimized',
- 'c_std=gnu18',
+ 'c_std=gnu23',
'warning_level=2',
],
license : 'BSD',
More information about the Nickle
mailing list