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
addeabdb
Commit
addeabdb
authored
Mar 29, 2016
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jun 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Method names should start with a period
Raise a ParseError exception if not. Fixes #1885.
parent
4b586e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vmodtool.py
lib/libvcc/vmodtool.py
+2
-0
No files found.
lib/libvcc/vmodtool.py
View file @
addeabdb
...
...
@@ -691,6 +691,8 @@ def parse_func(tl, rt_type=None, pobj=None):
raise
ParseError
(
"Method name '
%
s' is illegal"
%
fname
[
1
:])
elif
not
is_c_name
(
fname
):
raise
ParseError
(
"Function name '
%
s' is illegal"
%
fname
)
elif
pobj
!=
None
and
fname
[
0
]
!=
"."
:
raise
ParseError
(
"Method name '
%
s' must start with ."
%
fname
)
t
=
tl
.
get_token
()
if
t
.
str
!=
"("
:
...
...
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