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
3f242510
Commit
3f242510
authored
Mar 12, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make $ lines terminate on the first '\n[^ \t]'.
Add arg names to synopsis
parent
cd031cb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
vmodtool.py
lib/libvcc/vmodtool.py
+6
-11
vmod.vcc
lib/libvmod_debug/vmod.vcc
+1
-3
No files found.
lib/libvcc/vmodtool.py
View file @
3f242510
...
@@ -422,9 +422,9 @@ class prototype(object):
...
@@ -422,9 +422,9 @@ class prototype(object):
t
=
i
.
vcl
()
t
=
i
.
vcl
()
if
t
in
privs
:
if
t
in
privs
:
continue
continue
if
i
.
nm
is
not
None
:
t
+=
" "
+
i
.
nm
if
not
short
:
if
not
short
:
if
i
.
nm
is
not
None
:
t
+=
" "
+
i
.
nm
if
i
.
defval
is
not
None
:
if
i
.
defval
is
not
None
:
t
+=
"="
+
i
.
defval
t
+=
"="
+
i
.
defval
if
i
.
opt
:
if
i
.
opt
:
...
@@ -843,18 +843,13 @@ class vcc(object):
...
@@ -843,18 +843,13 @@ class vcc(object):
s
=
a
.
split
(
"
\n
$"
)
s
=
a
.
split
(
"
\n
$"
)
self
.
copyright
=
s
.
pop
(
0
)
.
strip
()
self
.
copyright
=
s
.
pop
(
0
)
.
strip
()
while
len
(
s
):
while
len
(
s
):
ss
=
s
.
pop
(
0
)
ss
=
re
.
split
(
'
\n
([^
\t
])'
,
s
.
pop
(
0
),
maxsplit
=
1
)
i
=
ss
.
find
(
"
\n\n
"
)
c
=
ss
[
0
]
.
split
()
if
i
>
-
1
:
d
=
""
.
join
(
ss
[
1
:])
i
+=
1
else
:
i
=
len
(
ss
)
inputline
=
ss
[:
i
]
c
=
ss
[:
i
]
.
split
()
m
=
dispatch
.
get
(
c
[
0
])
m
=
dispatch
.
get
(
c
[
0
])
if
m
is
None
:
if
m
is
None
:
err
(
"Unknown stanze $
%
s"
%
ss
[:
i
])
err
(
"Unknown stanze $
%
s"
%
ss
[:
i
])
m
([
c
[
0
],
" "
.
join
(
c
[
1
:])],
ss
[
i
:]
.
split
(
'
\n
'
),
self
)
m
([
c
[
0
],
" "
.
join
(
c
[
1
:])],
d
.
split
(
'
\n
'
),
self
)
inputline
=
None
inputline
=
None
def
rst_copyright
(
self
,
fo
):
def
rst_copyright
(
self
,
fo
):
...
...
lib/libvmod_debug/vmod.vcc
View file @
3f242510
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
$Module debug 3 Development, test and debug
$Module debug 3 Development, test and debug
$ABI strict
$ABI strict
$Prefix xyzzy
$Prefix xyzzy
DESCRIPTION
DESCRIPTION
===========
===========
...
@@ -118,8 +117,7 @@ Encrypt the HTTP header with quad-ROT13 encryption,
...
@@ -118,8 +117,7 @@ Encrypt the HTTP header with quad-ROT13 encryption,
$Function STRING argtest(
$Function STRING argtest(
STRING one, REAL two =2, STRING three= "3",
STRING one, REAL two =2, STRING three= "3",
STRING comma=",", INT four = 4,
STRING comma=",", INT four = 4,
[ STRING opt]
[ STRING opt])
)
$Function INT vre_limit()
$Function INT vre_limit()
...
...
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