diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 09:32:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-23 09:32:26 (GMT) |
commit | bd31b7c48317eecf981215afbb1f30c81769acbf (patch) | |
tree | 3ce9fbfe0e3d31e4b9af7dc71923d244638d2f3b /Include | |
parent | 5dacbd4c42171e447e2f07144faf502774dc921a (diff) | |
download | cpython-bd31b7c48317eecf981215afbb1f30c81769acbf.zip cpython-bd31b7c48317eecf981215afbb1f30c81769acbf.tar.gz cpython-bd31b7c48317eecf981215afbb1f30c81769acbf.tar.bz2 |
Issue #23848: Expose _Py_DumpHexadecimal()
This function will be reused by faulthandler.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/traceback.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Include/traceback.h b/Include/traceback.h index 76e169a..f767ea8 100644 --- a/Include/traceback.h +++ b/Include/traceback.h @@ -94,7 +94,20 @@ PyAPI_FUNC(void) _Py_DumpASCII(int fd, PyObject *text); /* Format an integer as decimal into the file descriptor fd. This function is signal safe. */ -PyAPI_FUNC(void) _Py_DumpDecimal(int fd, unsigned long value); +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. */ +PyAPI_FUNC(void) _Py_DumpHexadecimal( + int fd, + unsigned long value, + Py_ssize_t width); #endif /* !Py_LIMITED_API */ |