Index: Python/Python-ast.c =================================================================== --- Python/Python-ast.c (révision 86352) +++ Python/Python-ast.c (copie de travail) @@ -392,6 +392,8 @@ "name", "asname", }; +static char *const req_name[3] = {"Module", "Expression", "Interactive"}; +static PyObject *req_type[3]; static int @@ -649,12 +651,15 @@ if (!mod_type) return 0; if (!add_attributes(mod_type, NULL, 0)) return 0; Module_type = make_type("Module", mod_type, Module_fields, 1); + req_type[0] = (PyObject*)Module_type; if (!Module_type) return 0; Interactive_type = make_type("Interactive", mod_type, Interactive_fields, 1); + req_type[2] = (PyObject*)Interactive_type; if (!Interactive_type) return 0; Expression_type = make_type("Expression", mod_type, Expression_fields, 1); + req_type[1] = (PyObject*)Expression_type; if (!Expression_type) return 0; Suite_type = make_type("Suite", mod_type, Suite_fields, 1); if (!Suite_type) return 0; @@ -6989,9 +6994,6 @@ mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode) { mod_ty res; - PyObject *req_type[] = {(PyObject*)Module_type, (PyObject*)Expression_type, - (PyObject*)Interactive_type}; - char *req_name[] = {"Module", "Expression", "Interactive"}; int isinstance; assert(0 <= mode && mode <= 2); Index: Lib/distutils/tests/test_config_cmd.py =================================================================== --- Lib/distutils/tests/test_config_cmd.py (révision 86352) +++ Lib/distutils/tests/test_config_cmd.py (copie de travail) @@ -44,10 +44,10 @@ cmd = config(dist) # simple pattern searches - match = cmd.search_cpp(pattern='xxx', body='// xxx') + match = cmd.search_cpp(pattern='xxx', body='/* xxx */') self.assertEquals(match, 0) - match = cmd.search_cpp(pattern='_configtest', body='// xxx') + match = cmd.search_cpp(pattern='_configtest', body='/* xxx */') self.assertEquals(match, 1) def test_finalize_options(self): Index: Modules/_ctypes/libffi/src/x86/ffi.c =================================================================== --- Modules/_ctypes/libffi/src/x86/ffi.c (révision 86352) +++ Modules/_ctypes/libffi/src/x86/ffi.c (copie de travail) @@ -661,5 +661,9 @@ #endif +#else + +typedef int dummy; /* because ISO C forbids an empty translation unit */ + #endif /* !__x86_64__ || X86_WIN64 */