Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r65173:d2d7be13cbad Date: 2013-07-03 11:43 -0700 http://bitbucket.org/pypy/pypy/changeset/d2d7be13cbad/
Log: hopefully fix a compilation error during translation w/ the jit: forward declare the external locale functions diff --git a/pypy/module/_codecs/locale.h b/pypy/module/_codecs/locale.h new file mode 100644 --- /dev/null +++ b/pypy/module/_codecs/locale.h @@ -0,0 +1,7 @@ +#include <stdlib.h> +#include <wchar.h> + +wchar_t* pypy_char2wchar(const char* arg, size_t *size); +void pypy_char2wchar_free(wchar_t *text); +char* pypy_wchar2char(const wchar_t *text, size_t *error_pos); +void pypy_wchar2char_free(char *bytes); diff --git a/pypy/module/_codecs/locale.py b/pypy/module/_codecs/locale.py --- a/pypy/module/_codecs/locale.py +++ b/pypy/module/_codecs/locale.py @@ -21,6 +21,7 @@ cwd = py.path.local(__file__).dirpath() eci = ExternalCompilationInfo( + includes=[cwd.join('locale.h')], separate_module_files=[cwd.join('locale.c')], export_symbols=['pypy_char2wchar', 'pypy_char2wchar_free', 'pypy_wchar2char', 'pypy_wchar2char_free']) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit