Removes index() from bionic.
This function has been removed from POSIX. Unfortunately, we can't leave #define index(a, b) strchr((a), (b)) in its place because defining a preprocessor macro for index() breaks a whole lot of code. Bug: 13935372 Change-Id: Ifda348acde06da61c12e7ee2f8fe6950a3174dd1
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
# arm64 specific configs
|
# arm64 specific configs
|
||||||
|
|
||||||
libc_common_src_files_arm64 := \
|
libc_common_src_files_arm64 := \
|
||||||
bionic/index.cpp \
|
|
||||||
bionic/memchr.c \
|
bionic/memchr.c \
|
||||||
bionic/__memcmp16.cpp \
|
bionic/__memcmp16.cpp \
|
||||||
bionic/memrchr.c \
|
bionic/memrchr.c \
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# mips64 specific configs
|
# mips64 specific configs
|
||||||
|
|
||||||
libc_common_src_files_mips64 := \
|
libc_common_src_files_mips64 := \
|
||||||
bionic/index.cpp \
|
|
||||||
bionic/memchr.c \
|
bionic/memchr.c \
|
||||||
bionic/memcmp.c \
|
bionic/memcmp.c \
|
||||||
bionic/memmove.c \
|
bionic/memmove.c \
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# x86_64 specific configs
|
# x86_64 specific configs
|
||||||
|
|
||||||
libc_common_src_files_x86_64 := \
|
libc_common_src_files_x86_64 := \
|
||||||
bionic/index.cpp \
|
|
||||||
bionic/memchr.c \
|
bionic/memchr.c \
|
||||||
bionic/memrchr.c \
|
bionic/memrchr.c \
|
||||||
bionic/strchr.cpp \
|
bionic/strchr.cpp \
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ extern void* memmove(void *, const void *, size_t);
|
|||||||
extern void* memset(void *, int, size_t);
|
extern void* memset(void *, int, size_t);
|
||||||
extern void* memmem(const void *, size_t, const void *, size_t) __purefunc;
|
extern void* memmem(const void *, size_t, const void *, size_t) __purefunc;
|
||||||
|
|
||||||
extern char* index(const char *, int) __purefunc;
|
|
||||||
extern char* strchr(const char *, int) __purefunc;
|
extern char* strchr(const char *, int) __purefunc;
|
||||||
extern char* __strchr_chk(const char *, int, size_t);
|
extern char* __strchr_chk(const char *, int, size_t);
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ __BEGIN_DECLS
|
|||||||
#define bzero(b, len) (void)(memset((b), '\0', (len)))
|
#define bzero(b, len) (void)(memset((b), '\0', (len)))
|
||||||
|
|
||||||
int ffs(int);
|
int ffs(int);
|
||||||
char *index(const char *, int);
|
|
||||||
int strcasecmp(const char *, const char *);
|
int strcasecmp(const char *, const char *);
|
||||||
int strncasecmp(const char *, const char *, size_t);
|
int strncasecmp(const char *, const char *, size_t);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user