Cleanup: match argument names for function & declarations

Match function and declaration names, picking names based on
consistency with related code & clarity.

Also changes for old conventions, missed in previous cleanups:

- name -> filepath
- tname -> newname
- maxlen -> maxncpy
This commit is contained in:
Campbell Barton
2024-07-27 13:20:43 +10:00
parent edb73325c1
commit 111a40239a
88 changed files with 202 additions and 190 deletions

View File

@@ -85,7 +85,7 @@ int BaseMathObject_is_gc(BaseMathObject *self);
PyMODINIT_FUNC PyInit_mathutils(void);
int EXPP_FloatsAreEqual(float A, float B, int maxDiff);
int EXPP_FloatsAreEqual(float af, float bf, int maxDiff);
int EXPP_VectorsAreEqual(const float *vecA, const float *vecB, int size, int floatSteps);
typedef struct Mathutils_Callback Mathutils_Callback;
@@ -201,7 +201,7 @@ int mathutils_any_to_rotmat(float rmat[3][3], PyObject *value, const char *error
*
* \note consistent with the equivalent tuple of floats (CPython's 'tuplehash')
*/
Py_hash_t mathutils_array_hash(const float *float_array, size_t array_len);
Py_hash_t mathutils_array_hash(const float *array, size_t array_len);
/* zero remaining unused elements of the array */
#define MU_ARRAY_ZERO (1u << 30)