mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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).
This commit is contained in:
parent
81e479a11f
commit
a27d112213
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||||
((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
|
((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
|
||||||
|
|
||||||
static int
|
static int
|
||||||
roundup(n)
|
roundupsize(n)
|
||||||
int n;
|
int n;
|
||||||
{
|
{
|
||||||
if (n < 500)
|
if (n < 500)
|
||||||
|
@ -52,7 +52,7 @@ roundup(n)
|
||||||
return ROUNDUP(n, 100);
|
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 *
|
PyObject *
|
||||||
PyList_New(size)
|
PyList_New(size)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue