summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-12-29 20:18:09 -0700
committerKarl Williamson <public@khwilliamson.com>2013-01-12 18:20:06 -0700
commita8a2ceaa337ed7cb30711de145f484033c43b07d (patch)
tree0021438aa86fcdde2fb45bc4b09407072b75bbcb /proto.h
parent9bbccbfa57430eb02f257b85ecb1e158c107027e (diff)
downloadperl-a8a2ceaa337ed7cb30711de145f484033c43b07d.tar.gz
Create deprecated fncs to replace to-be-removed macros
These macros should not be used as they are prone to misuse. There are no occurrences of them in CPAN. The single use of either of them in core has recently been removed (commit 8d40577bdbdfa85ed3293f84bf26a313b1b92f55), because it was a misuse. Instead code should use isIDFIRST_lazy_if or isWORDCHAR_lazy_if (isALNUM_lazy_if is also available, but can be confused with the Posix alnum, which it doesn't mean).
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index c9c667fb44..b4d81d6128 100644
--- a/proto.h
+++ b/proto.h
@@ -1692,6 +1692,22 @@ PERL_CALLCONV bool Perl_io_close(pTHX_ IO* io, bool not_implicit)
#define PERL_ARGS_ASSERT_IO_CLOSE \
assert(io)
+PERL_STATIC_INLINE bool S_isALNUM_lazy(pTHX_ const char* p)
+ __attribute__deprecated__
+ __attribute__warn_unused_result__
+ __attribute__pure__
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_ISALNUM_LAZY \
+ assert(p)
+
+PERL_STATIC_INLINE bool S_isIDFIRST_lazy(pTHX_ const char* p)
+ __attribute__deprecated__
+ __attribute__warn_unused_result__
+ __attribute__pure__
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_ISIDFIRST_LAZY \
+ assert(p)
+
PERL_CALLCONV bool Perl_is_ascii_string(const U8 *s, STRLEN len)
__attribute__nonnull__(1);
#define PERL_ARGS_ASSERT_IS_ASCII_STRING \