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
de0ad935
Commit
de0ad935
authored
Mar 05, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version the reserved word symbols to VCL41+
Spotted by: Dridi
parent
3c5fc326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
vcc_parse.c
lib/libvcc/vcc_parse.c
+10
-8
No files found.
lib/libvcc/vcc_parse.c
View file @
de0ad935
...
...
@@ -347,14 +347,16 @@ typedef void parse_f(struct vcc *tl);
static
struct
toplev
{
const
char
*
name
;
parse_f
*
func
;
unsigned
vcllo
;
unsigned
vclhi
;
}
toplev
[]
=
{
{
"acl"
,
vcc_ParseAcl
},
{
"sub"
,
vcc_ParseFunction
},
{
"backend"
,
vcc_ParseBackend
},
{
"probe"
,
vcc_ParseProbe
},
{
"import"
,
vcc_ParseImport
},
{
"vcl"
,
vcc_ParseVcl
},
{
"default"
,
NULL
},
{
"acl"
,
vcc_ParseAcl
,
VCL_41
,
VCL_HIGH
},
{
"sub"
,
vcc_ParseFunction
,
VCL_41
,
VCL_HIGH
},
{
"backend"
,
vcc_ParseBackend
,
VCL_41
,
VCL_HIGH
},
{
"probe"
,
vcc_ParseProbe
,
VCL_41
,
VCL_HIGH
},
{
"import"
,
vcc_ParseImport
,
VCL_41
,
VCL_HIGH
},
{
"vcl"
,
vcc_ParseVcl
,
VCL_41
,
VCL_HIGH
},
{
"default"
,
NULL
,
VCL_41
,
VCL_HIGH
},
{
NULL
,
NULL
}
};
...
...
@@ -432,5 +434,5 @@ vcc_Parse_Init(struct vcc *tl)
struct
toplev
*
tp
;
for
(
tp
=
toplev
;
tp
->
name
!=
NULL
;
tp
++
)
AN
(
VCC_MkSym
(
tl
,
tp
->
name
,
SYM_NONE
,
VCL_LOW
,
VCL_HIGH
));
AN
(
VCC_MkSym
(
tl
,
tp
->
name
,
SYM_NONE
,
tp
->
vcllo
,
tp
->
vclhi
));
}
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