]> granicus.if.org Git - python/commitdiff
Dont put "void" in signature for nullary functions.
authorGeorg Brandl <georg@python.org>
Fri, 24 Jul 2009 16:46:38 +0000 (16:46 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 24 Jul 2009 16:46:38 +0000 (16:46 +0000)
Doc/c-api/float.rst
Doc/c-api/int.rst
Doc/c-api/method.rst
Doc/c-api/sys.rst
Doc/c-api/tuple.rst
Doc/c-api/type.rst
Doc/c-api/unicode.rst

index f70529752fdbadb378486e9f306364ff98245c44..c4099a305753b11a0d6a552216a8ec717e35bf29 100644 (file)
@@ -72,21 +72,21 @@ Floating Point Objects
    .. versionadded:: 2.6
 
 
-.. cfunction:: double PyFloat_GetMax(void)
+.. cfunction:: double PyFloat_GetMax()
 
    Return the maximum representable finite float *DBL_MAX* as C :ctype:`double`.
 
    .. versionadded:: 2.6
 
 
-.. cfunction:: double PyFloat_GetMin(void)
+.. cfunction:: double PyFloat_GetMin()
 
    Return the minimum normalized positive float *DBL_MIN* as C :ctype:`double`.
 
    .. versionadded:: 2.6
 
 
-.. cfunction:: int PyFloat_ClearFreeList(void)
+.. cfunction:: int PyFloat_ClearFreeList()
 
    Clear the float free list. Return the number of items that could not
    be freed.
index 9ff0347d05c71df891e23c463b932ef801d6a937..c561bc2eeace823bf4f064dd2a9fefa4a63fb16e 100644 (file)
@@ -131,7 +131,7 @@ Plain Integer Objects
    (:const:`LONG_MAX`, as defined in the system header files).
 
 
-.. cfunction:: int PyInt_ClearFreeList(void)
+.. cfunction:: int PyInt_ClearFreeList()
 
    Clear the integer free list. Return the number of items that could not
    be freed.
index c104f8995ba35df5e0b10def5428d76865c341cf..add1f0fe356b55c3cf24fa799ae6877be2e9c30d 100644 (file)
@@ -65,7 +65,7 @@ There are some useful functions that are useful for working with method objects.
    Macro version of :cfunc:`PyMethod_Self` which avoids error checking.
 
 
-.. cfunction:: int PyMethod_ClearFreeList(void)
+.. cfunction:: int PyMethod_ClearFreeList()
 
    Clear the free list. Return the total number of freed items.
 
index f5d2ab00230fc7b489ff0d5a014a3a6a443fd55e..6788bc9486aed804011fa7231bb64efbbd48d07b 100644 (file)
@@ -73,7 +73,7 @@ accessible to C code.  They all work with the current interpreter thread's
    case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``
    on error.
 
-.. cfunction:: void PySys_ResetWarnOptions(void)
+.. cfunction:: void PySys_ResetWarnOptions()
 
    Reset :data:`sys.warnoptions` to an empty list.
 
index 53db2a183989618a83a78f01b157763a816488ac..eb479d5abc7c53694dd099ab8afabd49e3096219 100644 (file)
@@ -157,7 +157,7 @@ Tuple Objects
       require changes in your code for properly supporting 64-bit systems.
 
 
-.. cfunction:: int PyTuple_ClearFreeList(void)
+.. cfunction:: int PyTuple_ClearFreeList()
 
    Clear the free list. Return the total number of freed items.
 
index 77a3aec31c89aa96614ea2ff470f6b69af11f0a2..7d1c773ca191e779e103cc9f71b586edd0117900 100644 (file)
@@ -35,7 +35,7 @@ Type Objects
    .. versionadded:: 2.2
 
 
-.. cfunction:: unsigned int PyType_ClearCache(void)
+.. cfunction:: unsigned int PyType_ClearCache()
 
    Clear the internal lookup cache. Return the current version tag.
 
index 8469ff97fd307da3b02aec08a20775f1dd049209..b60373464862e7a906e8dc3a04083ef8275130fa 100644 (file)
@@ -98,12 +98,13 @@ access internal read-only data of Unicode objects:
    :ctype:`PyUnicodeObject` (not checked).
 
 
-.. cfunction:: int PyUnicode_ClearFreeList(void)
+.. cfunction:: int PyUnicode_ClearFreeList()
 
    Clear the free list. Return the total number of freed items.
 
    .. versionadded:: 2.6
 
+
 Unicode provides many different character properties. The most often needed ones
 are available through these macros which are mapped to C functions depending on
 the Python configuration.