aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK.Kosako <kosako@sofnec.co.jp>2019-09-20 15:51:09 +0900
committerK.Kosako <kosako@sofnec.co.jp>2019-09-20 17:11:54 +0900
commit7b5f2a499595d450c214a5398447c1eb6ac6e0d6 (patch)
treebade7a99f37090e6b24642b826eb0cb3401c1644
parent3240aa01cf88ae562ba63f957ba888839ead16fc (diff)
downloadoniguruma-7b5f2a499595d450c214a5398447c1eb6ac6e0d6.zip
oniguruma-7b5f2a499595d450c214a5398447c1eb6ac6e0d6.tar.gz
oniguruma-7b5f2a499595d450c214a5398447c1eb6ac6e0d6.tar.bz2
rename OnigRegsetLead to OnigRegSetLead
-rw-r--r--src/oniguruma.h6
-rw-r--r--src/regexec.c4
-rw-r--r--test/test_regset.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/oniguruma.h b/src/oniguruma.h
index 4ff5f9d..5f219d3 100644
--- a/src/oniguruma.h
+++ b/src/oniguruma.h
@@ -693,7 +693,7 @@ typedef struct OnigRegSetStruct OnigRegSet;
typedef enum {
ONIG_REGSET_POSITION_LEAD = 0,
ONIG_REGSET_REGEX_LEAD = 1
-} OnigRegsetLead;
+} OnigRegSetLead;
typedef struct {
int num_of_elements;
@@ -814,9 +814,9 @@ void onig_regset_free P_((OnigRegSet* set));
ONIG_EXTERN
OnigRegion* onig_regset_get_region P_((OnigRegSet* set, int at));
ONIG_EXTERN
-int onig_regset_search P_((OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegsetLead lead, OnigOptionType option, int* rmatch_pos));
+int onig_regset_search P_((OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegSetLead lead, OnigOptionType option, int* rmatch_pos));
ONIG_EXTERN
-int onig_regset_search_with_param P_((OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegsetLead lead, OnigOptionType option, OnigMatchParam* mps[], int* rmatch_pos));
+int onig_regset_search_with_param P_((OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegSetLead lead, OnigOptionType option, OnigMatchParam* mps[], int* rmatch_pos));
ONIG_EXTERN
OnigRegion* onig_region_new P_((void));
diff --git a/src/regexec.c b/src/regexec.c
index 6ad5d71..0d4d4a9 100644
--- a/src/regexec.c
+++ b/src/regexec.c
@@ -4354,7 +4354,7 @@ extern int
onig_regset_search_with_param(OnigRegSet* set,
const UChar* str, const UChar* end,
const UChar* start, const UChar* range,
- OnigRegsetLead lead, OnigOptionType option, OnigMatchParam* mps[],
+ OnigRegSetLead lead, OnigOptionType option, OnigMatchParam* mps[],
int* rmatch_pos)
{
int r;
@@ -4532,7 +4532,7 @@ onig_regset_search_with_param(OnigRegSet* set,
extern int
onig_regset_search(OnigRegSet* set, const UChar* str, const UChar* end,
const UChar* start, const UChar* range,
- OnigRegsetLead lead, OnigOptionType option, int* rmatch_pos)
+ OnigRegSetLead lead, OnigOptionType option, int* rmatch_pos)
{
int r;
int i;
diff --git a/test/test_regset.c b/test/test_regset.c
index 97a33a0..4cdd91a 100644
--- a/test/test_regset.c
+++ b/test/test_regset.c
@@ -178,7 +178,7 @@ time_compare(int n, char* ps[], char* s, char* end)
}
-static OnigRegsetLead XX_LEAD = ONIG_REGSET_POSITION_LEAD;
+static OnigRegSetLead XX_LEAD = ONIG_REGSET_POSITION_LEAD;
static void
xx(int line_no, int n, char* ps[], char* s, int from, int to, int mem, int not, int error_no)