[master] 207280b9b have vmodtool check STRING_LIST position
Nils Goroll
nils.goroll at uplex.de
Wed Feb 20 08:51:07 UTC 2019
commit 207280b9b7c96bf10f9271aaeafd8cfac0532c69
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Feb 20 09:48:15 2019 +0100
have vmodtool check STRING_LIST position
noté en passant
diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 30e9a50f9..bbde1ca98 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -361,6 +361,8 @@ class ProtoType(object):
t = arg(wl, names, st.vcc.enums, ',')
if t.vt == 'VOID':
err("arguments can not be of type '%s'" % t.vt, warn=False)
+ if t.vt == 'STRING_LIST' and len(wl) > 1:
+ err("'%s' must be the last argument" % t.vt, warn=False)
if t.nm is None:
t.nm2 = "arg%d" % n
else:
More information about the varnish-commit
mailing list