summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-09-11 15:20:45 -0600
committerKarl Williamson <khw@cpan.org>2019-09-15 10:39:56 -0600
commitc9182d9cfe39bfb5131aaf232745d5856cbf79eb (patch)
tree85f05d2681af6297625591cbe95933d7baa643c0 /regexp.h
parent2015d234640f7832c28ec6051e8a8f3fc751c7b5 (diff)
downloadperl-c9182d9cfe39bfb5131aaf232745d5856cbf79eb.tar.gz
inline.h: Change fcn name prefix from S_ to Perl_
This is being done only for those functions that don't have a guard preventing them from being seen outside of the Perl core. Talking to Tony Cook, we agreed that this was a good idea for two reasons: 1) The 'Perl_' prefix does not pollute XS caller's name space. The 'S_' one could be argued that it doesn't much either, but it does more so than 'Perl_', and the next reason is the clincher: 2) It allows us to change our minds about whether a function should be static inline or not, without affecting callers who use the Perl_ form, which they would be accustomed to anyway if they're using the full name form.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index ccbc64a009..c85060af25 100644
--- a/regexp.h
+++ b/regexp.h
@@ -629,7 +629,7 @@ and check for NULL.
# define ReREFCNT_dec(re) SvREFCNT_dec(re)
# define ReREFCNT_inc(re) ((REGEXP *) SvREFCNT_inc(re))
#endif
-#define ReANY(re) S_ReANY((const REGEXP *)(re))
+#define ReANY(re) Perl_ReANY((const REGEXP *)(re))
/* FIXME for plugins. */