summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2014-01-03 21:36:49 +0100
committerMartin v. Löwis <martin@v.loewis.de>2014-01-03 21:36:49 +0100
commit1c0689c613b61c8944456e78c5b592e3aaa40aba (patch)
tree7f8bb895da42b257af0ca9cbc2dd13e60abf2186 /Include/warnings.h
parentwhatsnew: porting note for HTTP[S]Connection strict parameter removal. (diff)
downloadcpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.gz
cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.tar.bz2
cpython-1c0689c613b61c8944456e78c5b592e3aaa40aba.zip
Issue #19526: Exclude all new API from the stable ABI.
Diffstat (limited to 'Include/warnings.h')
-rw-r--r--Include/warnings.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/warnings.h b/Include/warnings.h
index 217c06a6656..effb9fad719 100644
--- a/Include/warnings.h
+++ b/Include/warnings.h
@@ -17,6 +17,7 @@ PyAPI_FUNC(int) PyErr_WarnFormat(
Py_ssize_t stack_level,
const char *format, /* ASCII-encoded string */
...);
+#ifndef Py_LIMITED_API
PyAPI_FUNC(int) PyErr_WarnExplicitObject(
PyObject *category,
PyObject *message,
@@ -24,6 +25,7 @@ PyAPI_FUNC(int) PyErr_WarnExplicitObject(
int lineno,
PyObject *module,
PyObject *registry);
+#endif
PyAPI_FUNC(int) PyErr_WarnExplicit(
PyObject *category,
const char *message, /* UTF-8 encoded string */
@@ -32,11 +34,13 @@ PyAPI_FUNC(int) PyErr_WarnExplicit(
const char *module, /* UTF-8 encoded string */
PyObject *registry);
+#ifndef Py_LIMITED_API
PyAPI_FUNC(int)
PyErr_WarnExplicitFormat(PyObject *category,
const char *filename, int lineno,
const char *module, PyObject *registry,
const char *format, ...);
+#endif
/* DEPRECATED: Use PyErr_WarnEx() instead. */
#ifndef Py_LIMITED_API