Cleanup: use named unsigned types in the Python API
This commit is contained in:
@@ -49,8 +49,8 @@ extern PyTypeObject matrix_access_Type;
|
||||
|
||||
typedef struct {
|
||||
BASE_MATH_MEMBERS(matrix);
|
||||
unsigned short num_col;
|
||||
unsigned short num_row;
|
||||
ushort num_col;
|
||||
ushort num_row;
|
||||
} MatrixObject;
|
||||
|
||||
/* struct data contains a pointer to the actual data that the
|
||||
@@ -60,12 +60,12 @@ typedef struct {
|
||||
|
||||
/* prototypes */
|
||||
PyObject *Matrix_CreatePyObject(const float *mat,
|
||||
const unsigned short num_col,
|
||||
const unsigned short num_row,
|
||||
const ushort num_col,
|
||||
const ushort num_row,
|
||||
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT;
|
||||
PyObject *Matrix_CreatePyObject_wrap(float *mat,
|
||||
const unsigned short num_col,
|
||||
const unsigned short num_row,
|
||||
const ushort num_col,
|
||||
const ushort num_row,
|
||||
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT
|
||||
ATTR_NONNULL(1);
|
||||
PyObject *Matrix_CreatePyObject_cb(PyObject *user,
|
||||
@@ -75,8 +75,8 @@ PyObject *Matrix_CreatePyObject_cb(PyObject *user,
|
||||
unsigned char cb_subtype) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
PyObject *Matrix_CreatePyObject_alloc(float *mat,
|
||||
const unsigned short num_col,
|
||||
const unsigned short num_row,
|
||||
const ushort num_col,
|
||||
const ushort num_row,
|
||||
PyTypeObject *base_type) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
/* PyArg_ParseTuple's "O&" formatting helpers. */
|
||||
|
||||
Reference in New Issue
Block a user