Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-frozen
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
libvmod-frozen
Commits
40b2c734
Unverified
Commit
40b2c734
authored
Jun 26, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $Restrict
parent
0e4a4cab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
vmod_frozen.c
src/vmod_frozen.c
+1
-5
vmod_frozen.vcc
src/vmod_frozen.vcc
+1
-1
No files found.
src/vmod_frozen.c
View file @
40b2c734
...
@@ -177,11 +177,7 @@ vmod_parser_expect(VRT_CTX,
...
@@ -177,11 +177,7 @@ vmod_parser_expect(VRT_CTX,
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
vfpa
,
VMOD_FROZEN_PARSER_MAGIC
);
CHECK_OBJ_NOTNULL
(
vfpa
,
VMOD_FROZEN_PARSER_MAGIC
);
if
(
ctx
->
method
!=
VCL_MET_INIT
)
{
assert
(
ctx
->
method
==
VCL_MET_INIT
);
VRT_fail
(
ctx
,
"%s.expect() may only be called from vcl_init {}"
,
vfpa
->
vcl_name
);
return
;
}
if
(
vfpa
->
n_expect
==
vfpa
->
s_expect
)
{
if
(
vfpa
->
n_expect
==
vfpa
->
s_expect
)
{
n
=
vfpa
->
s_expect
<<
1
;
n
=
vfpa
->
s_expect
<<
1
;
...
...
src/vmod_frozen.vcc
View file @
40b2c734
...
@@ -82,7 +82,7 @@ value. For ``type = ANY``, `null` is _not_ implied.
...
@@ -82,7 +82,7 @@ value. For ``type = ANY``, `null` is _not_ implied.
The `required` argument speifies if presence of this value is required
The `required` argument speifies if presence of this value is required
for successful `.match()`
for successful `.match()`
This method may only be called from ``vcl_init {}``.
$Restrict vcl_init
For best efficiency, call `.expect` according to the most likely order
For best efficiency, call `.expect` according to the most likely order
of elements in JSON input to be parsed.
of elements in JSON input to be parsed.
...
...
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