[Python-checkins] r74193 - in python/trunk/Doc/c-api: float.rst int.rst method.rst sys.rst tuple.rst type.rst unicode.rst

georg.brandl python-checkins at python.org
Fri Jul 24 18:46:38 CEST 2009


Author: georg.brandl
Date: Fri Jul 24 18:46:38 2009
New Revision: 74193

Log:
Dont put "void" in signature for nullary functions.

Modified:
   python/trunk/Doc/c-api/float.rst
   python/trunk/Doc/c-api/int.rst
   python/trunk/Doc/c-api/method.rst
   python/trunk/Doc/c-api/sys.rst
   python/trunk/Doc/c-api/tuple.rst
   python/trunk/Doc/c-api/type.rst
   python/trunk/Doc/c-api/unicode.rst

Modified: python/trunk/Doc/c-api/float.rst
==============================================================================
--- python/trunk/Doc/c-api/float.rst	(original)
+++ python/trunk/Doc/c-api/float.rst	Fri Jul 24 18:46:38 2009
@@ -72,21 +72,21 @@
    .. 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.

Modified: python/trunk/Doc/c-api/int.rst
==============================================================================
--- python/trunk/Doc/c-api/int.rst	(original)
+++ python/trunk/Doc/c-api/int.rst	Fri Jul 24 18:46:38 2009
@@ -131,7 +131,7 @@
    (: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.

Modified: python/trunk/Doc/c-api/method.rst
==============================================================================
--- python/trunk/Doc/c-api/method.rst	(original)
+++ python/trunk/Doc/c-api/method.rst	Fri Jul 24 18:46:38 2009
@@ -65,7 +65,7 @@
    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.
 

Modified: python/trunk/Doc/c-api/sys.rst
==============================================================================
--- python/trunk/Doc/c-api/sys.rst	(original)
+++ python/trunk/Doc/c-api/sys.rst	Fri Jul 24 18:46:38 2009
@@ -73,7 +73,7 @@
    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.
 

Modified: python/trunk/Doc/c-api/tuple.rst
==============================================================================
--- python/trunk/Doc/c-api/tuple.rst	(original)
+++ python/trunk/Doc/c-api/tuple.rst	Fri Jul 24 18:46:38 2009
@@ -157,7 +157,7 @@
       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.
 

Modified: python/trunk/Doc/c-api/type.rst
==============================================================================
--- python/trunk/Doc/c-api/type.rst	(original)
+++ python/trunk/Doc/c-api/type.rst	Fri Jul 24 18:46:38 2009
@@ -35,7 +35,7 @@
    .. versionadded:: 2.2
 
 
-.. cfunction:: unsigned int PyType_ClearCache(void)
+.. cfunction:: unsigned int PyType_ClearCache()
 
    Clear the internal lookup cache. Return the current version tag.
 

Modified: python/trunk/Doc/c-api/unicode.rst
==============================================================================
--- python/trunk/Doc/c-api/unicode.rst	(original)
+++ python/trunk/Doc/c-api/unicode.rst	Fri Jul 24 18:46:38 2009
@@ -98,12 +98,13 @@
    :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.


More information about the Python-checkins mailing list