mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern "C" for C++ programs.
This commit is contained in:
parent
49f26817eb
commit
303d05d317
1 changed files with 12 additions and 0 deletions
|
@ -1,5 +1,12 @@
|
||||||
/* Boolean object interface */
|
/* Boolean object interface */
|
||||||
|
|
||||||
|
#ifndef Py_BOOLOBJECT_H
|
||||||
|
#define Py_BOOLOBJECT_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef PyIntObject PyBoolObject;
|
typedef PyIntObject PyBoolObject;
|
||||||
|
|
||||||
extern DL_IMPORT(PyTypeObject) PyBool_Type;
|
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 */
|
/* Function to return a bool from a C long */
|
||||||
PyObject *PyBool_FromLong(long);
|
PyObject *PyBool_FromLong(long);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#endif /* !Py_BOOLOBJECT_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue