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
5eef77a2
Commit
5eef77a2
authored
Aug 30, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the Py<type>_Check() macro use PyObject_TypeCheck().
parent
deb77e83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Include/stringobject.h
Include/stringobject.h
+1
-1
Include/tupleobject.h
Include/tupleobject.h
+1
-1
Include/unicodeobject.h
Include/unicodeobject.h
+1
-1
No files found.
Include/stringobject.h
View file @
5eef77a2
...
...
@@ -51,7 +51,7 @@ typedef struct {
extern
DL_IMPORT
(
PyTypeObject
)
PyString_Type
;
#define PyString_Check(op)
((op)->ob_type ==
&PyString_Type)
#define PyString_Check(op)
PyObject_TypeCheck(op,
&PyString_Type)
extern
DL_IMPORT
(
PyObject
*
)
PyString_FromStringAndSize
(
const
char
*
,
int
);
extern
DL_IMPORT
(
PyObject
*
)
PyString_FromString
(
const
char
*
);
...
...
Include/tupleobject.h
View file @
5eef77a2
...
...
@@ -26,7 +26,7 @@ typedef struct {
extern
DL_IMPORT
(
PyTypeObject
)
PyTuple_Type
;
#define PyTuple_Check(op)
((op)->ob_type ==
&PyTuple_Type)
#define PyTuple_Check(op)
PyObject_TypeCheck(op,
&PyTuple_Type)
extern
DL_IMPORT
(
PyObject
*
)
PyTuple_New
(
int
size
);
extern
DL_IMPORT
(
int
)
PyTuple_Size
(
PyObject
*
);
...
...
Include/unicodeobject.h
View file @
5eef77a2
...
...
@@ -372,7 +372,7 @@ typedef struct {
extern
DL_IMPORT
(
PyTypeObject
)
PyUnicode_Type
;
#define PyUnicode_Check(op)
(((op)->ob_type == &PyUnicode_Type)
)
#define PyUnicode_Check(op)
PyObject_TypeCheck(op, &PyUnicode_Type
)
/* Fast access macros */
#define PyUnicode_GET_SIZE(op) \
...
...
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