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
c219d55b
Commit
c219d55b
authored
Jan 17, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rich comparisons: ensure that LT == Py_LT, etc.
parent
5f284ce6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Include/opcode.h
Include/opcode.h
+2
-1
No files found.
Include/opcode.h
View file @
c219d55b
...
@@ -135,7 +135,8 @@ extern "C" {
...
@@ -135,7 +135,8 @@ extern "C" {
#define EXTENDED_ARG 143
#define EXTENDED_ARG 143
/* Comparison operator codes (argument to COMPARE_OP) */
/* Comparison operator codes (argument to COMPARE_OP) */
enum
cmp_op
{
LT
,
LE
,
EQ
,
NE
,
GT
,
GE
,
IN
,
NOT_IN
,
IS
,
IS_NOT
,
EXC_MATCH
,
BAD
};
enum
cmp_op
{
LT
=
Py_LT
,
LE
=
Py_LE
,
EQ
=
Py_EQ
,
NE
=
Py_NE
,
GT
=
Py_GT
,
GE
=
Py_GE
,
IN
,
NOT_IN
,
IS
,
IS_NOT
,
EXC_MATCH
,
BAD
};
#define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
#define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
...
...
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