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
841504fa
Commit
841504fa
authored
Aug 29, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the PyXXX_Check() macros for the numeric types inheritance-aware.
parent
e28fbead
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Include/complexobject.h
Include/complexobject.h
+1
-1
Include/floatobject.h
Include/floatobject.h
+1
-1
Include/intobject.h
Include/intobject.h
+1
-1
Include/longobject.h
Include/longobject.h
+1
-1
No files found.
Include/complexobject.h
View file @
841504fa
...
@@ -42,7 +42,7 @@ typedef struct {
...
@@ -42,7 +42,7 @@ typedef struct {
extern
DL_IMPORT
(
PyTypeObject
)
PyComplex_Type
;
extern
DL_IMPORT
(
PyTypeObject
)
PyComplex_Type
;
#define PyComplex_Check(op)
((op)->ob_type ==
&PyComplex_Type)
#define PyComplex_Check(op)
PyObject_TypeCheck(op,
&PyComplex_Type)
extern
DL_IMPORT
(
PyObject
*
)
PyComplex_FromCComplex
(
Py_complex
);
extern
DL_IMPORT
(
PyObject
*
)
PyComplex_FromCComplex
(
Py_complex
);
extern
DL_IMPORT
(
PyObject
*
)
PyComplex_FromDoubles
(
double
real
,
double
imag
);
extern
DL_IMPORT
(
PyObject
*
)
PyComplex_FromDoubles
(
double
real
,
double
imag
);
...
...
Include/floatobject.h
View file @
841504fa
...
@@ -18,7 +18,7 @@ typedef struct {
...
@@ -18,7 +18,7 @@ typedef struct {
extern
DL_IMPORT
(
PyTypeObject
)
PyFloat_Type
;
extern
DL_IMPORT
(
PyTypeObject
)
PyFloat_Type
;
#define PyFloat_Check(op)
((op)->ob_type ==
&PyFloat_Type)
#define PyFloat_Check(op)
PyObject_TypeCheck(op,
&PyFloat_Type)
/* Return Python float from string PyObject. Second argument ignored on
/* Return Python float from string PyObject. Second argument ignored on
input, and, if non-NULL, NULL is stored into *junk (this tried to serve a
input, and, if non-NULL, NULL is stored into *junk (this tried to serve a
...
...
Include/intobject.h
View file @
841504fa
...
@@ -27,7 +27,7 @@ typedef struct {
...
@@ -27,7 +27,7 @@ typedef struct {
extern
DL_IMPORT
(
PyTypeObject
)
PyInt_Type
;
extern
DL_IMPORT
(
PyTypeObject
)
PyInt_Type
;
#define PyInt_Check(op)
((op)->ob_type ==
&PyInt_Type)
#define PyInt_Check(op)
PyObject_TypeCheck(op,
&PyInt_Type)
extern
DL_IMPORT
(
PyObject
*
)
PyInt_FromString
(
char
*
,
char
**
,
int
);
extern
DL_IMPORT
(
PyObject
*
)
PyInt_FromString
(
char
*
,
char
**
,
int
);
#ifdef Py_USING_UNICODE
#ifdef Py_USING_UNICODE
...
...
Include/longobject.h
View file @
841504fa
...
@@ -11,7 +11,7 @@ typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */
...
@@ -11,7 +11,7 @@ typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */
extern
DL_IMPORT
(
PyTypeObject
)
PyLong_Type
;
extern
DL_IMPORT
(
PyTypeObject
)
PyLong_Type
;
#define PyLong_Check(op)
((op)->ob_type ==
&PyLong_Type)
#define PyLong_Check(op)
PyObject_TypeCheck(op,
&PyLong_Type)
extern
DL_IMPORT
(
PyObject
*
)
PyLong_FromLong
(
long
);
extern
DL_IMPORT
(
PyObject
*
)
PyLong_FromLong
(
long
);
extern
DL_IMPORT
(
PyObject
*
)
PyLong_FromUnsignedLong
(
unsigned
long
);
extern
DL_IMPORT
(
PyObject
*
)
PyLong_FromUnsignedLong
(
unsigned
long
);
...
...
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