summaryrefslogtreecommitdiff
path: root/pp.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 /pp.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 'pp.h')
-rw-r--r--pp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.h b/pp.h
index d4176db9ed..17129d0e35 100644
--- a/pp.h
+++ b/pp.h
@@ -67,8 +67,8 @@ Refetch the stack pointer. Used after a callback. See L<perlcall>.
PL_markstack_ptr, (IV)*mark_stack_entry))); \
} STMT_END
-#define TOPMARK S_TOPMARK(aTHX)
-#define POPMARK S_POPMARK(aTHX)
+#define TOPMARK Perl_TOPMARK(aTHX)
+#define POPMARK Perl_POPMARK(aTHX)
#define INCMARK \
STMT_START { \