From b27367cd9b0173682dfe824a2d1d8d70c6f538c0 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 8 Mar 2023 08:57:36 +0100 Subject: regcomp_internal.h - make unused macros for deprecation warnings take category as parameter we should have a deprecation category per type of deprecation --- regcomp_internal.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'regcomp_internal.h') diff --git a/regcomp_internal.h b/regcomp_internal.h index ff428bce33..4c18f1bee6 100644 --- a/regcomp_internal.h +++ b/regcomp_internal.h @@ -1060,21 +1060,21 @@ static const scan_data_t zero_scan_data = { m REPORT_LOCATION, \ REPORT_LOCATION_ARGS(loc))) \ -#define vWARN_dep(loc, m) \ - _WARN_HELPER(loc, packWARN(WARN_DEPRECATED), \ - Perl_warner(aTHX_ packWARN(WARN_DEPRECATED), \ - m REPORT_LOCATION, \ +#define vWARN_dep(loc,category,m) \ + _WARN_HELPER(loc, packWARN(category), \ + Perl_warner(aTHX_ packWARN(category), \ + m REPORT_LOCATION, \ REPORT_LOCATION_ARGS(loc))) -#define ckWARNdep(loc,m) \ - _WARN_HELPER(loc, packWARN(WARN_DEPRECATED), \ - Perl_ck_warner_d(aTHX_ packWARN(WARN_DEPRECATED), \ - m REPORT_LOCATION, \ +#define ckWARNdep(loc,category,m) \ + _WARN_HELPER(loc, packWARN(category), \ + Perl_ck_warner_d(aTHX_ packWARN(category), \ + m REPORT_LOCATION, \ REPORT_LOCATION_ARGS(loc))) -#define ckWARNregdep(loc,m) \ - _WARN_HELPER(loc, packWARN2(WARN_DEPRECATED, WARN_REGEXP), \ - Perl_ck_warner_d(aTHX_ packWARN2(WARN_DEPRECATED, \ +#define ckWARNregdep(loc,category,m) \ + _WARN_HELPER(loc, packWARN2(category, WARN_REGEXP), \ + Perl_ck_warner_d(aTHX_ packWARN2(category, \ WARN_REGEXP), \ m REPORT_LOCATION, \ REPORT_LOCATION_ARGS(loc))) -- cgit v1.2.1