summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-17 15:21:09 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-17 15:21:09 (GMT)
commitc219d55bd02b6b21de088de357b0761a3d1a7ac2 (patch)
tree83679fdbb3b8c3e36ff560a390fd096ed1c1e753 /Include
parent5f284ce68e95e679b007298320d24e3e3905c43c (diff)
downloadcpython-c219d55bd02b6b21de088de357b0761a3d1a7ac2.zip
cpython-c219d55bd02b6b21de088de357b0761a3d1a7ac2.tar.gz
cpython-c219d55bd02b6b21de088de357b0761a3d1a7ac2.tar.bz2
Rich comparisons: ensure that LT == Py_LT, etc.
Diffstat (limited to 'Include')
-rw-r--r--Include/opcode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/opcode.h b/Include/opcode.h
index 349756c..0977585 100644
--- a/Include/opcode.h
+++ b/Include/opcode.h
@@ -135,7 +135,8 @@ extern "C" {
#define EXTENDED_ARG 143
/* 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)