[Patches] [Patch #103457] Fixed shadowing problem with cmpfunc in Mac OS X

noreply@sourceforge.net noreply@sourceforge.net
Mon, 29 Jan 2001 16:02:54 -0800


Patch #103457 has been updated. 

Project: python
Category: core (C code)
Status: Closed
Submitted by: bquinlan
Assigned to : gvanrossum
Summary: Fixed shadowing problem with cmpfunc in Mac OS X

Follow-Ups:

Date: 2001-Jan-29 16:02
By: nobody

Comment:
OK, thanks. I would have thought giving a variable the same name as a
typedef with global scope would have masked the typedef, not resulted in a
syntax error (with a cryptic error message). I guess old versions of C
didn't allow this? That is why I assumed that it was a preprocessor
directive...
-------------------------------------------------------

Date: 2001-Jan-29 15:51
By: gvanrossum

Comment:
It's simple: cmpfunc is already a typedef, so that local was unfortunately
named.  I've fixed it.  (Note; it's classobject.c, not complexobject.c! 
And please use diff -c, not ndiff to submit diffs next time.)

-------------------------------------------------------

Date: 2001-Jan-27 13:10
By: bquinlan

Comment:
See bug #129827 
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=103457&group_id=5470