Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
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-re2
Commits
88443894
Commit
88443894
authored
Jun 03, 2017
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -Wextra to C and C++ compilation, and silence some warnings that
it uncovered.
parent
d01683d0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
Makefile.am
src/Makefile.am
+2
-2
vre2.cpp
src/vre2/vre2.cpp
+2
-2
vre2.h
src/vre2/vre2.h
+2
-2
No files found.
src/Makefile.am
View file @
88443894
AUTOMAKE_OPTIONS
=
subdir-objects
AM_CPPFLAGS
=
@VMOD_INCLUDES@
-Wall
-Werror
AM_CPPFLAGS
=
@VMOD_INCLUDES@
-Wall
-Werror
-Wextra
CFLAGS
+=
-std
=
c99
AM_CXXFLAGS
=
-Wall
-Werror
-std
=
c++11 @RE2_CFLAGS@
AM_CXXFLAGS
=
-Wall
-Werror
-
Wextra
-
std
=
c++11 @RE2_CFLAGS@
vmoddir
=
@VMOD_DIR@
vmod_LTLIBRARIES
=
libvmod_re2.la
...
...
src/vre2/vre2.cpp
View file @
88443894
...
...
@@ -63,7 +63,7 @@ vre2::match(const char *subject, const size_t len, const int ngroups,
return
re_
->
Match
(
subject
,
0
,
len
,
RE2
::
UNANCHORED
,
groups
,
ngroups
);
}
inline
const
int
inline
int
vre2
::
ngroups
()
const
{
return
re_
->
NumberOfCapturingGroups
();
...
...
@@ -130,7 +130,7 @@ vre2_init(vre2 **vre2p, const char *pattern, unsigned utf8,
CATCHALL
}
const
size_t
size_t
vre2_matchsz
(
void
)
{
return
sizeof
(
StringPiece
);
...
...
src/vre2/vre2.h
View file @
88443894
...
...
@@ -47,7 +47,7 @@ public:
virtual
~
vre2
();
bool
match
(
const
char
*
subject
,
size_t
len
,
int
ngroups
,
StringPiece
*
groups
)
const
;
const
int
ngroups
()
const
;
int
ngroups
()
const
;
int
get_group
(
const
char
*
const
name
)
const
;
bool
replace
(
string
*
text
,
const
char
*
const
rewrite
)
const
;
bool
global_replace
(
string
*
text
,
const
char
*
const
rewrite
)
const
;
...
...
@@ -76,7 +76,7 @@ extern "C" {
unsigned
perl_classes
,
unsigned
word_boundary
,
unsigned
one_line
);
const
char
*
vre2_fini
(
vre2
**
vre2
);
const
size_t
vre2_matchsz
(
void
);
size_t
vre2_matchsz
(
void
);
const
char
*
vre2_ngroups
(
vre2
*
vre2
,
int
*
const
ngroups
);
const
char
*
vre2_match
(
vre2
*
vre2
,
const
char
*
const
subject
,
size_t
len
,
int
*
const
match
,
int
ngroups
,
...
...
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