diff Objects/listobject.c @ 6154:2ee9811c92fd legacy-trunk

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).
author Guido van Rossum <guido@python.org>
date Mon, 25 Aug 1997 18:36:23 +0000
parents c043901fa1fe
children 0fe3dc28b92c
line wrap: on
line diff
--- a/Objects/listobject.c	Mon Aug 25 18:28:03 1997 +0000
+++ b/Objects/listobject.c	Mon Aug 25 18:36:23 1997 +0000
@@ -43,7 +43,7 @@
 	((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
 
 static int
-roundup(n)
+roundupsize(n)
 	int n;
 {
 	if (n < 500)
@@ -52,7 +52,7 @@
 		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)