Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
164ebeb4
Commit
164ebeb4
authored
Aug 21, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vmodtool: Remove STRING_LIST support
parent
9824ae5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
vmodtool.py
lib/libvcc/vmodtool.py
+1
-10
No files found.
lib/libvcc/vmodtool.py
View file @
164ebeb4
...
...
@@ -114,7 +114,6 @@ CTYPES = {
'STEVEDORE'
:
"VCL_STEVEDORE"
,
'STRANDS'
:
"VCL_STRANDS"
,
'STRING'
:
"VCL_STRING"
,
'STRING_LIST'
:
"const char *, ..."
,
'SUB'
:
"VCL_SUB"
,
'TIME'
:
"VCL_TIME"
,
'VOID'
:
"VCL_VOID"
,
...
...
@@ -234,12 +233,6 @@ class CType(object):
self
.
opt
=
False
self
.
vt
=
wl
.
pop
(
0
)
if
self
.
vt
==
"STRING_LIST"
:
deprecated
(
"STRING_LIST"
,
'''
STRING_LIST will be discontinued before the 2019-09-15 release
Please switch to STRANDS
'''
)
self
.
ct
=
CTYPES
.
get
(
self
.
vt
)
if
self
.
ct
is
None
:
err
(
"Expected type got '
%
s'"
%
self
.
vt
,
warn
=
False
)
...
...
@@ -275,7 +268,7 @@ Please switch to STRANDS
assert
w
==
","
def
vcl
(
self
,
terse
=
False
):
if
self
.
vt
in
(
"STRING_LIST"
,
"STRANDS"
)
:
if
self
.
vt
==
"STRANDS"
:
return
"STRING"
if
terse
:
return
self
.
vt
...
...
@@ -385,8 +378,6 @@ 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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment