Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2018-10-07 18:21:09 +0300
committermano-wii <germano.costa@ig.com.br>2018-10-07 18:21:09 +0300
commit91bfea5b052a6276654eb4f71c71707cda3d4305 (patch)
tree0fbf7bbd80306a97a8bd8acf77aeb7fd31d78220 /source/blender/python/generic/py_capi_utils.h
parentee2e30683c1c4ebe14096d8e5f64a5a0099343e6 (diff)
CPython: py_capi_utils: use more descriptive names for format string utilities.
Diffstat (limited to 'source/blender/python/generic/py_capi_utils.h')
-rw-r--r--source/blender/python/generic/py_capi_utils.h10
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 609f8dc1bed..5ff070d3b75 100644
--- a/source/blender/python/generic/py_capi_utils.h
+++ b/source/blender/python/generic/py_capi_utils.h
@@ -132,7 +132,7 @@ 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 */
-Py_LOCAL_INLINE(char) PyC_Formatstr_get(const char *typestr)
+Py_LOCAL_INLINE(char) PyC_Formatchar_get(const char *typestr)
{
switch (typestr[0]) {
case '!':
@@ -146,7 +146,7 @@ Py_LOCAL_INLINE(char) PyC_Formatstr_get(const char *typestr)
}
}
-Py_LOCAL_INLINE(bool) PyC_Formatstr_is_float(char format)
+Py_LOCAL_INLINE(bool) PyC_Formatchar_is_floating_type(char format)
{
switch (format) {
case 'f':
@@ -158,7 +158,7 @@ Py_LOCAL_INLINE(bool) PyC_Formatstr_is_float(char format)
}
}
-Py_LOCAL_INLINE(bool) PyC_Formatstr_is_int(char format)
+Py_LOCAL_INLINE(bool) PyC_Formatchar_is_integer_type(char format)
{
switch (format) {
case 'i':
@@ -180,7 +180,7 @@ Py_LOCAL_INLINE(bool) PyC_Formatstr_is_int(char format)
}
}
-Py_LOCAL_INLINE(bool) PyC_Formatstr_is_byte(char format)
+Py_LOCAL_INLINE(bool) PyC_Formatchar_is_byte_type(char format)
{
switch (format) {
case 'c':
@@ -192,7 +192,7 @@ Py_LOCAL_INLINE(bool) PyC_Formatstr_is_byte(char format)
}
}
-Py_LOCAL_INLINE(bool) PyC_Formatstr_is_bool(char format)
+Py_LOCAL_INLINE(bool) PyC_Formatchar_is_boolean_type(char format)
{
switch (format) {
case '?':