]> granicus.if.org Git - onig/commitdiff
move declaration of onigenc_strdup() from regenc.h to oniguruma.h
authorK.Kosako <kosako@sofnec.co.jp>
Fri, 2 Mar 2018 07:28:45 +0000 (16:28 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Fri, 2 Mar 2018 07:28:45 +0000 (16:28 +0900)
src/oniguruma.h
src/regenc.h

index c5ce6b7086fb513a4b7fbf748ca0dc705d19fc62..d52828d8cfde77ca340c80579b90a16598005b1f 100644 (file)
@@ -337,7 +337,8 @@ ONIG_EXTERN
 int onigenc_str_bytelen_null P_((OnigEncoding enc, const OnigUChar* p));
 ONIG_EXTERN
 int onigenc_is_valid_mbc_string P_((OnigEncoding enc, const OnigUChar* s, const OnigUChar* end));
-
+ONIG_EXTERN
+UChar* onigenc_strdup P_((OnigEncoding enc, const UChar* s, const UChar* end));
 
 
 /* PART: regular expression */
index 9212b47f05884576d2f3e2580150523c6600e5d2..7978093ea953a13fd6d8599a33c868ec10bc37a7 100644 (file)
@@ -120,8 +120,6 @@ struct PropertyNameCtype {
 #define ONIG_ENCODING_INIT_DEFAULT           ONIG_ENCODING_ASCII
 
 
-extern UChar* onigenc_strdup P_((OnigEncoding enc, const UChar* s, const UChar* end));
-
 /* for encoding system implementation (internal) */
 extern int onigenc_ascii_apply_all_case_fold P_((OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg));
 extern int onigenc_ascii_get_case_fold_codes_by_str P_((OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]));