Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
510c6653
Commit
510c6653
authored
Aug 11, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPython and C++ bool declarations.
parent
1e10cdfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Cython/Includes/cpython/bool.pxd
Cython/Includes/cpython/bool.pxd
+3
-0
Cython/Includes/libcpp/__init__.pxd
Cython/Includes/libcpp/__init__.pxd
+3
-0
No files found.
Cython/Includes/cpython/bool.pxd
View file @
510c6653
...
...
@@ -5,6 +5,9 @@ cdef extern from "Python.h":
# 7.2.2 Boolean Objects
############################################################################
ctypedef
class
__builtin__
.
bool
[
object
PyBoolObject
]:
pass
# Booleans in Python are implemented as a subclass of
# integers. There are only two booleans, Py_False and Py_True. As
# such, the normal creation and deletion functions don't apply to
...
...
Cython/Includes/libcpp/__init__.pxd
View file @
510c6653
# empty file
cdef
extern
from
*
:
ctypedef
bint
bool
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