summaryrefslogtreecommitdiffstats
path: root/Python/clinic
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-08-25 02:53:56 (GMT)
committerLarry Hastings <larry@hastings.org>2015-08-25 02:53:56 (GMT)
commit1df0b35e3dfece45ef4d72fce2e3bdd256b5f6b3 (patch)
tree836104fd30d40ea75ee8ce2ebb4950825f9ac451 /Python/clinic
parent7250d02b738692fb76a47d75691cca6ba1561040 (diff)
downloadcpython-1df0b35e3dfece45ef4d72fce2e3bdd256b5f6b3.zip
cpython-1df0b35e3dfece45ef4d72fce2e3bdd256b5f6b3.tar.gz
cpython-1df0b35e3dfece45ef4d72fce2e3bdd256b5f6b3.tar.bz2
Issue #24769: Interpreter now starts properly when dynamic loading
is disabled. Patch by Petr Viktorin.
Diffstat (limited to 'Python/clinic')
-rw-r--r--Python/clinic/import.c.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/Python/clinic/import.c.h b/Python/clinic/import.c.h
index 53b5b17..9ed62f4 100644
--- a/Python/clinic/import.c.h
+++ b/Python/clinic/import.c.h
@@ -318,6 +318,33 @@ exit:
#endif /* defined(HAVE_DYNAMIC_LOADING) */
+PyDoc_STRVAR(_imp_exec_builtin__doc__,
+"exec_builtin($module, mod, /)\n"
+"--\n"
+"\n"
+"Initialize an extension module.");
+
+#define _IMP_EXEC_BUILTIN_METHODDEF \
+ {"exec_builtin", (PyCFunction)_imp_exec_builtin, METH_O, _imp_exec_builtin__doc__},
+
+static int
+_imp_exec_builtin_impl(PyModuleDef *module, PyObject *mod);
+
+static PyObject *
+_imp_exec_builtin(PyModuleDef *module, PyObject *mod)
+{
+ PyObject *return_value = NULL;
+ int _return_value;
+
+ _return_value = _imp_exec_builtin_impl(module, mod);
+ if ((_return_value == -1) && PyErr_Occurred())
+ goto exit;
+ return_value = PyLong_FromLong((long)_return_value);
+
+exit:
+ return return_value;
+}
+
#ifndef _IMP_CREATE_DYNAMIC_METHODDEF
#define _IMP_CREATE_DYNAMIC_METHODDEF
#endif /* !defined(_IMP_CREATE_DYNAMIC_METHODDEF) */
@@ -325,4 +352,4 @@ exit:
#ifndef _IMP_EXEC_DYNAMIC_METHODDEF
#define _IMP_EXEC_DYNAMIC_METHODDEF
#endif /* !defined(_IMP_EXEC_DYNAMIC_METHODDEF) */
-/*[clinic end generated code: output=0f1059766dd58f88 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=c38749cebcadbc3b input=a9049054013a1b77]*/