ffi: cleanup pystrtod

This commit is contained in:
Dean Li 2021-08-25 21:19:52 +08:00
parent 868c591c18
commit d62f568ffb
No known key found for this signature in database
GPG Key ID: 4F55BB69D480672A
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ extern "C" {
) -> *mut c_char;
}
// skipped non-limited _Py_string_to_number_with_underscores
// skipped non-limited _Py_parse_inf_or_nan
/* PyOS_double_to_string's "flags" parameter can be set to 0 or more of: */
pub const Py_DTSF_SIGN: c_int = 0x01; /* always add the sign */
pub const Py_DTSF_ADD_DOT_0: c_int = 0x02; /* if the result is an integer add ".0" */