mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
fixed const adjustments.
This commit is contained in:
parent
f463357a38
commit
2a476df2c5
@ -101,7 +101,7 @@ struct LitProto {
|
|||||||
};
|
};
|
||||||
|
|
||||||
bytecode_ptr<HWLM>
|
bytecode_ptr<HWLM>
|
||||||
buildHWLMMatcher(const RoseBuildImpl &build, LitProto *proto);
|
buildHWLMMatcher(const RoseBuildImpl &build, const LitProto *proto);
|
||||||
|
|
||||||
std::unique_ptr<LitProto>
|
std::unique_ptr<LitProto>
|
||||||
buildFloatingMatcherProto(const RoseBuildImpl &build,
|
buildFloatingMatcherProto(const RoseBuildImpl &build,
|
||||||
|
@ -92,7 +92,7 @@ hs_database_t *buildDB(const pattern &expr, unsigned int mode) {
|
|||||||
|
|
||||||
hs_database_t *buildDB(const char *expression, unsigned int flags,
|
hs_database_t *buildDB(const char *expression, unsigned int flags,
|
||||||
unsigned int id, unsigned int mode,
|
unsigned int id, unsigned int mode,
|
||||||
hs_platform_info_t *plat) {
|
const hs_platform_info_t *plat) {
|
||||||
return buildDB({pattern(expression, flags, id)}, mode, plat);
|
return buildDB({pattern(expression, flags, id)}, mode, plat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,11 +99,11 @@ struct pattern {
|
|||||||
std::ostream &operator<<(std::ostream &o, const pattern &p);
|
std::ostream &operator<<(std::ostream &o, const pattern &p);
|
||||||
|
|
||||||
hs_database_t *buildDB(const std::vector<pattern> &patterns, unsigned int mode,
|
hs_database_t *buildDB(const std::vector<pattern> &patterns, unsigned int mode,
|
||||||
hs_platform_info *plat = nullptr);
|
const hs_platform_info *plat = nullptr);
|
||||||
hs_database_t *buildDB(const pattern &pat, unsigned int mode);
|
hs_database_t *buildDB(const pattern &pat, unsigned int mode);
|
||||||
hs_database_t *buildDB(const char *expression, unsigned int flags,
|
hs_database_t *buildDB(const char *expression, unsigned int flags,
|
||||||
unsigned int id, unsigned int mode,
|
unsigned int id, unsigned int mode,
|
||||||
hs_platform_info *plat = nullptr);
|
const hs_platform_info *plat = nullptr);
|
||||||
hs_database_t *buildDB(const char *filename, unsigned int mode,
|
hs_database_t *buildDB(const char *filename, unsigned int mode,
|
||||||
unsigned int extra_flags = 0);
|
unsigned int extra_flags = 0);
|
||||||
hs_database_t *buildDB(const char *filename, unsigned int mode,
|
hs_database_t *buildDB(const char *filename, unsigned int mode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user