We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d0c1ee commit 04f8186Copy full SHA for 04f8186
1 file changed
pyo3-ffi/src/cpython/unicodeobject.rs
@@ -866,9 +866,17 @@ extern_libpython! {
866
// skipped Py_UNICODE_ISNUMERIC
867
// skipped Py_UNICODE_ISPRINTABLE
868
869
+#[cfg(not(PyPy))]
870
pub unsafe extern "C" fn Py_UNICODE_TODECIMAL(ch: Py_UCS4) -> c_int {
871
_PyUnicode_ToDecimalDigit(ch)
872
}
873
+
874
+#[cfg(PyPy)]
875
+extern_libpython! {
876
+ #[cfg(link_name = "PyPy_UNICODE_TODECIMAL")]
877
+ pub fn Py_UNICODE_TODECIMAL(ch: Py_UCS4) -> c_int;
878
+}
879
880
// skipped Py_UNICODE_TODIGIT
881
// skipped Py_UNICODE_TONUMERIC
882
0 commit comments