Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-09-20 03:17:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-09-20 03:17:52 +0400
commitd6b21df2e61318c3465272c9055be4451060d94c (patch)
treedb3d53384b93483a447050bcb478b3593c3a32ab /source/blender/python/intern
parent1d936a107447ad70b5ee413b7b3be5e7947d9c62 (diff)
correct include guards and add checks in check_style_c.py for them.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy.h1
-rw-r--r--source/blender/python/intern/bpy_intern_string.h5
-rw-r--r--source/blender/python/intern/bpy_rna_anim.h5
-rw-r--r--source/blender/python/intern/bpy_rna_callback.h6
-rw-r--r--source/blender/python/intern/gpu.h9
5 files changed, 22 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy.h b/source/blender/python/intern/bpy.h
index fe877d161ff..b647d0d450c 100644
--- a/source/blender/python/intern/bpy.h
+++ b/source/blender/python/intern/bpy.h
@@ -24,6 +24,7 @@
*/
#ifndef __BPY_H__
+#define __BPY_H__
void BPy_init_modules(void);
extern PyObject *bpy_package_py;
diff --git a/source/blender/python/intern/bpy_intern_string.h b/source/blender/python/intern/bpy_intern_string.h
index 2e0d18d8b7f..41b7303bf8d 100644
--- a/source/blender/python/intern/bpy_intern_string.h
+++ b/source/blender/python/intern/bpy_intern_string.h
@@ -20,6 +20,9 @@
* ***** END GPL LICENSE BLOCK *****
*/
+#ifndef __BPY_INTERN_STRING_H__
+#define __BPY_INTERN_STRING_H__
+
/** \file blender/python/intern/bpy_intern_string.h
* \ingroup pythonintern
*/
@@ -36,3 +39,5 @@ extern PyObject *bpy_intern_str_attr;
extern PyObject *bpy_intern_str___slots__;
extern PyObject *bpy_intern_str___name__;
extern PyObject *bpy_intern_str___doc__;
+
+#endif /* __BPY_INTERN_STRING_H__ */
diff --git a/source/blender/python/intern/bpy_rna_anim.h b/source/blender/python/intern/bpy_rna_anim.h
index 005e8f3e1a4..8ef976b8cb4 100644
--- a/source/blender/python/intern/bpy_rna_anim.h
+++ b/source/blender/python/intern/bpy_rna_anim.h
@@ -20,6 +20,9 @@
* ***** END GPL LICENSE BLOCK *****
*/
+#ifndef __BPY_RNA_ANIM_H__
+#define __BPY_RNA_ANIM_H__
+
/** \file blender/python/intern/bpy_rna_anim.h
* \ingroup pythonintern
*/
@@ -33,3 +36,5 @@ PyObject *pyrna_struct_keyframe_insert(BPy_StructRNA *self, PyObject *args, PyOb
PyObject *pyrna_struct_keyframe_delete(BPy_StructRNA *self, PyObject *args, PyObject *kw);
PyObject *pyrna_struct_driver_add(BPy_StructRNA *self, PyObject *args);
PyObject *pyrna_struct_driver_remove(BPy_StructRNA *self, PyObject *args);
+
+#endif /* __BPY_RNA_ANIM_H__ */
diff --git a/source/blender/python/intern/bpy_rna_callback.h b/source/blender/python/intern/bpy_rna_callback.h
index 4b801f35654..6ef98790b4e 100644
--- a/source/blender/python/intern/bpy_rna_callback.h
+++ b/source/blender/python/intern/bpy_rna_callback.h
@@ -20,11 +20,13 @@
* ***** END GPL LICENSE BLOCK *****
*/
+#ifndef __BPY_RNA_CALLBACK_H__
+#define __BPY_RNA_CALLBACK_H__
+
/** \file blender/python/intern/bpy_rna_callback.h
* \ingroup pythonintern
*/
-
struct BPy_StructRNA;
struct PyObject;
@@ -35,3 +37,5 @@ PyObject *pyrna_callback_remove(BPy_StructRNA *self, PyObject *args);
PyObject *pyrna_callback_classmethod_add(PyObject *cls, PyObject *args);
PyObject *pyrna_callback_classmethod_remove(PyObject *cls, PyObject *args);
+
+#endif /* __BPY_RNA_CALLBACK_H__ */
diff --git a/source/blender/python/intern/gpu.h b/source/blender/python/intern/gpu.h
index f8c751f7f94..82338869b9d 100644
--- a/source/blender/python/intern/gpu.h
+++ b/source/blender/python/intern/gpu.h
@@ -27,10 +27,13 @@
/** \file blender/python/intern/gpu.h
* \ingroup pythonintern
- */
-
-/**
+ *
* Initializes the gpu Python module.
*/
+
+#ifndef __GPU_H__
+#define __GPU_H__
+
PyObject *GPU_initPython(void);
+#endif /* __GPU_H__ */