summaryrefslogtreecommitdiff
path: root/Include/boolobject.h
AgeCommit message (Collapse)AuthorLines
2007-12-19#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.Christian Heimes-1/+1
2007-07-21Merged revisions 56467-56482 via svnmerge fromMartin v. Löwis-1/+1
svn+ssh://pythondev@svn.python.org/python/branches/p3yk ................ r56477 | martin.v.loewis | 2007-07-21 09:04:38 +0200 (Sa, 21 Jul 2007) | 11 lines Merged revisions 56466-56476 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r56476 | martin.v.loewis | 2007-07-21 08:55:02 +0200 (Sa, 21 Jul 2007) | 4 lines PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. ........ ................ r56478 | martin.v.loewis | 2007-07-21 09:47:23 +0200 (Sa, 21 Jul 2007) | 2 lines PEP 3123: Use proper C inheritance for PyObject. ................ r56479 | martin.v.loewis | 2007-07-21 10:06:55 +0200 (Sa, 21 Jul 2007) | 3 lines Add longintrepr.h to Python.h, so that the compiler can see that PyFalse is really some kind of PyObject*. ................ r56480 | martin.v.loewis | 2007-07-21 10:47:18 +0200 (Sa, 21 Jul 2007) | 2 lines Qualify SHIFT, MASK, BASE. ................ r56482 | martin.v.loewis | 2007-07-21 19:10:57 +0200 (Sa, 21 Jul 2007) | 2 lines Correctly refer to _ob_next. ................
2007-01-14Merged the int/long unification branch, by very crude means (sorry Thomas!).Guido van Rossum-4/+2
I banged on the code (beyond what's in that branch) to make fewer tests fail; the only tests that fail now are: test_descr -- can't pickle ints?! test_pickletools -- ??? test_socket -- See python.org/sf/1619659 test_sqlite -- ??? I'll deal with those later.
2004-07-22SF bug 994255: Py_RETURN_NONE causes too much warningsTim Peters-2/+2
Rewrote Py_RETURN_{NONE, TRUE, FALSE} to expand to comma expressions rather than "do {} while(0)" thingies. The OP complained because he likes using MS /W4 sometimes, and then all his uses of these things generate nuisance warnings about testing a constant expression (in the "while(0)" part). Comma expressions don't have this problem (although it's a lucky accident that comma expressions suffice for these macros!).
2003-10-19Modify the Py_RETURN_* macros to be of the form ``do {...} while (0)`` in orderBrett Cannon-2/+2
to handle situations like ``if (foo) Py_RETURN_NONE else ...``.
2003-10-19Modified the Py_RETURN_* macros by having the statements surrounded by {} inBrett Cannon-2/+2
order to prevent any unexpected surprises from someone using them in a conditional without using curly braces (e.g., ``if (foo) Py_RETURN_TRUE``.
2003-10-19Defined macros Py_RETURN_(TRUE|FALSE|NONE) as helper functions for returningBrett Cannon-0/+4
the specified value. All three Py_INCREF the singleton and then return it.
2002-08-12Excise DL_EXPORT from Include.Mark Hammond-3/+3
Thanks to Skip Montanaro and Kalle Svensson for the patches.
2002-05-02Patch #551008: DL_IMPORT PyBool_FromLong.Martin v. Löwis-1/+1
2002-04-06Add standard header preamble and footer, a-la intobject.h. Main purpose is ↵Mark Hammond-0/+12
extern "C" for C++ programs.
2002-04-03Oops. Here are the new files. My apologies.Guido van Rossum-0/+20