Cleanup: use '_len' instead of '_size' w/ BLI API
authorCampbell Barton <ideasman42@gmail.com>
Thu, 15 Feb 2018 12:36:11 +0000 (23:36 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 15 Feb 2018 12:39:08 +0000 (23:39 +1100)
commitccdacf1c9b31b15e188aa9e9adb044ffd0ca0da4
tree086fc08c0a7d7ecefb4ed6666a3c2fd813142c8b
parent4da6c496137042d4c90292f5567a6702a3df3323
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.
75 files changed:
source/blender/blenkernel/intern/bvhutils.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/colorband.c
source/blender/blenkernel/intern/curve_decimate.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/mesh_validate.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/object_deform.c
source/blender/blenkernel/intern/outliner_treehash.c
source/blender/blenkernel/intern/pbvh.c
source/blender/blenkernel/intern/pbvh_bmesh.c
source/blender/blenlib/BLI_edgehash.h
source/blender/blenlib/BLI_ghash.h
source/blender/blenlib/BLI_gsqueue.h
source/blender/blenlib/BLI_heap.h
source/blender/blenlib/BLI_kdopbvh.h
source/blender/blenlib/BLI_linklist_stack.h
source/blender/blenlib/BLI_mempool.h
source/blender/blenlib/BLI_smallhash.h
source/blender/blenlib/BLI_threads.h
source/blender/blenlib/intern/BLI_ghash.c
source/blender/blenlib/intern/BLI_heap.c
source/blender/blenlib/intern/BLI_kdopbvh.c
source/blender/blenlib/intern/BLI_mempool.c
source/blender/blenlib/intern/array_store.c
source/blender/blenlib/intern/astar.c
source/blender/blenlib/intern/edgehash.c
source/blender/blenlib/intern/gsqueue.c
source/blender/blenlib/intern/polyfill2d_beautify.c
source/blender/blenlib/intern/smallhash.c
source/blender/blenlib/intern/task.c
source/blender/blenlib/intern/threads.c
source/blender/blenloader/intern/writefile.c
source/blender/blentranslation/msgfmt/msgfmt.c
source/blender/bmesh/intern/bmesh_iterators.c
source/blender/bmesh/intern/bmesh_log.c
source/blender/bmesh/intern/bmesh_operators.c
source/blender/bmesh/operators/bmo_connect_pair.c
source/blender/bmesh/operators/bmo_rotate_edges.c
source/blender/bmesh/operators/bmo_subdivide_edgering.c
source/blender/bmesh/operators/bmo_triangulate.c
source/blender/bmesh/tools/bmesh_beautify.c
source/blender/bmesh/tools/bmesh_decimate_collapse.c
source/blender/bmesh/tools/bmesh_edgenet.c
source/blender/bmesh/tools/bmesh_intersect.c
source/blender/bmesh/tools/bmesh_path.c
source/blender/bmesh/tools/bmesh_region_match.c
source/blender/depsgraph/intern/debug/deg_debug_relations_graphviz.cc
source/blender/depsgraph/intern/depsgraph_eval.cc
source/blender/depsgraph/intern/eval/deg_eval.cc
source/blender/depsgraph/intern/eval/deg_eval_flush.cc
source/blender/depsgraph/intern/nodes/deg_node_component.cc
source/blender/editors/armature/editarmature_sketch.c
source/blender/editors/armature/reeb.c
source/blender/editors/curve/editcurve.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/curve/editcurve_select.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/editors/sculpt_paint/sculpt_uv.c
source/blender/editors/space_outliner/outliner_tree.c
source/blender/editors/uvedit/uvedit_parametrizer.c
source/blender/editors/uvedit/uvedit_smart_stitch.c
source/blender/gpu/intern/gpu_buffers.c
source/blender/imbuf/intern/moviecache.c
source/blender/modifiers/intern/MOD_build.c
source/blender/modifiers/intern/MOD_skin.c
source/blender/python/bmesh/bmesh_py_ops_call.c
source/blender/python/intern/bpy_operator.c
source/blender/python/intern/bpy_rna.c
tests/gtests/blenlib/BLI_ghash_performance_test.cc
tests/gtests/blenlib/BLI_ghash_test.cc
tests/gtests/blenlib/BLI_heap_test.cc
tests/gtests/blenlib/BLI_kdopbvh_test.cc
tests/gtests/blenlib/BLI_polyfill2d_test.cc