[master] 7f2cd24 Fix indentation in emitted C code

Poul-Henning Kamp phk at varnish-cache.org
Tue Apr 23 11:20:09 CEST 2013


commit 7f2cd24bc46da877329fc8a0bf02e75b1d5d80ac
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Apr 23 09:11:39 2013 +0000

    Fix indentation in emitted C code

diff --git a/lib/libvcl/vcc_action.c b/lib/libvcl/vcc_action.c
index feea593..6a08e45 100644
--- a/lib/libvcl/vcc_action.c
+++ b/lib/libvcl/vcc_action.c
@@ -262,10 +262,12 @@ parse_ban(struct vcc *tl)
 	ExpectErr(tl, '(');
 	vcc_NextToken(tl);
 
-	Fb(tl, 1, "VRT_ban_string(");
+	Fb(tl, 1, "VRT_ban_string(\n");
+	tl->indent += INDENT;
 	vcc_Expr(tl, STRING);
+	tl->indent -= INDENT;
 	ERRCHK(tl);
-	Fb(tl, 0, ");\n");
+	Fb(tl, 1, ");\n");
 
 	ExpectErr(tl, ')');
 	vcc_NextToken(tl);



More information about the varnish-commit mailing list