summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-25 18:36:23 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-25 18:36:23 (GMT)
commita27d11221303d9cc6a2359b6de2cdaba6a2b1e97 (patch)
treec7e9c4732d8fd2e684e5a8450a0bd289649e4cc0 /Objects
parent81e479a11f7dc80246605731b6a1db7525d2c65d (diff)
downloadcpython-a27d11221303d9cc6a2359b6de2cdaba6a2b1e97.zip
cpython-a27d11221303d9cc6a2359b6de2cdaba6a2b1e97.tar.gz
cpython-a27d11221303d9cc6a2359b6de2cdaba6a2b1e97.tar.bz2
Rename roundup() to roundupsize(), as there's a macro roundup() in the
sys/types.h header on many systems that may get pulled in (through WANT_SIGFPE_HANDLER which pulls in signal.h).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index 02fdda6..c9d4a6b 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -43,7 +43,7 @@ PERFORMANCE OF THIS SOFTWARE.
((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
static int
-roundup(n)
+roundupsize(n)
int n;
{
if (n < 500)
@@ -52,7 +52,7 @@ roundup(n)
return ROUNDUP(n, 100);
}
-#define NRESIZE(var, type, nitems) PyMem_RESIZE(var, type, roundup(nitems))
+#define NRESIZE(var, type, nitems) PyMem_RESIZE(var, type, roundupsize(nitems))
PyObject *
PyList_New(size)