[pypy-commit] pypy default: Try to fix win32 translation
amauryfa
noreply at buildbot.pypy.org
Tue Jun 14 20:52:03 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r44957:fb47e5a1c980
Date: 2011-06-14 20:45 +0200
http://bitbucket.org/pypy/pypy/changeset/fb47e5a1c980/
Log: Try to fix win32 translation (I thought that llexternal functions
were already excluded by the jit policy?)
diff --git a/pypy/rlib/clibffi.py b/pypy/rlib/clibffi.py
--- a/pypy/rlib/clibffi.py
+++ b/pypy/rlib/clibffi.py
@@ -10,6 +10,7 @@
from pypy.rlib.rmmap import alloc
from pypy.rlib.rdynload import dlopen, dlclose, dlsym, dlsym_byordinal
from pypy.rlib.rdynload import DLOpenError, DLLHANDLE
+from pypy.rlib import jit
from pypy.tool.autopath import pypydir
from pypy.translator.tool.cbuild import ExternalCompilationInfo
from pypy.translator.platform import platform
@@ -270,6 +271,7 @@
elif _MSVC:
get_libc_handle = external('pypy_get_libc_handle', [], DLLHANDLE)
+ @jit.dont_look_inside
def get_libc_name():
return rwin32.GetModuleFileName(get_libc_handle())
More information about the pypy-commit
mailing list