[master] 346affe30 Generate include/vcl.h with proper whitespace

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 17 14:35:13 UTC 2018


commit 346affe301a7bc9e643ce2e1b18e8717bc17e18b
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Oct 17 16:29:32 2018 +0200

    Generate include/vcl.h with proper whitespace

diff --git a/lib/libvcc/generate.py b/lib/libvcc/generate.py
index 763bad5ea..5f7191f11 100755
--- a/lib/libvcc/generate.py
+++ b/lib/libvcc/generate.py
@@ -647,26 +647,26 @@ typedef void vcl_fini_f(VRT_CTX);
 typedef void vcl_func_f(VRT_CTX);
 
 struct VCL_conf {
-    unsigned            magic;
-#define VCL_CONF_MAGIC          0x7406c509      /* from /dev/random */
+	unsigned		magic;
+#define VCL_CONF_MAGIC		0x7406c509      /* from /dev/random */
 
-    unsigned            syntax;
-    VCL_BACKEND             *default_director;
-    VCL_PROBE               default_probe;
-    unsigned            nref;
-    const struct vrt_ref        *ref;
+	unsigned		syntax;
+	VCL_BACKEND		*default_director;
+	VCL_PROBE		default_probe;
+	unsigned		nref;
+	const struct vrt_ref	*ref;
 
-    unsigned            nsrc;
-    const char              **srcname;
-    const char              **srcbody;
+	unsigned		nsrc;
+	const char		**srcname;
+	const char		**srcbody;
 
-    unsigned            nvmod;
+	unsigned		nvmod;
 
-    vcl_event_f             *event_vcl;
+	vcl_event_f		*event_vcl;
 """)
 
 for i in returns:
-    fo.write("\tvcl_func_f\t\t\t*" + i[0] + "_func;\n")
+    fo.write("\tvcl_func_f\t\t*" + i[0] + "_func;\n")
 
 fo.write("\n};\n")
 fo.close()


More information about the varnish-commit mailing list