Author: Philip Jenvey <pjen...@underboss.org> Branch: py3.3 Changeset: r74257:5d069ae3f5b9 Date: 2014-10-26 22:34 -0700 http://bitbucket.org/pypy/pypy/changeset/5d069ae3f5b9/
Log: adapt to RPY_EXPORT_FOR_TESTS diff --git a/pypy/module/_posixsubprocess/interp_subprocess.py b/pypy/module/_posixsubprocess/interp_subprocess.py --- a/pypy/module/_posixsubprocess/interp_subprocess.py +++ b/pypy/module/_posixsubprocess/interp_subprocess.py @@ -1,6 +1,6 @@ import os + import py - from rpython.rtyper.lltypesystem import lltype, rffi from rpython.rtyper.tool import rffi_platform as platform from rpython.translator import cdir diff --git a/pypy/module/faulthandler/faulthandler.h b/pypy/module/faulthandler/faulthandler.h --- a/pypy/module/faulthandler/faulthandler.h +++ b/pypy/module/faulthandler/faulthandler.h @@ -2,17 +2,18 @@ #define PYPY_FAULTHANDLER_H #include <signal.h> +#include "src/precommondefs.h" -int pypy_faulthandler_read_null(void); -void pypy_faulthandler_sigsegv(void); -int pypy_faulthandler_sigfpe(void); -void pypy_faulthandler_sigabrt(); +RPY_EXPORTED_FOR_TESTS int pypy_faulthandler_read_null(void); +RPY_EXPORTED_FOR_TESTS void pypy_faulthandler_sigsegv(void); +RPY_EXPORTED_FOR_TESTS int pypy_faulthandler_sigfpe(void); +RPY_EXPORTED_FOR_TESTS void pypy_faulthandler_sigabrt(); #ifdef SIGBUS -void pypy_faulthandler_sigbus(void); +RPY_EXPORTED_FOR_TESTS void pypy_faulthandler_sigbus(void); #endif #ifdef SIGILL -void pypy_faulthandler_sigill(void); +RPY_EXPORTED_FOR_TESTS void pypy_faulthandler_sigill(void); #endif #endif /* PYPY_FAULTHANDLER_H */ diff --git a/pypy/module/faulthandler/interp_faulthandler.py b/pypy/module/faulthandler/interp_faulthandler.py --- a/pypy/module/faulthandler/interp_faulthandler.py +++ b/pypy/module/faulthandler/interp_faulthandler.py @@ -3,6 +3,7 @@ from pypy.interpreter.gateway import interp2app, unwrap_spec, WrappedDefault from rpython.rtyper.lltypesystem import lltype, rffi +from rpython.translator import cdir from rpython.translator.tool.cbuild import ExternalCompilationInfo from pypy.interpreter.error import OperationError, oefmt @@ -11,15 +12,8 @@ cwd = py.path.local(__file__).dirpath() eci = ExternalCompilationInfo( includes=[cwd.join('faulthandler.h')], - include_dirs=[str(cwd)], - separate_module_files=[cwd.join('faulthandler.c')], - export_symbols=['pypy_faulthandler_read_null', - 'pypy_faulthandler_sigsegv', - 'pypy_faulthandler_sigfpe', - 'pypy_faulthandler_sigabrt', - 'pypy_faulthandler_sigbus', - 'pypy_faulthandler_sigill', - ]) + include_dirs=[str(cwd), cdir], + separate_module_files=[cwd.join('faulthandler.c')]) def llexternal(*args, **kwargs): kwargs.setdefault('releasegil', False) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit