summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2014-05-29 17:08:37 -0500
committerCraig A. Berry <craigberry@mac.com>2014-05-29 17:13:09 -0500
commit81f54ac7f5f6cf7337babd8633132716c21d851a (patch)
tree5a918eadb931b3c6c0652755b0d20bc663792e66 /proto.h
parent878cc5f0586e69cae0c78f759b8790bfd7c07291 (diff)
downloadperl-81f54ac7f5f6cf7337babd8633132716c21d851a.tar.gz
Only prototype should_warn_nl under PERL_CORE.
Otherwise the prototype is seen in places where the function itself is not defined, which is illegal for inline functions. Follow-up to 7cb3f9598b37fc.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/proto.h b/proto.h
index f7716b5503..140d7f3efa 100644
--- a/proto.h
+++ b/proto.h
@@ -3849,12 +3849,6 @@ PERL_CALLCONV HEK* Perl_share_hek(pTHX_ const char* str, I32 len, U32 hash)
#define PERL_ARGS_ASSERT_SHARE_HEK \
assert(str)
-PERL_STATIC_INLINE bool S_should_warn_nl(const char *pv)
- __attribute__warn_unused_result__
- __attribute__nonnull__(1);
-#define PERL_ARGS_ASSERT_SHOULD_WARN_NL \
- assert(pv)
-
PERL_CALLCONV void Perl_sortsv(pTHX_ SV** array, size_t num_elts, SVCOMPARE_t cmp)
__attribute__nonnull__(pTHX_3);
#define PERL_ARGS_ASSERT_SORTSV \
@@ -5501,6 +5495,12 @@ PERL_CALLCONV void Perl_parser_free_nexttoke_ops(pTHX_ yy_parser *parser, OPSLAB
#define PERL_ARGS_ASSERT_PARSER_FREE_NEXTTOKE_OPS \
assert(parser); assert(slab)
+PERL_STATIC_INLINE bool S_should_warn_nl(const char *pv)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(1);
+#define PERL_ARGS_ASSERT_SHOULD_WARN_NL \
+ assert(pv)
+
# if defined(PERL_DEBUG_READONLY_OPS)
PERL_CALLCONV void Perl_Slab_to_ro(pTHX_ OPSLAB *slab)
__attribute__nonnull__(pTHX_1);