[Python-Dev] multiple recursion limit bugs

Jack Jansen Jack.Jansen@oratrix.com
Tue, 12 Mar 2002 16:17:08 +0100


Yes, USE_STACKCHECK is defined elsewhere for MacPython.

On Monday, March 11, 2002, at 06:25 , Skip Montanaro wrote:
> I looked in _sre.c and saw that it does call PyOS_CheckStack, but it's
> guarded by the USE_STACKCHECK macro:
>
>     #if defined(USE_STACKCHECK)
>         if (level % 10 == 0 && PyOS_CheckStack())
>             return SRE_ERROR_RECURSION_LIMIT;
>     #endif
>
> That's defined in Include/pythonrun.h for a few platforms:
>
>     #if defined(WIN32) && !defined(MS_WIN64) && defined(_MSC_VER)
>     /* Enable stack checking under Microsoft C */
>     #define USE_STACKCHECK
>     #endif
>
> Should it also be defined for MacOS versions predating MacOS X (or is 
> this
> defined elsewhere for the Mac platform)?
>
> Skip
>
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma 
Goldman -