cosmopolitan/third_party/python/Include/pystrhex.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

14 lines
491 B
C

#ifndef Py_STRHEX_H
#define Py_STRHEX_H
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
#ifndef Py_LIMITED_API
/* Returns a str() containing the hex representation of argbuf. */
PyObject* _Py_strhex(const char* argbuf, const Py_ssize_t arglen);
/* Returns a bytes() containing the ASCII hex representation of argbuf. */
PyObject* _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen);
#endif /* !Py_LIMITED_API */
COSMOPOLITAN_C_END_
#endif /* !Py_STRHEX_H */