diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2002-04-06 03:58:41 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2002-04-06 03:58:41 (GMT) |
commit | 303d05d317177fcfeb3bc71d03a196010b191950 (patch) | |
tree | 839c03c74eb14602af83870102a2ad7ca93ed32f | |
parent | 49f26817eb31d39339fbbf73c707b0e685ae649a (diff) | |
download | cpython-303d05d317177fcfeb3bc71d03a196010b191950.zip cpython-303d05d317177fcfeb3bc71d03a196010b191950.tar.gz cpython-303d05d317177fcfeb3bc71d03a196010b191950.tar.bz2 |
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
-rw-r--r-- | Include/boolobject.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h index 5bbe969..4e5b99f 100644 --- a/Include/boolobject.h +++ b/Include/boolobject.h @@ -1,5 +1,12 @@ /* Boolean object interface */ +#ifndef Py_BOOLOBJECT_H +#define Py_BOOLOBJECT_H +#ifdef __cplusplus +extern "C" { +#endif + + typedef PyIntObject PyBoolObject; extern DL_IMPORT(PyTypeObject) PyBool_Type; @@ -18,3 +25,8 @@ extern DL_IMPORT(PyIntObject) _Py_ZeroStruct, _Py_TrueStruct; /* Function to return a bool from a C long */ PyObject *PyBool_FromLong(long); + +#ifdef __cplusplus +} +#endif +#endif /* !Py_BOOLOBJECT_H */ |