diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 12:59:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 13:01:10 +0300 |
commit | 778542fd8fe80f87286d36bb4005314a8343e038 (patch) | |
tree | 272d34c618e9cc07b0bac3fc87b6801e3908daa4 /source/blender/python/generic | |
parent | c7f67d60fbe24df942bcde49aadf480ac6622e71 (diff) |
Cleanup: comments (long lines) in python
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r-- | source/blender/python/generic/idprop_py_api.c | 3 | ||||
-rw-r--r-- | source/blender/python/generic/py_capi_utils.c | 12 | ||||
-rw-r--r-- | source/blender/python/generic/python_utildefines.h | 3 |
3 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index 056e3a33b6e..dd5baaa661c 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -164,7 +164,8 @@ PyObject *BPy_IDGroup_WrapData(ID *id, IDProperty *prop, IDProperty *parent) } } -#if 0 /* UNUSED, currently assignment overwrites into new properties, rather than setting in-place */ +/* UNUSED, currently assignment overwrites into new properties, rather than setting in-place. */ +#if 0 static int BPy_IDGroup_SetData(BPy_IDProperty *self, IDProperty *prop, PyObject *value) { switch (prop->type) { diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c index 191863a862d..25549c95896 100644 --- a/source/blender/python/generic/py_capi_utils.c +++ b/source/blender/python/generic/py_capi_utils.c @@ -37,7 +37,8 @@ #include "BLI_string.h" #ifndef MATH_STANDALONE -/* only for BLI_strncpy_wchar_from_utf8, should replace with py funcs but too late in release now */ +/* Only for BLI_strncpy_wchar_from_utf8, + * should replace with py funcs but too late in release now. */ # include "BLI_string_utf8.h" #endif @@ -273,7 +274,8 @@ void PyC_ObSpitStr(char *result, size_t result_len, PyObject *var) const PyTypeObject *type = Py_TYPE(var); PyObject *var_str = PyObject_Repr(var); if (var_str == NULL) { - /* We could print error here, but this may be used for generating errors - so don't for now. */ + /* We could print error here, + * but this may be used for generating errors - so don't for now. */ PyErr_Clear(); } BLI_snprintf(result, @@ -765,7 +767,8 @@ void PyC_MainModule_Restore(PyObject *main_mod) Py_XDECREF(main_mod); } -/* must be called before Py_Initialize, expects output of BKE_appdir_folder_id(BLENDER_PYTHON, NULL) */ +/* Must be called before Py_Initialize, + * expects output of BKE_appdir_folder_id(BLENDER_PYTHON, NULL). */ void PyC_SetHomePath(const char *py_path_bundle) { if (py_path_bundle == NULL) { @@ -803,7 +806,8 @@ void PyC_SetHomePath(const char *py_path_bundle) { static wchar_t py_path_bundle_wchar[1024]; - /* cant use this, on linux gives bug: #23018, TODO: try LANG="en_US.UTF-8" /usr/bin/blender, suggested 22008 */ + /* Can't use this, on linux gives bug: #23018, + * TODO: try LANG="en_US.UTF-8" /usr/bin/blender, suggested 2008 */ /* mbstowcs(py_path_bundle_wchar, py_path_bundle, FILE_MAXDIR); */ BLI_strncpy_wchar_from_utf8( diff --git a/source/blender/python/generic/python_utildefines.h b/source/blender/python/generic/python_utildefines.h index 40cec436dea..653122c9c33 100644 --- a/source/blender/python/generic/python_utildefines.h +++ b/source/blender/python/generic/python_utildefines.h @@ -45,7 +45,8 @@ Py_LOCAL_INLINE(PyObject *) Py_INCREF_RET(PyObject *op) return op; } -/* append & transfer ownership to the list, avoids inline Py_DECREF all over (which is quite a large macro) */ +/* Append & transfer ownership to the list, + * avoids inline Py_DECREF all over (which is quite a large macro). */ Py_LOCAL_INLINE(int) PyList_APPEND(PyObject *op, PyObject *v) { int ret = PyList_Append(op, v); |