aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Python/pystrcmp.c
diff options
context:
space:
mode:
authormonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
committermonster <monster@ydb.tech>2022-07-07 14:41:37 +0300
commit06e5c21a835c0e923506c4ff27929f34e00761c2 (patch)
tree75efcbc6854ef9bd476eb8bf00cc5c900da436a2 /contrib/tools/python3/src/Python/pystrcmp.c
parent03f024c4412e3aa613bb543cf1660176320ba8f4 (diff)
downloadydb-06e5c21a835c0e923506c4ff27929f34e00761c2.tar.gz
fix ya.make
Diffstat (limited to 'contrib/tools/python3/src/Python/pystrcmp.c')
-rw-r--r--contrib/tools/python3/src/Python/pystrcmp.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/contrib/tools/python3/src/Python/pystrcmp.c b/contrib/tools/python3/src/Python/pystrcmp.c
deleted file mode 100644
index 9224ce4c70..0000000000
--- a/contrib/tools/python3/src/Python/pystrcmp.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Cross platform case insensitive string compare functions
- */
-
-#include "Python.h"
-
-int
-PyOS_mystrnicmp(const char *s1, const char *s2, Py_ssize_t size)
-{
- const unsigned char *p1, *p2;
- if (size == 0)
- return 0;
- p1 = (const unsigned char *)s1;
- p2 = (const unsigned char *)s2;
- for (; (--size > 0) && *p1 && *p2 && (tolower(*p1) == tolower(*p2));
- p1++, p2++) {
- ;
- }
- return tolower(*p1) - tolower(*p2);
-}
-
-int
-PyOS_mystricmp(const char *s1, const char *s2)
-{
- const unsigned char *p1 = (const unsigned char *)s1;
- const unsigned char *p2 = (const unsigned char *)s2;
- for (; *p1 && *p2 && (tolower(*p1) == tolower(*p2)); p1++, p2++) {
- ;
- }
- return (tolower(*p1) - tolower(*p2));
-}