diff options
author | Aaron Crane <arc@cpan.org> | 2017-10-13 10:35:44 +0200 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-10-21 16:52:47 +0100 |
commit | 1509effa50d0917578f8ab4dd412918cb11d6fcb (patch) | |
tree | f9a4f75eb01b57778a6be857c993c96e900c36f1 /plan9 | |
parent | f1519f70705b2eee563b9ac4056d4eb39d383ea1 (diff) | |
download | perl-1509effa50d0917578f8ab4dd412918cb11d6fcb.tar.gz |
Rely on C89 strchr() and strrchr()
This needs a metaconfig change that defangs the standard unit for finding
strchr(), because that unit sees the uses of "index" and "rindex" (in files
like keywords.c and opcode.h) as indicators that it must be used instead.
Diffstat (limited to 'plan9')
-rw-r--r-- | plan9/config.plan9 | 12 | ||||
-rw-r--r-- | plan9/config_h.sample | 12 |
2 files changed, 0 insertions, 24 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9 index c9863b603e..469094c69c 100644 --- a/plan9/config.plan9 +++ b/plan9/config.plan9 @@ -511,18 +511,6 @@ */ #define HAS_SETSID /**/ -/* HAS_STRCHR: - * This symbol is defined to indicate that the strchr()/strrchr() - * functions are available for string searching. If not, try the - * index()/rindex() pair. - */ -/* HAS_INDEX: - * This symbol is defined to indicate that the index()/rindex() - * functions are available for string searching. - */ -#define HAS_STRCHR /**/ -/*#define HAS_INDEX / **/ - /* HAS_STRCOLL: * This symbol, if defined, indicates that the strcoll routine is * available to compare strings using collating information. diff --git a/plan9/config_h.sample b/plan9/config_h.sample index ec8bafec47..42854491b2 100644 --- a/plan9/config_h.sample +++ b/plan9/config_h.sample @@ -469,18 +469,6 @@ */ #define HAS_SETSID /**/ -/* HAS_STRCHR: - * This symbol is defined to indicate that the strchr()/strrchr() - * functions are available for string searching. If not, try the - * index()/rindex() pair. - */ -/* HAS_INDEX: - * This symbol is defined to indicate that the index()/rindex() - * functions are available for string searching. - */ -#define HAS_STRCHR /**/ -/*#define HAS_INDEX / **/ - /* HAS_STRCOLL: * This symbol, if defined, indicates that the strcoll routine is * available to compare strings using collating information. |