Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-selector
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-selector
Commits
30885ed8
Commit
30885ed8
authored
Feb 02, 2021
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
De-dup a function that was accidentally copied.
parent
4159b52c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
21 deletions
+6
-21
associate.c
src/associate.c
+0
-20
vmod_selector.c
src/vmod_selector.c
+1
-1
vmod_selector.h
src/vmod_selector.h
+5
-0
No files found.
src/associate.c
View file @
30885ed8
...
...
@@ -28,26 +28,6 @@
#include "vmod_selector.h"
static
struct
match_data
*
get_existing_match_data
(
VRT_CTX
,
const
struct
vmod_selector_set
*
const
restrict
set
,
const
char
*
const
restrict
method
)
{
struct
vmod_priv
*
task
;
struct
match_data
*
match
;
task
=
VRT_priv_task
(
ctx
,
set
);
AN
(
task
);
if
(
task
->
priv
==
NULL
)
{
VFAIL
(
ctx
,
"%s.%s() called without prior match"
,
set
->
vcl_name
,
method
);
return
(
NULL
);
}
WS_Assert_Allocated
(
ctx
->
ws
,
task
->
priv
,
sizeof
(
*
match
));
CAST_OBJ
(
match
,
task
->
priv
,
MATCH_DATA_MAGIC
);
return
match
;
}
static
unsigned
select
(
VRT_CTX
,
const
struct
match_data
*
const
restrict
match
,
const
char
*
const
restrict
obj
,
VCL_ENUM
const
restrict
selects
,
...
...
src/vmod_selector.c
View file @
30885ed8
...
...
@@ -706,7 +706,7 @@ vmod_set_hasprefix(VRT_CTX, struct vmod_selector_set *set, VCL_STRING subject)
return
(
match
->
n
>
0
);
}
st
atic
st
ruct
match_data
*
struct
match_data
*
get_existing_match_data
(
VRT_CTX
,
const
struct
vmod_selector_set
*
const
restrict
set
,
const
char
*
const
restrict
method
)
...
...
src/vmod_selector.h
View file @
30885ed8
...
...
@@ -87,3 +87,8 @@ is_added(const struct vmod_selector_set *set, unsigned idx,
return
(
vbit_test
(
set
->
bitmaps
->
bitmaps
[
bitmap
],
idx
));
}
struct
match_data
*
get_existing_match_data
(
const
struct
vrt_ctx
*
ctx
,
const
struct
vmod_selector_set
*
const
restrict
set
,
const
char
*
const
restrict
method
);
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