Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
2b623eaf
Commit
2b623eaf
authored
Apr 28, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a parameter to disable inline-C code in VCL
parent
0b008770
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
mgt.h
bin/varnishd/mgt/mgt.h
+1
-0
mgt_param.c
bin/varnishd/mgt/mgt_param.c
+6
-0
mgt_vcc.c
bin/varnishd/mgt/mgt_vcc.c
+2
-0
No files found.
bin/varnishd/mgt/mgt.h
View file @
2b623eaf
...
...
@@ -105,6 +105,7 @@ extern char *mgt_cc_cmd;
extern
const
char
*
mgt_vcl_dir
;
extern
const
char
*
mgt_vmod_dir
;
extern
unsigned
mgt_vcc_err_unref
;
extern
unsigned
mgt_vcc_allow_inline_c
;
#define REPORT0(pri, fmt) \
do { \
...
...
bin/varnishd/mgt/mgt_param.c
View file @
2b623eaf
...
...
@@ -1177,11 +1177,17 @@ static const struct parspec input_parspec[] = {
"."
,
#endif
NULL
},
{
"vcc_err_unref"
,
tweak_bool
,
&
mgt_vcc_err_unref
,
0
,
0
,
"Unreferenced VCL objects result in error.
\n
"
,
0
,
"on"
,
"bool"
},
{
"vcc_allow_inline_c"
,
tweak_bool
,
&
mgt_vcc_allow_inline_c
,
0
,
0
,
"Allow inline C code in VCL.
\n
"
,
0
,
"on"
,
"bool"
},
{
"pcre_match_limit"
,
tweak_uint
,
&
mgt_param
.
vre_limits
.
match
,
...
...
bin/varnishd/mgt/mgt_vcc.c
View file @
2b623eaf
...
...
@@ -63,6 +63,7 @@ char *mgt_cc_cmd;
const
char
*
mgt_vcl_dir
;
const
char
*
mgt_vmod_dir
;
unsigned
mgt_vcc_err_unref
;
unsigned
mgt_vcc_allow_inline_c
;
static
struct
vcc
*
vcc
;
...
...
@@ -139,6 +140,7 @@ run_vcc(void *priv)
VCC_VCL_dir
(
vcc
,
mgt_vcl_dir
);
VCC_VMOD_dir
(
vcc
,
mgt_vmod_dir
);
VCC_Err_Unref
(
vcc
,
mgt_vcc_err_unref
);
VCC_Allow_InlineC
(
vcc
,
mgt_vcc_allow_inline_c
);
csrc
=
VCC_Compile
(
vcc
,
sb
,
vp
->
vcl
);
AZ
(
VSB_finish
(
sb
));
if
(
VSB_len
(
sb
))
...
...
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