This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix python-interactive with Python 3.6


On 01/20/2017 04:48 PM, Simon Marchi wrote:

> Yeah, I thought about that and concluded it would be a problem for my
> grandchildren ;).
> 

;-)

> ... and this is cleaner anyway.  But why not just
> 
> #if python < 3.4
> #define PyMem_RawMalloc PyMem_Malloc
> #endif
> 
> ?

Because I was just copy/pasting from python-internal.h
and didn't really think.  :-)  The other instances in
python-internal.h do it like that because they need to
redefine a symbol, not just define something missing.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]