Cleanup/refactor: Add new BLI_string_util.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 16 Jan 2017 16:33:34 +0000 (17:33 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 16 Jan 2017 19:36:23 +0000 (20:36 +0100)
commitb99798832300b40bcae87725d7e35321966e394c
tree2b75a275de42cc00a992c1aa67cbe44427782acc
parent3748defefe54ff63be2b755cabf70d934294137c
Cleanup/refactor: Add new BLI_string_util.

Things like `BLI_uniquename` had nothing, but really nothing to do in
BLI_path_util files!

Also, got rid of length limitation in `BLI_uniquename_cb`, we can use
alloca here to avoid overhead of malloc while keeping free size (within
reasonable limits of course).
49 files changed:
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/anim_sys.c
source/blender/blenkernel/intern/constraint.c
source/blender/blenkernel/intern/customdata.c
source/blender/blenkernel/intern/deform.c
source/blender/blenkernel/intern/dynamicpaint.c
source/blender/blenkernel/intern/fcurve.c
source/blender/blenkernel/intern/freestyle.c
source/blender/blenkernel/intern/gpencil.c
source/blender/blenkernel/intern/ipo.c
source/blender/blenkernel/intern/key.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/linestyle.c
source/blender/blenkernel/intern/mask.c
source/blender/blenkernel/intern/mball.c
source/blender/blenkernel/intern/mball_tessellate.c
source/blender/blenkernel/intern/modifier.c
source/blender/blenkernel/intern/nla.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/scene.c
source/blender/blenkernel/intern/seqmodifier.c
source/blender/blenkernel/intern/tracking.c
source/blender/blenkernel/intern/tracking_util.c
source/blender/blenlib/BLI_path_util.h
source/blender/blenlib/BLI_string_utils.h [new file with mode: 0644]
source/blender/blenlib/CMakeLists.txt
source/blender/blenlib/intern/path_util.c
source/blender/blenlib/intern/string_utils.c [new file with mode: 0644]
source/blender/blenloader/intern/versioning_260.c
source/blender/collada/AnimationImporter.cpp
source/blender/editors/armature/armature_naming.c
source/blender/editors/armature/pose_lib.c
source/blender/editors/gpencil/gpencil_data.c
source/blender/editors/object/object_edit.c
source/blender/editors/space_logic/logic_ops.c
source/blender/editors/space_logic/logic_window.c
source/blender/editors/space_outliner/outliner_draw.c
source/blender/editors/transform/transform_orientations.c
source/blender/makesrna/intern/rna_actuator.c
source/blender/makesrna/intern/rna_controller.c
source/blender/makesrna/intern/rna_gpencil.c
source/blender/makesrna/intern/rna_key.c
source/blender/makesrna/intern/rna_linestyle.c
source/blender/makesrna/intern/rna_particle.c
source/blender/makesrna/intern/rna_pose.c
source/blender/makesrna/intern/rna_property.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_sensor.c
source/blender/nodes/composite/nodes/node_composite_outputFile.c