[master] 6728ac7 Get the name token out of the way prior to looking for a ', ' or ')'.

Dag Haavi Finstad daghf at varnish-software.com
Tue Sep 23 11:21:44 CEST 2014


commit 6728ac74a058e8accb948fdcefde21c45f2b6d77
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date:   Tue Sep 23 11:21:42 2014 +0200

    Get the name token out of the way prior to looking for a ',' or ')'.

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 2861b40..96fa347 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -647,8 +647,8 @@ def parse_func(tl, rt_type=None, pobj=None):
 		t = tl.get_token()
 		if is_c_name(t.str):
 			al[-1].nam = t.str
-			t = None
-		elif t.str == ",":
+			t = tl.get_token()
+		if t.str == ",":
 			t = None
 		elif t.str == ")":
 			break



More information about the varnish-commit mailing list