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
20d84897
Commit
20d84897
authored
Feb 06, 2018
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refer to VCL subroutines as such in error messages
parent
8c2ed012
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
v00020.vtc
bin/varnishtest/tests/v00020.vtc
+1
-1
vcc_parse.c
lib/libvcc/vcc_parse.c
+2
-2
No files found.
bin/varnishtest/tests/v00020.vtc
View file @
20d84897
...
...
@@ -203,7 +203,7 @@ varnish v1 -errvcl {Name of function, 'foo.bar', contains illegal character '.'}
}
}
varnish v1 -errvcl {The names 'vcl*' are reserved for
method
s.} {
varnish v1 -errvcl {The names 'vcl*' are reserved for
subroutine
s.} {
sub vcl_bar {
}
sub vcl_recv {
...
...
lib/libvcc/vcc_parse.c
View file @
20d84897
...
...
@@ -228,9 +228,9 @@ vcc_ParseFunction(struct vcc *tl)
(
t
->
b
[
1
]
==
'c'
||
t
->
b
[
1
]
==
'C'
)
&&
(
t
->
b
[
2
]
==
'l'
||
t
->
b
[
2
]
==
'L'
))
{
VSB_printf
(
tl
->
sb
,
"The names 'vcl*' are reserved for
method
s.
\n
"
);
"The names 'vcl*' are reserved for
subroutine
s.
\n
"
);
vcc_ErrWhere
(
tl
,
t
);
VSB_printf
(
tl
->
sb
,
"Valid vcl_*
method
s are:
\n
"
);
VSB_printf
(
tl
->
sb
,
"Valid vcl_*
subroutine
s are:
\n
"
);
VTAILQ_FOREACH
(
p
,
&
tl
->
procs
,
list
)
{
if
(
p
->
method
!=
NULL
)
VSB_printf
(
tl
->
sb
,
"
\t
%s
\n
"
,
...
...
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