Cleanup: full sentences in comments, improve comment formatting

This commit is contained in:
Campbell Barton
2021-06-26 21:35:18 +10:00
parent fae5a907d4
commit f1e4903854
366 changed files with 1125 additions and 1097 deletions

View File

@@ -86,7 +86,7 @@ int bpy_pydriver_create_dict(void)
bpy_pydriver_Dict = d;
/* import some modules: builtins, bpy, math, (Blender.noise)*/
/* Import some modules: builtins, bpy, math, `Blender.noise`. */
PyDict_SetItemString(d, "__builtins__", PyEval_GetBuiltins());
mod = PyImport_ImportModule("math");

View File

@@ -6459,11 +6459,11 @@ PyTypeObject pyrna_struct_meta_idprop_Type = {
NULL, /* PyMappingMethods *tp_as_mapping; */
/* More standard operations (here for binary compatibility) */
NULL, /* hashfunc tp_hash; */
NULL, /* ternaryfunc tp_call; */
NULL, /* reprfunc tp_str; */
NULL /*(getattrofunc) pyrna_struct_meta_idprop_getattro*/, /* getattrofunc tp_getattro; */
(setattrofunc)pyrna_struct_meta_idprop_setattro, /* setattrofunc tp_setattro; */
NULL, /* hashfunc tp_hash; */
NULL, /* ternaryfunc tp_call; */
NULL, /* reprfunc tp_str; */
NULL /* (getattrofunc) pyrna_struct_meta_idprop_getattro */, /* getattrofunc tp_getattro; */
(setattrofunc)pyrna_struct_meta_idprop_setattro, /* setattrofunc tp_setattro; */
/* Functions to access object as input/output buffer */
NULL, /* PyBufferProcs *tp_as_buffer; */
@@ -8258,9 +8258,9 @@ static int bpy_class_validate_recursive(PointerRNA *dummyptr,
if (func_arg_count >= 0) { /* -1 if we don't care. */
arg_count = ((PyCodeObject *)PyFunction_GET_CODE(item))->co_argcount;
/* note, the number of args we check for and the number of args we give to
/* NOTE: the number of args we check for and the number of args we give to
* '@staticmethods' are different (quirk of Python),
* this is why rna_function_arg_count() doesn't return the value -1*/
* this is why rna_function_arg_count() doesn't return the value -1. */
if (is_staticmethod) {
func_arg_count++;
func_arg_min_count++;

View File

@@ -183,7 +183,7 @@ StructRNA *pyrna_struct_as_srna(PyObject *self, const bool parent, const char *e
void BPY_rna_init(void);
PyObject *BPY_rna_module(void);
void BPY_update_rna_module(void);
/*PyObject *BPY_rna_doc(void);*/
// PyObject *BPY_rna_doc(void);
PyObject *BPY_rna_types(void);
PyObject *pyrna_struct_CreatePyObject(PointerRNA *ptr);

View File

@@ -536,11 +536,11 @@ static int py_to_array(PyObject *seq,
RNA_SetArrayFunc rna_set_array,
const char *error_prefix)
{
/*int totdim, dim_size[MAX_ARRAY_DIMENSION];*/
// int totdim, dim_size[MAX_ARRAY_DIMENSION];
int totitem;
char *data = NULL;
/*totdim = RNA_property_array_dimension(ptr, prop, dim_size);*/ /*UNUSED*/
// totdim = RNA_property_array_dimension(ptr, prop, dim_size); /* UNUSED */
if (validate_array(seq, ptr, prop, 0, check_item_type, item_type_str, &totitem, error_prefix) ==
-1) {