Cleanup: Python GPU: change prefix 'bpygpu_' to 'py_' in static functions
This commit is contained in:
@@ -40,14 +40,14 @@
|
||||
/** \name Methods
|
||||
* \{ */
|
||||
|
||||
PyDoc_STRVAR(bpygpu_select_load_id_doc,
|
||||
PyDoc_STRVAR(py_select_load_id_doc,
|
||||
".. function:: load_id(id)\n"
|
||||
"\n"
|
||||
" Set the selection ID.\n"
|
||||
"\n"
|
||||
" :param id: Number (32-bit uint).\n"
|
||||
" :type select: int\n");
|
||||
static PyObject *bpygpu_select_load_id(PyObject *UNUSED(self), PyObject *value)
|
||||
static PyObject *py_select_load_id(PyObject *UNUSED(self), PyObject *value)
|
||||
{
|
||||
uint id;
|
||||
if ((id = PyC_Long_AsU32(value)) == (uint)-1) {
|
||||
@@ -62,18 +62,18 @@ static PyObject *bpygpu_select_load_id(PyObject *UNUSED(self), PyObject *value)
|
||||
/** \name Module
|
||||
* \{ */
|
||||
|
||||
static struct PyMethodDef bpygpu_select_methods[] = {
|
||||
static struct PyMethodDef py_select_methods[] = {
|
||||
/* Manage Stack */
|
||||
{"load_id", (PyCFunction)bpygpu_select_load_id, METH_O, bpygpu_select_load_id_doc},
|
||||
{"load_id", (PyCFunction)py_select_load_id, METH_O, py_select_load_id_doc},
|
||||
{NULL, NULL, 0, NULL},
|
||||
};
|
||||
|
||||
PyDoc_STRVAR(bpygpu_select_doc, "This module provides access to selection.");
|
||||
PyDoc_STRVAR(py_select_doc, "This module provides access to selection.");
|
||||
static PyModuleDef BPyGPU_select_module_def = {
|
||||
PyModuleDef_HEAD_INIT,
|
||||
.m_name = "gpu.select",
|
||||
.m_doc = bpygpu_select_doc,
|
||||
.m_methods = bpygpu_select_methods,
|
||||
.m_doc = py_select_doc,
|
||||
.m_methods = py_select_methods,
|
||||
};
|
||||
|
||||
PyObject *BPyInit_gpu_select(void)
|
||||
|
||||
Reference in New Issue
Block a user