diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-18 01:58:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-18 01:58:26 +0300 |
commit | d0dad0260434c4420fa9756264c1cc5e745e5ec9 (patch) | |
tree | ce76b29e5ab4832e19e4fb1a4b84cd0a493cf6d2 /source/blender/python/gawain/gwn_py_types.h | |
parent | cb67873ac5215e8331ceadf98d80e740eaed28be (diff) |
Cleanup: use lowercase prefix for local API's
Also some minor corrections.
Diffstat (limited to 'source/blender/python/gawain/gwn_py_types.h')
-rw-r--r-- | source/blender/python/gawain/gwn_py_types.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source/blender/python/gawain/gwn_py_types.h b/source/blender/python/gawain/gwn_py_types.h index 9024ace3dde..dde6cf98827 100644 --- a/source/blender/python/gawain/gwn_py_types.h +++ b/source/blender/python/gawain/gwn_py_types.h @@ -29,26 +29,26 @@ #define USE_GWN_PY_REFERENCES -extern PyTypeObject BPy_Gwn_VertFormat_Type; -extern PyTypeObject BPy_Gwn_VertBuf_Type; -extern PyTypeObject BPy_Gwn_Batch_Type; +extern PyTypeObject BPyGwn_VertFormat_Type; +extern PyTypeObject BPyGwn_VertBuf_Type; +extern PyTypeObject BPyGwn_Batch_Type; -#define BPy_Gwn_VertFormat_Check(v) (Py_TYPE(v) == &BPy_Gwn_VertFormat_Type) -#define BPy_Gwn_VertBuf_Check(v) (Py_TYPE(v) == &BPy_Gwn_VertBuf_Type) -#define BPy_Gwn_Batch_Check(v) (Py_TYPE(v) == &BPy_Gwn_Batch_Type) +#define BPyGwn_VertFormat_Check(v) (Py_TYPE(v) == &BPyGwn_VertFormat_Type) +#define BPyGwn_VertBuf_Check(v) (Py_TYPE(v) == &BPyGwn_VertBuf_Type) +#define BPyGwn_Batch_Check(v) (Py_TYPE(v) == &BPyGwn_Batch_Type) -typedef struct BPy_Gwn_VertFormat { +typedef struct BPyGwn_VertFormat { PyObject_VAR_HEAD struct Gwn_VertFormat fmt; -} BPy_Gwn_VertFormat; +} BPyGwn_VertFormat; -typedef struct BPy_Gwn_VertBuf { +typedef struct BPyGwn_VertBuf { PyObject_VAR_HEAD /* The buf is owned, we may support thin wrapped batches later. */ struct Gwn_VertBuf *buf; -} BPy_Gwn_VertBuf; +} BPyGwn_VertBuf; -typedef struct BPy_Gwn_Batch { +typedef struct BPyGwn_Batch { PyObject_VAR_HEAD /* The batch is owned, we may support thin wrapped batches later. */ struct Gwn_Batch *batch; @@ -56,12 +56,12 @@ typedef struct BPy_Gwn_Batch { /* Just to keep a user to prevent freeing buf's we're using */ PyObject *references; #endif -} BPy_Gwn_Batch; +} BPyGwn_Batch; PyObject *BPyInit_gawain_types(void); -PyObject *BPy_Gwn_VertFormat_CreatePyObject(struct Gwn_VertFormat *fmt); -PyObject *BPy_Gwn_VertBuf_CreatePyObject(struct Gwn_VertBuf *vbo) ATTR_NONNULL(1); -PyObject *BPy_Gwn_Batch_CreatePyObject(struct Gwn_Batch *batch) ATTR_NONNULL(1); +PyObject *BPyGwn_VertFormat_CreatePyObject(struct Gwn_VertFormat *fmt); +PyObject *BPyGwn_VertBuf_CreatePyObject(struct Gwn_VertBuf *vbo) ATTR_NONNULL(1); +PyObject *BPyGwn_Batch_CreatePyObject(struct Gwn_Batch *batch) ATTR_NONNULL(1); #endif /* __GWN_PY_TYPES_H__ */ |