[pypy-commit] pypy kill-exported-symbols-list: fixfix
arigo
noreply at buildbot.pypy.org
Thu Oct 23 13:51:10 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: kill-exported-symbols-list
Changeset: r74111:b944214058b2
Date: 2014-10-23 13:50 +0200
http://bitbucket.org/pypy/pypy/changeset/b944214058b2/
Log: fixfix
diff --git a/pypy/module/operator/tscmp.c b/pypy/module/operator/tscmp.c
--- a/pypy/module/operator/tscmp.c
+++ b/pypy/module/operator/tscmp.c
@@ -1,11 +1,12 @@
/* Derived from CPython 3.3.5's operator.c::_tscmp
*/
+#include "src/precommondefs.h"
#include <stdlib.h>
#include <wchar.h>
#include "tscmp.h"
-int
+RPY_EXPORTED_FOR_TESTS int
pypy_tscmp(const char *a, const char *b, long len_a, long len_b)
{
/* The volatile type declarations make sure that the compiler has no
@@ -42,7 +43,7 @@
return (result == 0);
}
-int
+RPY_EXPORTED_FOR_TESTS int
pypy_tscmp_wide(const wchar_t *a, const wchar_t *b, long len_a, long len_b)
{
/* The volatile type declarations make sure that the compiler has no
diff --git a/pypy/module/operator/tscmp.py b/pypy/module/operator/tscmp.py
--- a/pypy/module/operator/tscmp.py
+++ b/pypy/module/operator/tscmp.py
@@ -5,6 +5,7 @@
import py
from rpython.rtyper.lltypesystem import lltype, rffi
+from rpython.translator import cdir
from rpython.translator.tool.cbuild import ExternalCompilationInfo
from pypy.interpreter.error import oefmt
@@ -12,9 +13,8 @@
cwd = py.path.local(__file__).dirpath()
eci = ExternalCompilationInfo(
includes=[cwd.join('tscmp.h')],
- include_dirs=[str(cwd)],
- separate_module_files=[cwd.join('tscmp.c')],
- export_symbols=['pypy_tscmp', 'pypy_tscmp_wide'])
+ include_dirs=[str(cwd), cdir],
+ separate_module_files=[cwd.join('tscmp.c')])
def llexternal(*args, **kwargs):
More information about the pypy-commit
mailing list