[Python-checkins] python/dist/src/Include opcode.h,2.40,2.41

mwh@users.sourceforge.net mwh@users.sourceforge.net
Fri, 30 Aug 2002 06:10:21 -0700


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

Modified Files:
	opcode.h 
Log Message:
Further SET_LINENO reomval fixes.  See comments in patch #587933.

Use a slightly different strategy to determine when not to call the line 
trace function.  This removes the need for the RETURN_NONE opcode, so
that's gone again.  Update docs and comments to match.

Thanks to Neal and Armin!

Also add a test suite.  This should have come with the original patch...


Index: opcode.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/opcode.h,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -d -r2.40 -r2.41
*** opcode.h	15 Aug 2002 14:59:00 -0000	2.40
--- opcode.h	30 Aug 2002 13:09:49 -0000	2.41
***************
*** 72,78 ****
  #define BREAK_LOOP	80
  
- #define RETURN_NONE	81 /* *only* for function epilogues 
- 			      -- see comments in 
- 			      ceval.c:maybe_call_line_trace for why */
  #define LOAD_LOCALS	82
  #define RETURN_VALUE	83
--- 72,75 ----