From eaafb50505c62686855f3973241222894298be4b Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Fri, 22 Feb 2019 13:07:54 +0900 Subject: [PATCH] remove onig_transfer() --- src/regcomp.c | 12 ------------ src/regint.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/regcomp.c b/src/regcomp.c index 7573e1b..7f3636d 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -6070,18 +6070,6 @@ onig_free(regex_t* reg) } } -#define REGEX_TRANSFER(to,from) do {\ - onig_free_body(to);\ - xmemcpy(to, from, sizeof(regex_t));\ - xfree(from);\ -} while (0) - -extern void -onig_transfer(regex_t* to, regex_t* from) -{ - REGEX_TRANSFER(to, from); -} - #ifdef ONIG_DEBUG_PARSE static void print_tree P_((FILE* f, Node* node)); diff --git a/src/regint.h b/src/regint.h index ba57ac6..65ffdd5 100644 --- a/src/regint.h +++ b/src/regint.h @@ -992,7 +992,6 @@ extern void onig_warning(const char* s); extern UChar* onig_error_code_to_format P_((int code)); extern void onig_snprintf_with_pattern PV_((UChar buf[], int bufsize, OnigEncoding enc, UChar* pat, UChar* pat_end, const UChar *fmt, ...)); extern int onig_compile P_((regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo)); -extern void onig_transfer P_((regex_t* to, regex_t* from)); extern int onig_is_code_in_cc_len P_((int enclen, OnigCodePoint code, void* /* CClassNode* */ cc)); extern RegexExt* onig_get_regex_ext(regex_t* reg); extern int onig_ext_set_pattern(regex_t* reg, const UChar* pattern, const UChar* pattern_end); -- 2.40.0