diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-08 00:37:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-08 00:37:32 +0300 |
commit | d022794cad977229386934e7d25365270671874f (patch) | |
tree | ec43bc243fc0259d827e65a82fa12f93e3f3e8ac /source/blender/python/generic/py_capi_utils.h | |
parent | 1fd1735df0bf2aa39b863a372a2e0f0ad91d1545 (diff) |
Cleanup: rename checks for Python struct strings
Using 'format' prefix made this read as if t was for string formatting.
Use 'PyC_StructFmt' prefix instead since these values are compatible
with formatting from Python's 'struct' module.
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.h')
-rw-r--r-- | source/blender/python/generic/py_capi_utils.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/generic/py_capi_utils.h b/source/blender/python/generic/py_capi_utils.h index 7631dc3f3a6..778bd38bada 100644 --- a/source/blender/python/generic/py_capi_utils.h +++ b/source/blender/python/generic/py_capi_utils.h @@ -132,10 +132,10 @@ Py_LOCAL_INLINE(int64_t) PyC_Long_AsI64(PyObject *value) { return (int64_t)PyLo Py_LOCAL_INLINE(uint64_t) PyC_Long_AsU64(PyObject *value) { return (uint64_t)PyLong_AsUnsignedLongLong(value); } /* utils for format string in `struct` module style syntax */ -char PyC_Formatchar_get(const char *typestr); -bool PyC_Formatchar_is_floating_type(char format); -bool PyC_Formatchar_is_integer_type(char format); -bool PyC_Formatchar_is_byte_type(char format); -bool PyC_Formatchar_is_boolean_type(char format); +char PyC_StructFmt_type_from_str(const char *typestr); +bool PyC_StructFmt_type_is_float_any(char format); +bool PyC_StructFmt_type_is_int_any(char format); +bool PyC_StructFmt_type_is_byte(char format); +bool PyC_StructFmt_type_is_bool(char format); #endif /* __PY_CAPI_UTILS_H__ */ |