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
3726b255
Commit
3726b255
authored
Jun 20, 2019
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start being a little bit annoying about STRING_LIST going away
parent
94abb772
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
vmodtool.py
lib/libvcc/vmodtool.py
+24
-1
No files found.
lib/libvcc/vmodtool.py
View file @
3726b255
...
...
@@ -42,6 +42,7 @@ import unittest
import
copy
import
json
import
hashlib
import
time
AMBOILERPLATE
=
'''
# Generated by vmodtool.py --boilerplate.
...
...
@@ -117,6 +118,22 @@ CTYPES = {
CTYPES
.
update
(
PRIVS
)
DEPRECATED
=
{}
#######################################################################
def
deprecated
(
key
,
txt
):
'''
Be annoying about features which are going away
'''
if
DEPRECATED
.
get
(
key
):
return
sys
.
stderr
.
write
(
'#'
*
72
+
'
\n
'
)
sys
.
stderr
.
write
(
txt
+
'
\n
'
)
sys
.
stderr
.
write
(
'#'
*
72
+
'
\n
'
)
time
.
sleep
(
3
)
DEPRECATED
[
key
]
=
True
#######################################################################
def
is_quoted
(
txt
):
...
...
@@ -213,6 +230,12 @@ 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
)
...
...
@@ -774,7 +797,7 @@ class ObjectStanza(Stanza):
ll
=
[
"$OBJ"
,
self
.
proto
.
name
,
{
"NULL_OK"
:
self
.
null_ok
},
{
"NULL_OK"
:
self
.
null_ok
},
"struct
%
s
%
s_
%
s"
%
(
self
.
vcc
.
sympfx
,
self
.
vcc
.
modname
,
self
.
proto
.
name
),
]
...
...
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