]> granicus.if.org Git - python/commitdiff
Rename roundup() to roundupsize(), as there's a macro roundup() in the
authorGuido van Rossum <guido@python.org>
Mon, 25 Aug 1997 18:36:23 +0000 (18:36 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 25 Aug 1997 18:36:23 +0000 (18:36 +0000)
sys/types.h header on many systems that may get pulled in (through
WANT_SIGFPE_HANDLER which pulls in signal.h).

Objects/listobject.c

index 02fdda63921b5eda5053344198217b9a8ffc24dc..c9d4a6bb6af1478eb06736ba62d883fdbffd580f 100644 (file)
@@ -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)