diff options
author | Guido van Rossum <guido@python.org> | 2001-01-17 15:21:09 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-01-17 15:21:09 +0000 |
commit | fbe4b9e7a191711ef4157f9884aa2cc874f45325 (patch) | |
tree | ed0bf94a13dd13dea3d1e424fcd0119fc65c174f /Include/opcode.h | |
parent | 68c02a87c45da3771c1edf12a254a733b9efd42a (diff) | |
download | cpython-fbe4b9e7a191711ef4157f9884aa2cc874f45325.tar.gz |
Rich comparisons: ensure that LT == Py_LT, etc.
Diffstat (limited to 'Include/opcode.h')
-rw-r--r-- | Include/opcode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 349756cf1d..09775856b0 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) |