diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-11-15 16:29:16 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-11-15 16:31:58 +0000 |
commit | def89bff35e7f449eacdd8db98c267bd0fc7bce4 (patch) | |
tree | 1621b9f8946c8707adaa9433ad09617d056753a5 /perl.h | |
parent | 973a76153032581ad3a0224d9cb13b7191f46ee5 (diff) | |
download | perl-def89bff35e7f449eacdd8db98c267bd0fc7bce4.tar.gz |
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).
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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[] |