[Python-checkins] cpython (3.3): Issue #16745: Hide a couple of symbols by making them local.
stefan.krah
python-checkins at python.org
Fri Dec 21 23:28:12 CET 2012
http://hg.python.org/cpython/rev/24f6c6f3b7bf
changeset: 80972:24f6c6f3b7bf
branch: 3.3
parent: 80969:6c31a921a569
user: Stefan Krah <skrah at bytereef.org>
date: Fri Dec 21 23:11:05 2012 +0100
summary:
Issue #16745: Hide a couple of symbols by making them local.
files:
Modules/_decimal/_decimal.c | 2 +-
Modules/_decimal/libmpdec/mpdecimal.c | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -3484,7 +3484,7 @@
}
}
-PyObject *DecimalTuple = NULL;
+static PyObject *DecimalTuple = NULL;
/* Return the DecimalTuple representation of a PyDecObject. */
static PyObject *
PyDec_AsTuple(PyObject *dec, PyObject *dummy UNUSED)
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -107,7 +107,7 @@
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 @@
* It is the caller's responsibility to ensure that the coefficient is big
* enough. The function cannot fail.
*/
-mpd_uint_t
+static mpd_uint_t
mpd_qsshiftr(mpd_t *result, const mpd_t *a, mpd_ssize_t n)
{
mpd_uint_t rnd;
@@ -5123,7 +5123,7 @@
* to the result or NULL in case of failure (malloc error).
* Conditions: ulen >= vlen, ulen >= 4
*/
-mpd_uint_t *
+static mpd_uint_t *
_mpd_kmul(const mpd_uint_t *u, const mpd_uint_t *v,
mpd_size_t ulen, mpd_size_t vlen,
mpd_size_t *rsize)
@@ -5208,7 +5208,7 @@
}
#endif
-unsigned int
+static unsigned int
mpd_set_fenv(void)
{
unsigned int cw;
@@ -5228,7 +5228,7 @@
return cw;
}
-void
+static void
mpd_restore_fenv(unsigned int cw)
{
#ifdef _MSC_VER
@@ -5246,7 +5246,7 @@
* Multiply u and v, using the fast number theoretic transform. Returns
* a pointer to the result or NULL in case of failure (malloc error).
*/
-mpd_uint_t *
+static mpd_uint_t *
_mpd_fntmul(const mpd_uint_t *u, const mpd_uint_t *v,
mpd_size_t ulen, mpd_size_t vlen,
mpd_size_t *rsize)
@@ -5432,7 +5432,7 @@
* base case. Returns a pointer to the result or NULL in case of failure
* (malloc error). Conditions: ulen >= vlen, ulen >= 4.
*/
-mpd_uint_t *
+static mpd_uint_t *
_mpd_kmul_fnt(const mpd_uint_t *u, const mpd_uint_t *v,
mpd_size_t ulen, mpd_size_t vlen,
mpd_size_t *rsize)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list