diff options
author | Karl Williamson <khw@cpan.org> | 2022-02-17 20:00:15 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-05-31 06:52:33 -0600 |
commit | ff00d73bbce9a135c78de0d69548d7fad0dd02ad (patch) | |
tree | 2b6e600dca53a6518eaf8fb4290f1b0053742f88 /utf8.c | |
parent | 8fcaedaae577eaca064a33debe61acb344a48a33 (diff) | |
download | perl-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.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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 |