[template-glib] expr-parser.y: fix function definition
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] expr-parser.y: fix function definition
- Date: Wed, 4 May 2022 20:48:22 +0000 (UTC)
commit 442985cbd140d57acf718431dae34b3c7acfef83
Author: Christian Hergert <chergert redhat com>
Date: Wed May 4 13:47:18 2022 -0700
expr-parser.y: fix function definition
This wasn't supposed to be changed previously.
src/tmpl-expr-parser.y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tmpl-expr-parser.y b/src/tmpl-expr-parser.y
index a5d798f..95b1308 100644
--- a/src/tmpl-expr-parser.y
+++ b/src/tmpl-expr-parser.y
@@ -115,11 +115,11 @@ expr: /* nothing */ EOL {
add_expr_to_parser (parser, $1);
YYACCEPT;
}
- | FUNC NAME '(' symlist ')' '{' list '}' EOL {
+ | FUNC NAME '(' symlist ')' '=' list EOL {
define_function (parser, $2, g_steal_pointer (&$4), $7);
YYACCEPT;
}
- | FUNC NAME '(' ')' '{' list '}' EOL {
+ | FUNC NAME '(' ')' '=' list EOL {
define_function (parser, $2, NULL, $6);
YYACCEPT;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]