[pypy-commit] pypy win32-cleanup2: remove winstuff.c
mattip
noreply at buildbot.pypy.org
Mon May 7 20:26:56 CEST 2012
Author: Matti Picus <matti.picus at gmail.com>
Branch: win32-cleanup2
Changeset: r54941:c92210295183
Date: 2012-05-07 20:02 +0300
http://bitbucket.org/pypy/pypy/changeset/c92210295183/
Log: remove winstuff.c
diff --git a/pypy/translator/c/src/main.h b/pypy/translator/c/src/main.h
--- a/pypy/translator/c/src/main.h
+++ b/pypy/translator/c/src/main.h
@@ -50,10 +50,6 @@
}
#endif
-#ifdef MS_WINDOWS
- pypy_Windows_startup();
-#endif
-
errmsg = RPython_StartupCode();
if (errmsg) goto error;
diff --git a/pypy/translator/c/src/winstuff.c b/pypy/translator/c/src/winstuff.c
deleted file mode 100644
--- a/pypy/translator/c/src/winstuff.c
+++ /dev/null
@@ -1,37 +0,0 @@
-
-/************************************************************/
- /***** Windows-specific stuff. *****/
-
-
-/* copied from CPython. */
-
-#if defined _MSC_VER && _MSC_VER >= 1400 && defined(__STDC_SECURE_LIB__)
-/* crt variable checking in VisualStudio .NET 2005 */
-#include <crtdbg.h>
-
-/* Invalid parameter handler. Sets a ValueError exception */
-static void
-InvalidParameterHandler(
- const wchar_t * expression,
- const wchar_t * function,
- const wchar_t * file,
- unsigned int line,
- uintptr_t pReserved)
-{
- /* Do nothing, allow execution to continue. Usually this
- * means that the CRT will set errno to EINVAL
- */
-}
-#endif
-
-
-void pypy_Windows_startup(void)
-{
-#if 0 &&defined _MSC_VER && _MSC_VER >= 1400 && defined(__STDC_SECURE_LIB__)
- /* Set CRT argument error handler */
- _set_invalid_parameter_handler(InvalidParameterHandler);
- /* turn off assertions within CRT in debug mode;
- instead just return EINVAL */
- _CrtSetReportMode(_CRT_ASSERT, 0);
-#endif
-}
More information about the pypy-commit
mailing list