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 /Porting | |
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 'Porting')
-rw-r--r-- | Porting/Glossary | 14 | ||||
-rw-r--r-- | Porting/config.sh | 3 | ||||
-rw-r--r-- | Porting/config_H | 19 |
3 files changed, 0 insertions, 36 deletions
diff --git a/Porting/Glossary b/Porting/Glossary index f5024faaf8..dbbce71194 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -495,10 +495,6 @@ d_backtrace (d_backtrace.U): indicates to the C program that the backtrace() routine is available to get a stack trace. -d_bcmp (d_bcmp.U): - This variable conditionally defines the HAS_BCMP symbol if - the bcmp() routine is available to compare strings. - d_bsd (Guess.U): This symbol conditionally defines the symbol BSD when running on a BSD system. @@ -1679,11 +1675,6 @@ d_memchr (d_memchr.U): indicates to the C program that the memchr() routine is available to locate characters within a C string. -d_memcmp (d_memcmp.U): - This variable conditionally defines the HAS_MEMCMP symbol, which - indicates to the C program that the memcmp() routine is available - to compare blocks of memory. - d_memmem (d_memmem.U): This variable conditionally defines the HAS_MEMMEM symbol, which indicates to the C program that the memmem() routine is available @@ -2152,11 +2143,6 @@ d_round (d_round.U): This variable conditionally defines the HAS_ROUND symbol, which indicates to the C program that the round() routine is available. -d_sanemcmp (d_sanemcmp.U): - This variable conditionally defines the HAS_SANE_MEMCMP symbol if - the memcpy() routine is available and can be used to compare relative - magnitudes of chars with their high bits set. - d_sbrkproto (d_sbrkproto.U): This variable conditionally defines the HAS_SBRK_PROTO symbol, which indicates to the C program that the system provides diff --git a/Porting/config.sh b/Porting/config.sh index ed94c928b5..c3e3296db4 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -133,7 +133,6 @@ d_attribute_pure='define' d_attribute_unused='define' d_attribute_warn_unused_result='define' d_backtrace='define' -d_bcmp='define' d_bsd='define' d_bsdgetpgrp='undef' d_bsdsetpgrp='undef' @@ -390,7 +389,6 @@ d_mbrtowc='undef' d_mbstowcs='define' d_mbtowc='define' d_memchr='define' -d_memcmp='define' d_memmem='define' d_memrchr='define' d_mkdir='define' @@ -481,7 +479,6 @@ d_rewinddir='define' d_rint='define' d_rmdir='define' d_round='define' -d_sanemcmp='define' d_sbrkproto='define' d_scalbn='define' d_scalbnl='define' diff --git a/Porting/config_H b/Porting/config_H index 76a206189b..73276fa84c 100644 --- a/Porting/config_H +++ b/Porting/config_H @@ -32,12 +32,6 @@ */ #define HAS_ALARM /**/ -/* 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. @@ -248,12 +242,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_MEMRCHR: * This symbol, if defined, indicates that the memrchr routine is * available to return a pointer to the last occurrence of a byte in @@ -1625,13 +1613,6 @@ /*#define HAS_READDIR_R / **/ #define READDIR_R_PROTO 0 /**/ -/* 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_SETGRENT_R: * This symbol, if defined, indicates that the setgrent_r routine * is available to setgrent re-entrantly. |