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
Show 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):
t
=
i
.
vcl
()
if
t
in
privs
:
continue
if
not
short
:
if
i
.
nm
is
not
None
:
t
+=
" "
+
i
.
nm
if
not
short
:
if
i
.
defval
is
not
None
:
t
+=
"="
+
i
.
defval
if
i
.
opt
:
...
...
@@ -843,18 +843,13 @@ class vcc(object):
s
=
a
.
split
(
"
\n
$"
)
self
.
copyright
=
s
.
pop
(
0
)
.
strip
()
while
len
(
s
):
ss
=
s
.
pop
(
0
)
i
=
ss
.
find
(
"
\n\n
"
)
if
i
>
-
1
:
i
+=
1
else
:
i
=
len
(
ss
)
inputline
=
ss
[:
i
]
c
=
ss
[:
i
]
.
split
()
ss
=
re
.
split
(
'
\n
([^
\t
])'
,
s
.
pop
(
0
),
maxsplit
=
1
)
c
=
ss
[
0
]
.
split
()
d
=
""
.
join
(
ss
[
1
:])
m
=
dispatch
.
get
(
c
[
0
])
if
m
is
None
:
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
def
rst_copyright
(
self
,
fo
):
...
...
lib/libvmod_debug/vmod.vcc
View file @
3f242510
...
...
@@ -28,7 +28,6 @@
$Module debug 3 Development, test and debug
$ABI strict
$Prefix xyzzy
DESCRIPTION
===========
...
...
@@ -118,8 +117,7 @@ Encrypt the HTTP header with quad-ROT13 encryption,
$Function STRING argtest(
STRING one, REAL two =2, STRING three= "3",
STRING comma=",", INT four = 4,
[ STRING opt]
)
[ STRING opt])
$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