[master] 513bd412f Insert a no-op level in expression parser to make diffs more readable

Poul-Henning Kamp phk at FreeBSD.org
Mon Jun 3 07:23:12 UTC 2019


commit 513bd412f05904720579dccf3082ce8cf3f308d5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jun 3 06:48:20 2019 +0000

    Insert a no-op level in expression parser to make diffs more readable

diff --git a/lib/libvcc/vcc_expr.c b/lib/libvcc/vcc_expr.c
index 9c263e0b7..49970f2bc 100644
--- a/lib/libvcc/vcc_expr.c
+++ b/lib/libvcc/vcc_expr.c
@@ -655,7 +655,7 @@ vcc_Eval_SymFunc(struct vcc *tl, struct expr **e, struct token *t,
 
 /*--------------------------------------------------------------------
  * SYNTAX:
- *    Expr4:
+ *    Expr5:
  *	'(' ExprCor ')'
  *	symbol
  *	CNUM
@@ -664,7 +664,7 @@ vcc_Eval_SymFunc(struct vcc *tl, struct expr **e, struct token *t,
  */
 
 static void
-vcc_expr4(struct vcc *tl, struct expr **e, vcc_type_t fmt)
+vcc_expr5(struct vcc *tl, struct expr **e, vcc_type_t fmt)
 {
 	struct expr *e1, *e2;
 	const char *ip, *sign;
@@ -799,6 +799,21 @@ vcc_expr4(struct vcc *tl, struct expr **e, vcc_type_t fmt)
 	vcc_ErrWhere(tl, tl->t);
 }
 
+/*--------------------------------------------------------------------
+ * SYNTAX:
+ *    Expr4:
+ *      Expr5 
+ */
+
+static void
+vcc_expr4(struct vcc *tl, struct expr **e, vcc_type_t fmt)
+{
+
+	*e = NULL;
+	vcc_expr5(tl, e, fmt);
+	return;
+}
+
 /*--------------------------------------------------------------------
  * SYNTAX:
  *    ExprMul:


More information about the varnish-commit mailing list