Blender Git Loki
Git Commits -> Revision ccdacf1
Revision ccdacf1 by Campbell Barton (master) February 15, 2018, 12:39 (GMT) |
Cleanup: use '_len' instead of '_size' w/ BLI API - When returning the number of items in a collection use BLI_*_len() - Keep _size() for size in bytes. - Keep _count() for data structures that don't store length (hint this isn't a simple getter). See P611 to apply instead of manually resolving conflicts. |
Commit Details:
Full Hash: ccdacf1c9b31b15e188aa9e9adb044ffd0ca0da4
Parent Commit: 4da6c49
Lines Changed: +192, -192
75 Modified Paths:
/source/blender/blenkernel/intern/bvhutils.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/colorband.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve_decimate.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/library.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh_validate.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/object_deform.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/outliner_treehash.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/pbvh_bmesh.c (+15, -15) (Diff)
/source/blender/blenlib/BLI_edgehash.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_ghash.h (+4, -4) (Diff)
/source/blender/blenlib/BLI_gsqueue.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_heap.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_kdopbvh.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_linklist_stack.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_mempool.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_smallhash.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_threads.h (+1, -1) (Diff)
/source/blender/blenlib/intern/array_store.c (+3, -3) (Diff)
/source/blender/blenlib/intern/astar.c (+1, -1) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+8, -8) (Diff)
/source/blender/blenlib/intern/BLI_heap.c (+3, -3) (Diff)
/source/blender/blenlib/intern/BLI_kdopbvh.c (+1, -1) (Diff)
/source/blender/blenlib/intern/BLI_mempool.c (+1, -1) (Diff)
/source/blender/blenlib/intern/edgehash.c (+5, -5) (Diff)
/source/blender/blenlib/intern/gsqueue.c (+2, -2) (Diff)
/source/blender/blenlib/intern/polyfill2d_beautify.c (+1, -1) (Diff)
/source/blender/blenlib/intern/smallhash.c (+1, -1) (Diff)
/source/blender/blenlib/intern/task.c (+1, -1) (Diff)
/source/blender/blenlib/intern/threads.c (+2, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+1, -1) (Diff)
/source/blender/blentranslation/msgfmt/msgfmt.c (+1, -1) (Diff)
/source/blender/bmesh/intern/bmesh_iterators.c (+2, -2) (Diff)
/source/blender/bmesh/intern/bmesh_log.c (+2, -2) (Diff)
/source/blender/bmesh/intern/bmesh_operators.c (+1, -1) (Diff)
/source/blender/bmesh/operators/bmo_connect_pair.c (+2, -2) (Diff)
/source/blender/bmesh/operators/bmo_rotate_edges.c (+1, -1) (Diff)
/source/blender/bmesh/operators/bmo_subdivide_edgering.c (+2, -2) (Diff)
/source/blender/bmesh/operators/bmo_triangulate.c (+1, -1) (Diff)
/source/blender/bmesh/tools/bmesh_beautify.c (+1, -1) (Diff)
/source/blender/bmesh/tools/bmesh_decimate_collapse.c (+2, -2) (Diff)
/source/blender/bmesh/tools/bmesh_edgenet.c (+2, -2) (Diff)
/source/blender/bmesh/tools/bmesh_intersect.c (+3, -3) (Diff)
/source/blender/bmesh/tools/bmesh_path.c (+3, -3) (Diff)
/source/blender/bmesh/tools/bmesh_region_match.c (+7, -7) (Diff)
/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_eval.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_flush.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/nodes/deg_node_component.cc (+3, -3) (Diff)
/source/blender/editors/armature/editarmature_sketch.c (+1, -1) (Diff)
/source/blender/editors/armature/reeb.c (+5, -5) (Diff)
/source/blender/editors/curve/editcurve.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve_paint.c (+6, -6) (Diff)
/source/blender/editors/curve/editcurve_select.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_knife.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_uv.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+3, -3) (Diff)
/source/blender/editors/uvedit/uvedit_parametrizer.c (+2, -2) (Diff)
/source/blender/editors/uvedit/uvedit_smart_stitch.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+1, -1) (Diff)
/source/blender/imbuf/intern/moviecache.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+7, -7) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+1, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_ops_call.c (+4, -4) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+3, -3) (Diff)
/tests/gtests/blenlib/BLI_ghash_performance_test.cc (+2, -2) (Diff)
/tests/gtests/blenlib/BLI_ghash_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_heap_test.cc (+11, -11) (Diff)
/tests/gtests/blenlib/BLI_kdopbvh_test.cc (+2, -2) (Diff)
/tests/gtests/blenlib/BLI_polyfill2d_test.cc (+1, -1) (Diff)
/source/blender/blenkernel/intern/cdderivedmesh.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/colorband.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve_decimate.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/library.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mesh_validate.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/object_deform.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/outliner_treehash.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/pbvh.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/pbvh_bmesh.c (+15, -15) (Diff)
/source/blender/blenlib/BLI_edgehash.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_ghash.h (+4, -4) (Diff)
/source/blender/blenlib/BLI_gsqueue.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_heap.h (+2, -2) (Diff)
/source/blender/blenlib/BLI_kdopbvh.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_linklist_stack.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_mempool.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_smallhash.h (+1, -1) (Diff)
/source/blender/blenlib/BLI_threads.h (+1, -1) (Diff)
/source/blender/blenlib/intern/array_store.c (+3, -3) (Diff)
/source/blender/blenlib/intern/astar.c (+1, -1) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+8, -8) (Diff)
/source/blender/blenlib/intern/BLI_heap.c (+3, -3) (Diff)
/source/blender/blenlib/intern/BLI_kdopbvh.c (+1, -1) (Diff)
/source/blender/blenlib/intern/BLI_mempool.c (+1, -1) (Diff)
/source/blender/blenlib/intern/edgehash.c (+5, -5) (Diff)
/source/blender/blenlib/intern/gsqueue.c (+2, -2) (Diff)
/source/blender/blenlib/intern/polyfill2d_beautify.c (+1, -1) (Diff)
/source/blender/blenlib/intern/smallhash.c (+1, -1) (Diff)
/source/blender/blenlib/intern/task.c (+1, -1) (Diff)
/source/blender/blenlib/intern/threads.c (+2, -2) (Diff)
/source/blender/blenloader/intern/writefile.c (+1, -1) (Diff)
/source/blender/blentranslation/msgfmt/msgfmt.c (+1, -1) (Diff)
/source/blender/bmesh/intern/bmesh_iterators.c (+2, -2) (Diff)
/source/blender/bmesh/intern/bmesh_log.c (+2, -2) (Diff)
/source/blender/bmesh/intern/bmesh_operators.c (+1, -1) (Diff)
/source/blender/bmesh/operators/bmo_connect_pair.c (+2, -2) (Diff)
/source/blender/bmesh/operators/bmo_rotate_edges.c (+1, -1) (Diff)
/source/blender/bmesh/operators/bmo_subdivide_edgering.c (+2, -2) (Diff)
/source/blender/bmesh/operators/bmo_triangulate.c (+1, -1) (Diff)
/source/blender/bmesh/tools/bmesh_beautify.c (+1, -1) (Diff)
/source/blender/bmesh/tools/bmesh_decimate_collapse.c (+2, -2) (Diff)
/source/blender/bmesh/tools/bmesh_edgenet.c (+2, -2) (Diff)
/source/blender/bmesh/tools/bmesh_intersect.c (+3, -3) (Diff)
/source/blender/bmesh/tools/bmesh_path.c (+3, -3) (Diff)
/source/blender/bmesh/tools/bmesh_region_match.c (+7, -7) (Diff)
/source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_eval.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_flush.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/nodes/deg_node_component.cc (+3, -3) (Diff)
/source/blender/editors/armature/editarmature_sketch.c (+1, -1) (Diff)
/source/blender/editors/armature/reeb.c (+5, -5) (Diff)
/source/blender/editors/curve/editcurve.c (+1, -1) (Diff)
/source/blender/editors/curve/editcurve_paint.c (+6, -6) (Diff)
/source/blender/editors/curve/editcurve_select.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_knife.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_uv.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+3, -3) (Diff)
/source/blender/editors/uvedit/uvedit_parametrizer.c (+2, -2) (Diff)
/source/blender/editors/uvedit/uvedit_smart_stitch.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+1, -1) (Diff)
/source/blender/imbuf/intern/moviecache.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+7, -7) (Diff)
/source/blender/modifiers/intern/MOD_skin.c (+1, -1) (Diff)
/source/blender/python/bmesh/bmesh_py_ops_call.c (+4, -4) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+3, -3) (Diff)
/tests/gtests/blenlib/BLI_ghash_performance_test.cc (+2, -2) (Diff)
/tests/gtests/blenlib/BLI_ghash_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_heap_test.cc (+11, -11) (Diff)
/tests/gtests/blenlib/BLI_kdopbvh_test.cc (+2, -2) (Diff)
/tests/gtests/blenlib/BLI_polyfill2d_test.cc (+1, -1) (Diff)