Staging
v0.5.1
https://github.com/python/cpython
Revision e245231fabb4c97521959e9ae1b45469bfad0d1e authored by Victor Stinner on 28 March 2015, 02:00:46 UTC, committed by Victor Stinner on 28 March 2015, 02:00:46 UTC
I didn't notice that the ssl module uses private attributes of socket objects.
1 parent b28e916
Raw File
Tip revision: e245231fabb4c97521959e9ae1b45469bfad0d1e authored by Victor Stinner on 28 March 2015, 02:00:46 UTC
Issue #22117: Fix ssl to use _PyTime_t API on sock_timeout
Tip revision: e245231
pystrcmp.h
#ifndef Py_STRCMP_H
#define Py_STRCMP_H

#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(int) PyOS_mystrnicmp(const char *, const char *, Py_ssize_t);
PyAPI_FUNC(int) PyOS_mystricmp(const char *, const char *);

#ifdef MS_WINDOWS
#define PyOS_strnicmp strnicmp
#define PyOS_stricmp stricmp
#else
#define PyOS_strnicmp PyOS_mystrnicmp
#define PyOS_stricmp PyOS_mystricmp
#endif

#ifdef __cplusplus
}
#endif

#endif /* !Py_STRCMP_H */
back to top