Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18fc543

Browse files
authored
gh-107211: No longer export pycore_strhex.h functions (#108229)
No longer export functions: * _Py_strhex_bytes() * _Py_strhex_with_sep()
1 parent 1cc391d commit 18fc543

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Include/internal/pycore_strhex.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ extern "C" {
99
#endif
1010

1111
// Returns a str() containing the hex representation of argbuf.
12+
// Export for '_hashlib' shared extension.
1213
PyAPI_FUNC(PyObject*) _Py_strhex(const
1314
char* argbuf,
1415
const Py_ssize_t arglen);
1516

1617
// Returns a bytes() containing the ASCII hex representation of argbuf.
17-
PyAPI_FUNC(PyObject*) _Py_strhex_bytes(
18+
extern PyObject* _Py_strhex_bytes(
1819
const char* argbuf,
1920
const Py_ssize_t arglen);
2021

2122
// These variants include support for a separator between every N bytes:
22-
PyAPI_FUNC(PyObject*) _Py_strhex_with_sep(
23+
extern PyObject* _Py_strhex_with_sep(
2324
const char* argbuf,
2425
const Py_ssize_t arglen,
2526
PyObject* sep,
2627
const int bytes_per_group);
28+
29+
// Export for 'binascii' shared extension
2730
PyAPI_FUNC(PyObject*) _Py_strhex_bytes_with_sep(
2831
const char* argbuf,
2932
const Py_ssize_t arglen,

0 commit comments

Comments
 (0)