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
0e90b4c7
Commit
0e90b4c7
authored
Jan 29, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More symbol table simplification
parent
a6234c32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
m00008.vtc
bin/varnishtest/tests/m00008.vtc
+4
-0
v00018.vtc
bin/varnishtest/tests/v00018.vtc
+6
-0
vcc_action.c
lib/libvcc/vcc_action.c
+2
-6
No files found.
bin/varnishtest/tests/m00008.vtc
View file @
0e90b4c7
...
...
@@ -6,6 +6,10 @@ varnish v1 -errvcl {Module debug conflicts with other symbol.} {
backend b { .host = "127.0.0.1"; }
sub debug {}
import debug;
sub vcl_recv {
call debug;
}
}
server s1 {
...
...
bin/varnishtest/tests/v00018.vtc
View file @
0e90b4c7
...
...
@@ -126,3 +126,9 @@ varnish v1 -errvcl {Not a valid action in method 'vcl_recv'} {
return (synth(503));
}
}
varnish v1 -errvcl {Not a VCL label:} {
sub vcl_recv {
return (vcl(vcl_recv));
}
}
lib/libvcc/vcc_action.c
View file @
0e90b4c7
...
...
@@ -255,13 +255,9 @@ parse_return_vcl(struct vcc *tl)
ExpectErr
(
tl
,
'('
);
vcc_NextToken
(
tl
);
ExpectErr
(
tl
,
ID
);
sym
=
VCC_Symbol
Tok
(
tl
,
SYM_VCL
,
0
);
sym
=
VCC_Symbol
Get
(
tl
,
SYM_VCL
,
"Not a VCL label"
,
XREF_NONE
);
ERRCHK
(
tl
);
if
(
sym
==
NULL
)
{
VSB_printf
(
tl
->
sb
,
"Not a VCL label:
\n
"
);
vcc_ErrWhere
(
tl
,
tl
->
t
);
return
;
}
AN
(
sym
);
if
(
sym
->
eval_priv
==
NULL
)
{
VSB_printf
(
tl
->
fi
,
"%s VCL %s */
\n
"
,
VCC_INFO_PREFIX
,
sym
->
name
);
...
...
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