[Python-checkins] CVS: python/dist/src/Include opcode.h,2.31,2.32

Guido van Rossum gvanrossum@users.sourceforge.net
Wed, 17 Jan 2001 07:21:11 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv11636

Modified Files:
	opcode.h 
Log Message:
Rich comparisons: ensure that LT == Py_LT, etc.


Index: opcode.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/opcode.h,v
retrieving revision 2.31
retrieving revision 2.32
diff -C2 -r2.31 -r2.32
*** opcode.h	2000/09/01 23:29:26	2.31
--- opcode.h	2001/01/17 15:21:09	2.32
***************
*** 136,140 ****
  
  /* 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};
  
  #define HAS_ARG(op) ((op) >= HAVE_ARGUMENT)
--- 136,141 ----
  
  /* Comparison operator codes (argument to COMPARE_OP) */
! 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)