]> granicus.if.org Git - python/commitdiff
Add standard header preamble and footer, a-la intobject.h. Main purpose is extern...
authorMark Hammond <mhammond@skippinet.com.au>
Sat, 6 Apr 2002 03:58:41 +0000 (03:58 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Sat, 6 Apr 2002 03:58:41 +0000 (03:58 +0000)
Include/boolobject.h

index 5bbe9695b1c3455476bd77a62de3978710d9051f..4e5b99f34d3a311deb409a758de284c9f1523cac 100644 (file)
@@ -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 */