Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
36b30b5a
Commit
36b30b5a
authored
Jul 24, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dont put "void" in signature for nullary functions.
parent
f0b17335
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
9 deletions
+10
-9
Doc/c-api/float.rst
Doc/c-api/float.rst
+3
-3
Doc/c-api/int.rst
Doc/c-api/int.rst
+1
-1
Doc/c-api/method.rst
Doc/c-api/method.rst
+1
-1
Doc/c-api/sys.rst
Doc/c-api/sys.rst
+1
-1
Doc/c-api/tuple.rst
Doc/c-api/tuple.rst
+1
-1
Doc/c-api/type.rst
Doc/c-api/type.rst
+1
-1
Doc/c-api/unicode.rst
Doc/c-api/unicode.rst
+2
-1
No files found.
Doc/c-api/float.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Doc/c-api/int.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Doc/c-api/method.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Doc/c-api/sys.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Doc/c-api/tuple.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Doc/c-api/type.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Doc/c-api/unicode.rst
View file @
36b30b5a
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment