summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-01-18 17:34:56 (GMT)
committerGitHub <noreply@github.com>2021-01-18 17:34:56 (GMT)
commit314b8787e0c50985ba708034b84ff5b37a1d47de (patch)
tree12941638dbc2d4ad82496a56491b1c3504a79f41 /Include
parente232025025c8bd07c1d1b12a583a80c4a673f077 (diff)
downloadcpython-314b8787e0c50985ba708034b84ff5b37a1d47de.zip
cpython-314b8787e0c50985ba708034b84ff5b37a1d47de.tar.gz
cpython-314b8787e0c50985ba708034b84ff5b37a1d47de.tar.bz2
bpo-42923: Py_FatalError() avoids fprintf() (GH-24242)
* Replace buffered fprintf() with unbuffered _Py_write_noraise() in Py_FatalError(). * _Py_DumpHexadecimal() now accepts uintptr_t.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_traceback.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h
index 1f09241..169e99b 100644
--- a/Include/internal/pycore_traceback.h
+++ b/Include/internal/pycore_traceback.h
@@ -76,15 +76,11 @@ PyAPI_FUNC(void) _Py_DumpDecimal(
int fd,
unsigned long value);
-/* Format an integer as hexadecimal into the file descriptor fd with at least
- width digits.
-
- The maximum width is sizeof(unsigned long)*2 digits.
-
- This function is signal safe. */
+/* Format an integer as hexadecimal with width digits into fd file descriptor.
+ The function is signal safe. */
PyAPI_FUNC(void) _Py_DumpHexadecimal(
int fd,
- unsigned long value,
+ uintptr_t value,
Py_ssize_t width);
PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame(