Mailing List Archive

[master] 9ac1e8b01 VGC cstyle
commit 9ac1e8b011b5d3c350ca6fc230fd854d05f76d30
Author: Nils Goroll <nils.goroll@uplex.de>
Date: Wed Jan 20 16:45:29 2021 +0100

VGC cstyle

do someone a favor and reformat the VPI_vcl_fini() call.

Because ifp->fin basically gets output via "\t%s\n", this triggers my
OCD in a some other way ;), but I am not going down that rabbit hole
at this point...

diff --git a/lib/libvcc/vcc_compile.c b/lib/libvcc/vcc_compile.c
index a7b2a690a..b55de8642 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -741,7 +741,8 @@ vcc_CompileSource(struct vcc *tl, struct source *sp, const char *jfile)
* must always be called, also on failure.
*/
ifp->ignore_errors = 1;
- VSB_cat(ifp->fin, "\t\tVGC_function_vcl_fini(ctx);VPI_vcl_fini(ctx);");
+ VSB_cat(ifp->fin, "\t\tVGC_function_vcl_fini(ctx);\n");
+ VSB_cat(ifp->fin, "\t\t\tVPI_vcl_fini(ctx);");

/* Emit method functions */
Fh(tl, 1, "\n");
_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit