]> granicus.if.org Git - python/commit
Close SF bug 110826: a complaint about the way Python #define'd NULL.
authorTim Peters <tim.peters@gmail.com>
Sun, 10 Sep 2000 01:02:41 +0000 (01:02 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 10 Sep 2000 01:02:41 +0000 (01:02 +0000)
commit4826a894c5afa6f8b61d2b94c5a8b07588cb692a
tree835d6e66d31c11f06dcb92362c4ce72cea344fe0
parentecaf0d8b471113bbbf14b7eedb470b2f1d1d1b1f
Close SF bug 110826:  a complaint about the way Python #define'd NULL.
It's hard to sort out what the bug was, exactly.  So, Big Hammer:

1. Python shouldn't be in the business of #define'ing NULL, period.
2. Users of the Python C API shouldn't be in the business of not including
   Python.h, period.

Hence:

1. Removed all #define's of NULL in Python source code (pyport.h and
   object.h).
2. Since we're *relying* on stdio.h defining NULL, put an #error in
   Python.h after its #include of stdio.h if NULL isn't defined then.
Include/Python.h
Include/object.h
Include/pyport.h