[Bf-blender-cvs] [eb476c2] master: Depsgraph: Cleanup, multiple private functions are to be in anonymous namespace

Sergey Sharybin noreply at git.blender.org
Thu May 28 10:52:03 CEST 2015


Commit: eb476c28163986a3158632bcc5f8579646f8607a
Author: Sergey Sharybin
Date:   Thu May 28 13:51:19 2015 +0500
Branches: master
https://developer.blender.org/rBeb476c28163986a3158632bcc5f8579646f8607a

Depsgraph: Cleanup, multiple private functions are to be in anonymous namespace

===================================================================

M	source/blender/depsgraph/intern/depsgraph_tag.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc b/source/blender/depsgraph/intern/depsgraph_tag.cc
index 4736de5..65d75fc 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -70,21 +70,23 @@ extern "C" {
  */
 #define DEPSGRAPH_USE_LEGACY_TAGGING
 
+namespace {
+
 /* Data-Based Tagging ------------------------------- */
 
-static void lib_id_recalc_tag(Main *bmain, ID *id)
+void lib_id_recalc_tag(Main *bmain, ID *id)
 {
 	id->flag |= LIB_ID_RECALC;
 	DEG_id_type_tag(bmain, GS(id->name));
 }
 
-static void lib_id_recalc_data_tag(Main *bmain, ID *id)
+void lib_id_recalc_data_tag(Main *bmain, ID *id)
 {
 	id->flag |= LIB_ID_RECALC_DATA;
 	DEG_id_type_tag(bmain, GS(id->name));
 }
 
-static void lib_id_recalc_tag_flag(Main *bmain, ID *id, int flag)
+void lib_id_recalc_tag_flag(Main *bmain, ID *id, int flag)
 {
 	if (flag) {
 		/* This bit of code ensures legacy object->recalc flags
@@ -117,7 +119,7 @@ static void lib_id_recalc_tag_flag(Main *bmain, ID *id, int flag)
 }
 
 #ifdef DEPSGRAPH_USE_LEGACY_TAGGING
-static void depsgraph_legacy_handle_update_tag(Main *bmain, ID *id, short flag)
+void depsgraph_legacy_handle_update_tag(Main *bmain, ID *id, short flag)
 {
 	if (flag) {
 		Object *object;
@@ -143,6 +145,8 @@ static void depsgraph_legacy_handle_update_tag(Main *bmain, ID *id, short flag)
 }
 #endif
 
+}  /* namespace */
+
 /* Tag all nodes in ID-block for update.
  * This is a crude measure, but is most convenient for old code.
  */




More information about the Bf-blender-cvs mailing list