Cleanup: use named unsigned types in the Python API

This commit is contained in:
2020-02-20 15:38:58 +11:00
parent 1e3ffd1f87
commit 2a6df7dfe5
28 changed files with 152 additions and 162 deletions

View File

@@ -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. */