]> granicus.if.org Git - python/commitdiff
Fix naming inconsistency.
authorMark Dickinson <dickinsm@gmail.com>
Mon, 7 Jun 2010 18:47:09 +0000 (18:47 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 7 Jun 2010 18:47:09 +0000 (18:47 +0000)
Include/longobject.h
Modules/datetimemodule.c
Objects/longobject.c

index 72bcd98e185f0a909afad84ed71713e776f84e89..02bf7ef2c0dba1e3ea68d4a8f230caff1a98630b 100644 (file)
@@ -101,13 +101,13 @@ PyAPI_FUNC(int) _PyLong_Sign(PyObject *v);
 */
 PyAPI_FUNC(size_t) _PyLong_NumBits(PyObject *v);
 
-/* _PyLong_Divmod_Near.  Given integers a and b, compute the nearest
+/* _PyLong_DivmodNear.  Given integers a and b, compute the nearest
    integer q to the exact quotient a / b, rounding to the nearest even integer
    in the case of a tie.  Return (q, r), where r = a - q*b.  The remainder r
    will satisfy abs(r) <= abs(b)/2, with equality possible only if q is
    even.
 */
-PyAPI_FUNC(PyObject *) _PyLong_Divmod_Near(PyObject *, PyObject *);
+PyAPI_FUNC(PyObject *) _PyLong_DivmodNear(PyObject *, PyObject *);
 
 /* _PyLong_FromByteArray:  View the n unsigned bytes as a binary integer in
    base 256, and return a Python long with the same numeric value.
index 71aba6d797ab35ece83a53b8e67b93b7d471034c..30816ed418e24a6fc5a7bd8276d7c9e90e2326e6 100644 (file)
@@ -161,7 +161,7 @@ divide_nearest(PyObject *m, PyObject *n)
     PyObject *result;
     PyObject *temp;
 
-    temp = _PyLong_Divmod_Near(m, n);
+    temp = _PyLong_DivmodNear(m, n);
     if (temp == NULL)
         return NULL;
     result = PyTuple_GET_ITEM(temp, 0);
index ed41010b04a17d1c10beee0a86d7b196869a2075..c9c9817f12300fdeaf08fa376c0bf02a72d8326c 100644 (file)
@@ -4218,7 +4218,7 @@ long__format__(PyObject *self, PyObject *args)
    round-half-to-even. */
 
 PyObject *
-_PyLong_Divmod_Near(PyObject *a, PyObject *b)
+_PyLong_DivmodNear(PyObject *a, PyObject *b)
 {
     PyLongObject *quo = NULL, *rem = NULL;
     PyObject *one = NULL, *twice_rem, *result, *temp;
@@ -4363,7 +4363,7 @@ long_round(PyObject *self, PyObject *args)
     if (result == NULL)
         return NULL;
 
-    temp = _PyLong_Divmod_Near(self, result);
+    temp = _PyLong_DivmodNear(self, result);
     Py_DECREF(result);
     result = temp;
     if (result == NULL)