Home
last modified time | relevance | path

Searched refs:decstring (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/_decimal/libmpdec/
Dio.c448 char *decstring = NULL, *cp = NULL; in _mpd_to_string() local
459 cp = decstring = mpd_alloc(mem, sizeof *decstring); in _mpd_to_string()
567 cp = decstring = mpd_alloc(mem, sizeof *decstring); in _mpd_to_string()
623 assert(cp < decstring+mem); in _mpd_to_string()
624 assert(cp-decstring < MPD_SSIZE_MAX); in _mpd_to_string()
627 *result = decstring; in _mpd_to_string()
628 return (mpd_ssize_t)(cp-decstring); in _mpd_to_string()
1081 char *decstring; in _mpd_apply_lconv() local
1113 decstring = result->data; in _mpd_apply_lconv()
1121 mpd_free(decstring); in _mpd_apply_lconv()
[all …]
/external/python/cpython3/Modules/_decimal/
D_decimal.c2277 char *decstring = NULL; in dectuple_as_str() local
2357 cp = decstring = PyMem_Malloc(mem); in dectuple_as_str()
2358 if (decstring == NULL) { in dectuple_as_str()
2412 return decstring; in dectuple_as_str()
2417 if (decstring) PyMem_Free(decstring); in dectuple_as_str()
3055 char *decstring = NULL; in dec_format() local
3158 decstring = mpd_qformat_spec(MPD(dec), &spec, CTX(context), &status); in dec_format()
3159 if (decstring == NULL) { in dec_format()
3169 size = strlen(decstring); in dec_format()
3171 dec_replace_fillchar(decstring); in dec_format()
[all …]