cpython: 24f6c6f3b7bf (original) (raw)

--- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -3484,7 +3484,7 @@ PyDec_Round(PyObject *dec, PyObject *arg } } -PyObject *DecimalTuple = NULL; +static PyObject DecimalTuple = NULL; / Return the DecimalTuple representation of a PyDecObject. */ static PyObject * PyDec_AsTuple(PyObject *dec, PyObject *dummy UNUSED)

--- a/Modules/_decimal/libmpdec/mpdecimal.c +++ b/Modules/_decimal/libmpdec/mpdecimal.c @@ -107,7 +107,7 @@ static inline void _mpd_qpow_uint(mpd_t mpd_uint_t exp, uint8_t resultsign, const mpd_context_t ctx, uint32_t status); -mpd_uint_t mpd_qsshiftr(mpd_t result, const mpd_t a, mpd_ssize_t n); +static mpd_uint_t mpd_qsshiftr(mpd_t result, const mpd_t a, mpd_ssize_t n); /************************************************************************/ @@ -2301,7 +2301,7 @@ static mpd_uint_t

@@ -5208,7 +5208,7 @@ static inline void } #endif -unsigned int +static unsigned int mpd_set_fenv(void) { unsigned int cw; @@ -5228,7 +5228,7 @@ mpd_set_fenv(void) return cw; } -void +static void mpd_restore_fenv(unsigned int cw) { #ifdef _MSC_VER @@ -5246,7 +5246,7 @@ mpd_restore_fenv(unsigned int cw)

@@ -5432,7 +5432,7 @@ static int