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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
39c60001
Commit
39c60001
authored
Jan 26, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #362 from jdemeyer/declare_PyTypeObject
Add some declarations for PyTypeObject
parents
cf0b3f2c
eaad6a9d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
Cython/Includes/cpython/object.pxd
Cython/Includes/cpython/object.pxd
+33
-0
Cython/Includes/cpython/ref.pxd
Cython/Includes/cpython/ref.pxd
+5
-1
No files found.
Cython/Includes/cpython/object.pxd
View file @
39c60001
...
...
@@ -290,3 +290,36 @@ cdef extern from "Python.h":
# Takes an arbitrary object and returns the result of calling
# obj.__format__(format_spec).
# Added in Py2.6
# Type flags (tp_flags of PyTypeObject)
long
Py_TPFLAGS_HAVE_GETCHARBUFFER
long
Py_TPFLAGS_HAVE_SEQUENCE_IN
long
Py_TPFLAGS_HAVE_INPLACEOPS
long
Py_TPFLAGS_CHECKTYPES
long
Py_TPFLAGS_HAVE_RICHCOMPARE
long
Py_TPFLAGS_HAVE_WEAKREFS
long
Py_TPFLAGS_HAVE_ITER
long
Py_TPFLAGS_HAVE_CLASS
long
Py_TPFLAGS_HEAPTYPE
long
Py_TPFLAGS_BASETYPE
long
Py_TPFLAGS_READY
long
Py_TPFLAGS_READYING
long
Py_TPFLAGS_HAVE_GC
long
Py_TPFLAGS_HAVE_STACKLESS_EXTENSION
long
Py_TPFLAGS_HAVE_INDEX
long
Py_TPFLAGS_HAVE_VERSION_TAG
long
Py_TPFLAGS_VALID_VERSION_TAG
long
Py_TPFLAGS_IS_ABSTRACT
long
Py_TPFLAGS_HAVE_NEWBUFFER
long
Py_TPFLAGS_INT_SUBCLASS
long
Py_TPFLAGS_LONG_SUBCLASS
long
Py_TPFLAGS_LIST_SUBCLASS
long
Py_TPFLAGS_TUPLE_SUBCLASS
long
Py_TPFLAGS_STRING_SUBCLASS
long
Py_TPFLAGS_UNICODE_SUBCLASS
long
Py_TPFLAGS_DICT_SUBCLASS
long
Py_TPFLAGS_BASE_EXC_SUBCLASS
long
Py_TPFLAGS_TYPE_SUBCLASS
long
Py_TPFLAGS_DEFAULT_EXTERNAL
long
Py_TPFLAGS_DEFAULT_CORE
long
Py_TPFLAGS_DEFAULT
Cython/Includes/cpython/ref.pxd
View file @
39c60001
cdef
extern
from
"Python.h"
:
ctypedef
struct
PyTypeObject
ctypedef
struct
PyTypeObject
:
Py_ssize_t
tp_basicsize
Py_ssize_t
tp_itemsize
long
tp_flags
ctypedef
struct
PyObject
:
Py_ssize_t
ob_refcnt
PyTypeObject
*
ob_type
...
...
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