Cleanup: trailing commas

Needed for clan-format not to wrap onto one line.
This commit is contained in:
2019-02-03 14:01:45 +11:00
parent 141c6073ca
commit 744f633986
488 changed files with 1658 additions and 1616 deletions

View File

@@ -280,7 +280,7 @@ static struct PyMethodDef bpygpu_Batch_methods[] = {
METH_NOARGS, ""},
{"_program_use_end", (PyCFunction)bpygpu_Batch_program_use_end,
METH_NOARGS, ""},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
#ifdef USE_GPU_PY_REFERENCES

View File

@@ -173,7 +173,7 @@ static PyObject *bpygpu_matrix_stack_context_exit(BPyGPU_MatrixStackContext *sel
static PyMethodDef bpygpu_matrix_stack_context_methods[] = {
{"__enter__", (PyCFunction)bpygpu_matrix_stack_context_enter, METH_NOARGS},
{"__exit__", (PyCFunction)bpygpu_matrix_stack_context_exit, METH_VARARGS},
{NULL}
{NULL},
};
static PyTypeObject BPyGPU_matrix_stack_context_Type = {
@@ -542,7 +542,7 @@ static struct PyMethodDef bpygpu_matrix_methods[] = {
{"get_normal_matrix", (PyCFunction)bpygpu_matrix_get_normal_matrix,
METH_NOARGS, bpygpu_matrix_get_normal_matrix_doc},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
PyDoc_STRVAR(bpygpu_matrix_doc,

View File

@@ -318,7 +318,7 @@ static struct PyMethodDef bpygpu_offscreen_methods[] = {
{"free", (PyCFunction)bpygpu_offscreen_free, METH_NOARGS, bpygpu_offscreen_free_doc},
{"__enter__", (PyCFunction)bpygpu_offscreen_bind_context_enter, METH_NOARGS},
{"__exit__", (PyCFunction)bpygpu_offscreen_bind_context_exit, METH_VARARGS},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
PyDoc_STRVAR(bpygpu_offscreen_doc,

View File

@@ -66,7 +66,7 @@ static PyObject *bpygpu_select_load_id(PyObject *UNUSED(self), PyObject *value)
static struct PyMethodDef bpygpu_select_methods[] = {
/* Manage Stack */
{"load_id", (PyCFunction)bpygpu_select_load_id, METH_O, bpygpu_select_load_id_doc},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
PyDoc_STRVAR(bpygpu_select_doc,

View File

@@ -606,7 +606,7 @@ static struct PyMethodDef bpygpu_shader_methods[] = {
{"format_calc",
(PyCFunction)bpygpu_shader_calc_format,
METH_NOARGS, bpygpu_shader_calc_format_doc},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
PyDoc_STRVAR(bpygpu_shader_program_doc,
@@ -789,7 +789,7 @@ static struct PyMethodDef bpygpu_shader_module_methods[] = {
{"code_from_builtin",
(PyCFunction)bpygpu_shader_code_from_builtin,
METH_O, bpygpu_shader_code_from_builtin_doc},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
PyDoc_STRVAR(bpygpu_shader_module_doc,

View File

@@ -295,7 +295,7 @@ static PyObject *bpygpu_VertBuf_attr_fill(BPyGPUVertBuf *self, PyObject *args, P
static struct PyMethodDef bpygpu_VertBuf_methods[] = {
{"attr_fill", (PyCFunction) bpygpu_VertBuf_attr_fill,
METH_VARARGS | METH_KEYWORDS, bpygpu_VertBuf_attr_fill_doc},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};
static void bpygpu_VertBuf_dealloc(BPyGPUVertBuf *self)

View File

@@ -206,7 +206,7 @@ static PyObject *bpygpu_VertFormat_attr_add(BPyGPUVertFormat *self, PyObject *ar
static struct PyMethodDef bpygpu_VertFormat_methods[] = {
{"attr_add", (PyCFunction)bpygpu_VertFormat_attr_add,
METH_VARARGS | METH_KEYWORDS, bpygpu_VertFormat_attr_add_doc},
{NULL, NULL, 0, NULL}
{NULL, NULL, 0, NULL},
};