diff options
author | Aaron Crane <arc@cpan.org> | 2017-10-12 14:31:56 +0200 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-10-21 16:51:41 +0100 |
commit | e5d7f4e5fdc8fcb324745c39345b369ab04cadb1 (patch) | |
tree | 9aeeb835318cb50fb6138be90b6ce8e375dd3c9c /plan9 | |
parent | 6abb197755380da4c7221427281d6933762516a3 (diff) | |
download | perl-e5d7f4e5fdc8fcb324745c39345b369ab04cadb1.tar.gz |
Assume we have sane C89 memcmp()
"Sane" means that it works correctly on bytes with their high bit set, as
C89 also requires.
We therefore no longer need to probe for and/or use BSD bcmp().
Diffstat (limited to 'plan9')
-rw-r--r-- | plan9/config.plan9 | 19 | ||||
-rw-r--r-- | plan9/config_h.sample | 19 | ||||
-rw-r--r-- | plan9/config_sh.sample | 3 |
3 files changed, 0 insertions, 41 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9 index 8ae0aff630..8a2706766d 100644 --- a/plan9/config.plan9 +++ b/plan9/config.plan9 @@ -92,12 +92,6 @@ #define __attribute__(_arg_) #endif -/* HAS_BCMP: - * This symbol is defined if the bcmp() routine is available to - * compare blocks of memory. - */ -#define HAS_BCMP /**/ - /* HAS_CHOWN: * This symbol, if defined, indicates that the chown routine is * available. @@ -307,12 +301,6 @@ */ #define HAS_MBTOWC /**/ -/* HAS_MEMCMP: - * This symbol, if defined, indicates that the memcmp routine is available - * to compare blocks of memory. - */ -#define HAS_MEMCMP /**/ - /* HAS_MKDIR: * This symbol, if defined, indicates that the mkdir routine is available * to create directories. Otherwise you should fork off a new process to @@ -2115,13 +2103,6 @@ */ /*#define HAS_RECVMSG / **/ -/* HAS_SANE_MEMCMP: - * This symbol, if defined, indicates that the memcmp routine is available - * and can be used to compare relative magnitudes of chars with their high - * bits set. If it is not defined, roll your own version. - */ -#define HAS_SANE_MEMCMP /**/ - /* HAS_SBRK_PROTO: * This symbol, if defined, indicates that the system provides * a prototype for the sbrk() function. Otherwise, it is up diff --git a/plan9/config_h.sample b/plan9/config_h.sample index 902eba465b..d288411f96 100644 --- a/plan9/config_h.sample +++ b/plan9/config_h.sample @@ -50,12 +50,6 @@ #define __attribute__(_arg_) #endif -/* HAS_BCMP: - * This symbol is defined if the bcmp() routine is available to - * compare blocks of memory. - */ -#define HAS_BCMP /**/ - /* HAS_CHOWN: * This symbol, if defined, indicates that the chown routine is * available. @@ -265,12 +259,6 @@ */ #define HAS_MBTOWC /**/ -/* HAS_MEMCMP: - * This symbol, if defined, indicates that the memcmp routine is available - * to compare blocks of memory. - */ -#define HAS_MEMCMP /**/ - /* HAS_MKDIR: * This symbol, if defined, indicates that the mkdir routine is available * to create directories. Otherwise you should fork off a new process to @@ -2068,13 +2056,6 @@ */ /*#define HAS_RECVMSG / **/ -/* HAS_SANE_MEMCMP: - * This symbol, if defined, indicates that the memcmp routine is available - * and can be used to compare relative magnitudes of chars with their high - * bits set. If it is not defined, roll your own version. - */ -#define HAS_SANE_MEMCMP /**/ - /* HAS_SBRK_PROTO: * This symbol, if defined, indicates that the system provides * a prototype for the sbrk() function. Otherwise, it is up diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 3f10f59d53..485a66238f 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -125,7 +125,6 @@ d_attribute_pure='undef' d_attribute_unused='undef' d_attribute_warn_unused_result='undef' d_backtrace='undef' -d_bcmp='define' d_bsd='undef' d_bsdgetpgrp='undef' d_bsdsetpgrp='undef' @@ -380,7 +379,6 @@ d_mbrtowc='undef' d_mbstowcs='define' d_mbtowc='define' d_memchr='define' -d_memcmp='define' d_memmem='undef' d_memrchr='undef' d_mkdir='define' @@ -469,7 +467,6 @@ d_rewinddir='define' d_rint='undef' d_rmdir='define' d_round='undef' -d_sanemcmp='define' d_sbrkproto='undef' d_scalbn='undef' d_scalbnl='undef' |