Home
last modified time | relevance | path

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

/third_party/python/Modules/_decimal/libmpdec/
Dio.c464 char *decstring = NULL, *cp = NULL; in _mpd_to_string() local
475 cp = decstring = mpd_alloc(mem, sizeof *decstring); in _mpd_to_string()
583 cp = decstring = mpd_alloc(mem, sizeof *decstring); in _mpd_to_string()
639 assert(cp < decstring+mem); in _mpd_to_string()
640 assert(cp-decstring < MPD_SSIZE_MAX); in _mpd_to_string()
643 *result = decstring; in _mpd_to_string()
644 return (mpd_ssize_t)(cp-decstring); in _mpd_to_string()
1097 char *decstring; in _mpd_apply_lconv() local
1129 decstring = result->data; in _mpd_apply_lconv()
1137 mpd_free(decstring); in _mpd_apply_lconv()
[all …]
/third_party/python/Modules/_decimal/
D_decimal.c2421 char *decstring = NULL; in dectuple_as_str() local
2501 cp = decstring = PyMem_Malloc(mem); in dectuple_as_str()
2502 if (decstring == NULL) { in dectuple_as_str()
2556 return decstring; in dectuple_as_str()
2561 if (decstring) PyMem_Free(decstring); in dectuple_as_str()
3224 char *decstring = NULL; in dec_format() local
3315 decstring = mpd_qformat_spec(MPD(dec), &spec, CTX(context), &status); in dec_format()
3316 if (decstring == NULL) { in dec_format()
3326 size = strlen(decstring); in dec_format()
3328 dec_replace_fillchar(decstring); in dec_format()
[all …]