From def89bff35e7f449eacdd8db98c267bd0fc7bce4 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 15 Nov 2009 16:29:16 +0000 Subject: Inline PL_no_symref_sv into its users. Deprecate the visible global variable. As the core no longer needs this fixed string outside of pp.c, it seems daft to make it public just in case any module wants to use it. Modules that do should provide their own inline copy in future. Also restore the visible global PL_no_symref_sv back to the original format specificiation (of 5.10.0 and earlier). --- perl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl.h') diff --git a/perl.h b/perl.h index 1a63b7ceb6..38c9664fe4 100644 --- a/perl.h +++ b/perl.h @@ -4218,10 +4218,12 @@ EXTCONST char PL_warn_nl[] INIT("Unsuccessful %s on filename containing newline"); EXTCONST char PL_no_wrongref[] INIT("Can't use %s ref as %s ref"); +/* The core no longer needs these here. If you require the string constant, + please inline a copy into your own code. */ EXTCONST char PL_no_symref[] __attribute__deprecated__ INIT("Can't use string (\"%.32s\") as %s ref while \"strict refs\" in use"); -EXTCONST char PL_no_symref_sv[] - INIT("Can't use string (\"%" SVf32 "\"%s) as %s ref while \"strict refs\" in use"); +EXTCONST char PL_no_symref_sv[] __attribute__deprecated__ + INIT("Can't use string (\"%" SVf32 "\") as %s ref while \"strict refs\" in use"); EXTCONST char PL_no_usym[] INIT("Can't use an undefined value as %s reference"); EXTCONST char PL_no_aelem[] -- cgit v1.2.1