Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
00dbfb76
Commit
00dbfb76
authored
Mar 06, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for naming arguments in .vcc files
parent
640b2e4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
vmodtool.py
lib/libvcl/vmodtool.py
+5
-0
vmod.vcc
lib/libvmod_debug/vmod.vcc
+1
-1
No files found.
lib/libvcl/vmodtool.py
View file @
00dbfb76
...
...
@@ -265,6 +265,8 @@ class func(object):
fo
.
write
(
self
.
pfx
)
for
a
in
self
.
al
:
fo
.
write
(
", "
+
ctypes
[
a
.
typ
])
if
a
.
nam
!=
None
:
fo
.
write
(
" "
+
a
.
nam
)
fo
.
write
(
");
\n
"
)
def
c_typedef
(
self
,
modname
):
...
...
@@ -459,6 +461,9 @@ def parse_func(tl, rt_type = None, obj=None):
al
.
append
(
arg
(
t
.
str
))
else
:
raise
Exception
(
"ARG?
%
s"
%
t
.
str
)
if
is_c_name
(
tl
[
0
]
.
str
):
al
[
-
1
]
.
nam
=
tl
[
0
]
.
str
t
=
tl
.
pop
(
0
)
if
tl
[
0
]
.
str
==
","
:
tl
.
pop
(
0
)
elif
tl
[
0
]
.
str
!=
")"
:
...
...
lib/libvmod_debug/vmod.vcc
View file @
00dbfb76
...
...
@@ -32,6 +32,6 @@ Function STRING author(ENUM { phk, des, kristian, mithrandir })
Function VOID test_priv_call(PRIV_CALL)
Function VOID test_priv_vcl(PRIV_VCL)
Object obj(STRING) {
Method STRING .foo(STRING)
Method STRING .foo(STRING
why
)
Method TIME .date()
}
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