Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb7f580

Browse files
author
Stefan Krah
committed
Issue #16745: Hide a couple of symbols by making them local.
1 parent c51bafb commit fb7f580

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3484,7 +3484,7 @@ PyDec_Round(PyObject *dec, PyObject *args)
34843484
}
34853485
}
34863486

3487-
PyObject *DecimalTuple = NULL;
3487+
static PyObject *DecimalTuple = NULL;
34883488
/* Return the DecimalTuple representation of a PyDecObject. */
34893489
static PyObject *
34903490
PyDec_AsTuple(PyObject *dec, PyObject *dummy UNUSED)

Modules/_decimal/libmpdec/mpdecimal.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static inline void _mpd_qpow_uint(mpd_t *result, const mpd_t *base,
107107
mpd_uint_t exp, uint8_t resultsign,
108108
const mpd_context_t *ctx, uint32_t *status);
109109

110-
mpd_uint_t mpd_qsshiftr(mpd_t *result, const mpd_t *a, mpd_ssize_t n);
110+
static mpd_uint_t mpd_qsshiftr(mpd_t *result, const mpd_t *a, mpd_ssize_t n);
111111

112112

113113
/******************************************************************************/
@@ -2301,7 +2301,7 @@ _mpd_get_rnd(const mpd_uint_t *data, mpd_ssize_t len, int use_msd)
23012301
* It is the caller's responsibility to ensure that the coefficient is big
23022302
* enough. The function cannot fail.
23032303
*/
2304-
mpd_uint_t
2304+
static mpd_uint_t
23052305
mpd_qsshiftr(mpd_t *result, const mpd_t *a, mpd_ssize_t n)
23062306
{
23072307
mpd_uint_t rnd;
@@ -5123,7 +5123,7 @@ _karatsuba_rec(mpd_uint_t *c, const mpd_uint_t *a, const mpd_uint_t *b,
51235123
* to the result or NULL in case of failure (malloc error).
51245124
* Conditions: ulen >= vlen, ulen >= 4
51255125
*/
5126-
mpd_uint_t *
5126+
static mpd_uint_t *
51275127
_mpd_kmul(const mpd_uint_t *u, const mpd_uint_t *v,
51285128
mpd_size_t ulen, mpd_size_t vlen,
51295129
mpd_size_t *rsize)
@@ -5208,7 +5208,7 @@ _mpd_set_control87(unsigned short cw)
52085208
}
52095209
#endif
52105210

5211-
unsigned int
5211+
static unsigned int
52125212
mpd_set_fenv(void)
52135213
{
52145214
unsigned int cw;
@@ -5228,7 +5228,7 @@ mpd_set_fenv(void)
52285228
return cw;
52295229
}
52305230

5231-
void
5231+
static void
52325232
mpd_restore_fenv(unsigned int cw)
52335233
{
52345234
#ifdef _MSC_VER
@@ -5246,7 +5246,7 @@ mpd_restore_fenv(unsigned int cw)
52465246
* Multiply u and v, using the fast number theoretic transform. Returns
52475247
* a pointer to the result or NULL in case of failure (malloc error).
52485248
*/
5249-
mpd_uint_t *
5249+
static mpd_uint_t *
52505250
_mpd_fntmul(const mpd_uint_t *u, const mpd_uint_t *v,
52515251
mpd_size_t ulen, mpd_size_t vlen,
52525252
mpd_size_t *rsize)
@@ -5432,7 +5432,7 @@ _karatsuba_rec_fnt(mpd_uint_t *c, const mpd_uint_t *a, const mpd_uint_t *b,
54325432
* base case. Returns a pointer to the result or NULL in case of failure
54335433
* (malloc error). Conditions: ulen >= vlen, ulen >= 4.
54345434
*/
5435-
mpd_uint_t *
5435+
static mpd_uint_t *
54365436
_mpd_kmul_fnt(const mpd_uint_t *u, const mpd_uint_t *v,
54375437
mpd_size_t ulen, mpd_size_t vlen,
54385438
mpd_size_t *rsize)

0 commit comments

Comments
 (0)