Staging
v0.5.1
https://github.com/python/cpython
Revision 12c9d028ed0a1803019f3796014e75c74d9de2f6 authored by Gregory P. Smith on 14 May 2011, 22:15:49 UTC, committed by Gregory P. Smith on 14 May 2011, 22:15:49 UTC
the expected builtin modules are not present.

This includes a unittest for __get_builtin_constructor() in the face
of such an error.
1 parent e670c88
Raw File
Tip revision: 12c9d028ed0a1803019f3796014e75c74d9de2f6 authored by Gregory P. Smith on 14 May 2011, 22:15:49 UTC
Fixes Issue #12059: Properly handle missing hash functions even when
Tip revision: 12c9d02
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