[master] 3192a79ad vcc: link procs to their symbol

Nils Goroll nils.goroll at uplex.de
Mon Feb 8 17:52:03 UTC 2021


commit 3192a79ad8f1680f6e55f65424148ed5a3d1d0ad
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Fri Jan 29 14:33:24 2021 +0100

    vcc: link procs to their symbol

diff --git a/lib/libvcc/vcc_compile.c b/lib/libvcc/vcc_compile.c
index cc3803d6b..4d728d7d7 100644
--- a/lib/libvcc/vcc_compile.c
+++ b/lib/libvcc/vcc_compile.c
@@ -161,6 +161,7 @@ vcc_NewProc(struct vcc *tl, struct symbol *sym)
 	p->cname = VSB_new_auto();
 	AN(p->cname);
 	sym->proc = p;
+	p->sym = sym;
 	return (p);
 }
 
diff --git a/lib/libvcc/vcc_compile.h b/lib/libvcc/vcc_compile.h
index d4b1ea8db..47d0fdd62 100644
--- a/lib/libvcc/vcc_compile.h
+++ b/lib/libvcc/vcc_compile.h
@@ -215,6 +215,7 @@ struct proc {
 	struct vsb		*cname;
 	struct vsb		*prologue;
 	struct vsb		*body;
+	struct symbol		*sym;
 };
 
 struct inifin {


More information about the varnish-commit mailing list