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
e90f5d70
Commit
e90f5d70
authored
May 19, 2016
by
Poul-Henning Kamp
Committed by
Lasse Karstensen
Jun 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save the VCL syntax version, we will need it later on.
parent
11c00080
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
vcc_compile.h
lib/libvcc/vcc_compile.h
+1
-0
vcc_parse.c
lib/libvcc/vcc_parse.c
+4
-4
No files found.
lib/libvcc/vcc_compile.h
View file @
e90f5d70
...
...
@@ -172,6 +172,7 @@ struct vcp {
struct
vcc
{
unsigned
magic
;
#define VCC_MAGIC 0x24ad719d
float
syntax
;
/* Parameter/Template section */
const
struct
vcp
*
param
;
...
...
lib/libvcc/vcc_parse.c
View file @
e90f5d70
...
...
@@ -291,17 +291,17 @@ vcc_ParseDirector(struct vcc *tl)
static
void
vcc_ParseVcl
(
struct
vcc
*
tl
)
{
double
ver
;
struct
token
*
tok
;
assert
(
vcc_IdIs
(
tl
->
t
,
"vcl"
));
vcc_NextToken
(
tl
);
tok
=
tl
->
t
;
ver
=
vcc_DoubleVal
(
tl
);
tl
->
syntax
=
vcc_DoubleVal
(
tl
);
ERRCHK
(
tl
);
if
(
ver
!=
4
.
0
)
{
if
(
tl
->
syntax
!=
4
.
0
)
{
// see TODO above
VSB_printf
(
tl
->
sb
,
"VCL version %.1f not supported.
\n
"
,
ver
);
VSB_printf
(
tl
->
sb
,
"VCL version %.1f not supported.
\n
"
,
tl
->
syntax
);
vcc_ErrWhere
(
tl
,
tok
);
ERRCHK
(
tl
);
}
...
...
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