summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-02-17 20:00:15 -0700
committerKarl Williamson <khw@cpan.org>2022-05-31 06:52:33 -0600
commitff00d73bbce9a135c78de0d69548d7fad0dd02ad (patch)
tree2b6e600dca53a6518eaf8fb4290f1b0053742f88 /utf8.c
parent8fcaedaae577eaca064a33debe61acb344a48a33 (diff)
downloadperl-ff00d73bbce9a135c78de0d69548d7fad0dd02ad.tar.gz
Make STRLENs() available to core
This may cause problems when not used correctly; so continue to restrict it.
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/utf8.c b/utf8.c
index bde21764bb..8c98cb699f 100644
--- a/utf8.c
+++ b/utf8.c
@@ -37,11 +37,6 @@ static const char malformed_text[] = "Malformed UTF-8 character";
static const char unees[] =
"Malformed UTF-8 character (unexpected end of string)";
-/* strlen() of a literal string constant. We might want this more general,
- * but using it in just this file for now. A problem with more generality is
- * the compiler warnings about comparing unlike signs */
-#define STRLENs(s) (sizeof("" s "") - 1)
-
/*
These are various utility functions for manipulating UTF8-encoded
strings. For the uninitiated, this is a method of representing arbitrary