Depsgraph: Only use extern "C" when really needed

This commit is contained in:
Sergey Sharybin 2017-06-06 12:14:39 +02:00
parent 1846627ae0
commit 58a434b372
Notes: blender-bot 2023-02-14 09:34:18 +01:00
Referenced by issue #51732, Array Modifier: Fit Curve calculation method ignores parent relation
Referenced by issue #51734, batch previews segfault on some materials
22 changed files with 51 additions and 62 deletions

View File

@ -36,10 +36,7 @@
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
extern "C" {
#include "BLI_stack.h"
}
#include "intern/depsgraph.h"
#include "intern/depsgraph_types.h"

View File

@ -33,10 +33,8 @@
#include <cstdio>
#include <cstdlib>
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_stack.h"
}
#include "util/deg_util_foreach.h"

View File

@ -37,11 +37,11 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "BLI_blenlib.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
extern "C" {
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
@ -94,13 +94,13 @@ extern "C" {
#include "BKE_tracking.h"
#include "BKE_world.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "RNA_access.h"
#include "RNA_types.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "intern/builder/deg_builder.h"
#include "intern/nodes/deg_node.h"
#include "intern/nodes/deg_node_component.h"

View File

@ -37,11 +37,11 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
extern "C" {
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
@ -49,10 +49,10 @@ extern "C" {
#include "BKE_action.h"
#include "BKE_armature.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
} /* extern "C" */
#include "intern/builder/deg_builder.h"
#include "intern/nodes/deg_node.h"

View File

@ -37,21 +37,21 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
extern "C" {
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_main.h"
#include "BKE_node.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
} /* extern "C" */
#include "intern/builder/deg_builder.h"
#include "intern/nodes/deg_node.h"

View File

@ -33,10 +33,8 @@
#include <stdio.h>
#include <string.h>
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
}
namespace DEG {

View File

@ -38,10 +38,10 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
extern "C" {
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
@ -92,13 +92,13 @@ extern "C" {
#include "BKE_tracking.h"
#include "BKE_world.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "RNA_access.h"
#include "RNA_types.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "intern/builder/deg_builder.h"
#include "intern/builder/deg_builder_pchanmap.h"

View File

@ -38,10 +38,10 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
extern "C" {
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
@ -51,10 +51,10 @@ extern "C" {
#include "BKE_action.h"
#include "BKE_armature.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
} /* extern "C" */
#include "intern/builder/deg_builder.h"
#include "intern/builder/deg_builder_pchanmap.h"

View File

@ -38,20 +38,20 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
extern "C" {
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BKE_main.h"
#include "BKE_node.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
} /* extern "C" */
#include "intern/builder/deg_builder.h"
#include "intern/builder/deg_builder_pchanmap.h"

View File

@ -30,9 +30,7 @@
#include "intern/builder/deg_builder_transitive.h"
extern "C" {
#include "MEM_guardedalloc.h"
}
#include "intern/nodes/deg_node.h"
#include "intern/nodes/deg_node_component.h"

View File

@ -35,10 +35,10 @@
extern "C" {
#include "DNA_listBase.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_debug.h"
} /* extern "C" */
#include "intern/depsgraph_intern.h"
#include "util/deg_util_foreach.h"

View File

@ -34,12 +34,6 @@
// #define DEBUG_TIME
extern "C" {
#include "DNA_cachefile_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_force.h"
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
@ -48,17 +42,22 @@ extern "C" {
# include "PIL_time_utildefines.h"
#endif
extern "C" {
#include "DNA_cachefile_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_force.h"
#include "BKE_main.h"
#include "BKE_collision.h"
#include "BKE_effect.h"
#include "BKE_modifier.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_debug.h"
#include "DEG_depsgraph_build.h"
} /* extern "C" */
#include "builder/deg_builder.h"
#include "builder/deg_builder_cycle.h"
#include "builder/deg_builder_nodes.h"

View File

@ -35,11 +35,11 @@
extern "C" {
#include "DNA_scene_types.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_debug.h"
#include "DEG_depsgraph_build.h"
} /* extern "C" */
#include "intern/eval/deg_eval_debug.h"
#include "intern/depsgraph_intern.h"

View File

@ -32,17 +32,17 @@
#include "MEM_guardedalloc.h"
extern "C" {
#include "DNA_scene_types.h"
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
extern "C" {
#include "DNA_scene_types.h"
#include "BKE_depsgraph.h"
#include "BKE_scene.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
} /* extern "C" */
#include "intern/eval/deg_eval.h"
#include "intern/eval/deg_eval_flush.h"

View File

@ -35,9 +35,9 @@
extern "C" {
#include "BKE_idcode.h"
#include "BKE_main.h"
} /* extern "C" */
#include "DEG_depsgraph_query.h"
} /* extern "C" */
#include "intern/depsgraph_intern.h"

View File

@ -34,16 +34,16 @@
#include <cstring> /* required for memset */
#include <queue>
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_task.h"
#include "BLI_listbase.h"
extern "C" {
#include "DNA_object_types.h"
#include "DNA_particle_types.h"
#include "DNA_screen_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_task.h"
#include "BLI_listbase.h"
#include "BKE_idcode.h"
#include "BKE_library.h"
@ -53,9 +53,9 @@ extern "C" {
#define new new_
#include "BKE_screen.h"
#undef new
} /* extern "C" */
#include "DEG_depsgraph.h"
} /* extern "C" */
#include "intern/builder/deg_builder.h"
#include "intern/eval/deg_eval_flush.h"

View File

@ -32,12 +32,11 @@
#include <cstdlib> // for BLI_assert()
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
#include "DEG_depsgraph.h"
} /* extern "C" */
#include "intern/nodes/deg_node.h"
#include "intern/nodes/deg_node_component.h"

View File

@ -34,16 +34,16 @@
#include "PIL_time.h"
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_task.h"
#include "BLI_ghash.h"
extern "C" {
#include "BKE_depsgraph.h"
#include "BKE_global.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
} /* extern "C" */
#include "atomic_ops.h"

View File

@ -34,16 +34,16 @@
#include <cstring> /* required for STREQ later on. */
extern "C" {
#include "BLI_listbase.h"
#include "BLI_ghash.h"
#include "DEG_depsgraph_debug.h"
extern "C" {
#include "WM_api.h"
#include "WM_types.h"
} /* extern "C" */
#include "DEG_depsgraph_debug.h"
#include "intern/nodes/deg_node.h"
#include "intern/nodes/deg_node_component.h"
#include "intern/nodes/deg_node_operation.h"

View File

@ -35,16 +35,16 @@
// TODO(sergey): Use some sort of wrapper.
#include <deque>
extern "C" {
#include "DNA_object_types.h"
#include "BLI_utildefines.h"
#include "BLI_task.h"
#include "BLI_ghash.h"
#include "DEG_depsgraph.h"
extern "C" {
#include "DNA_object_types.h"
} /* extern "C" */
#include "DEG_depsgraph.h"
#include "intern/nodes/deg_node.h"
#include "intern/nodes/deg_node_component.h"
#include "intern/nodes/deg_node_operation.h"

View File

@ -41,9 +41,9 @@ extern "C" {
#include "DNA_anim_types.h"
#include "BKE_animsys.h"
}
#include "DEG_depsgraph.h"
}
#include "intern/nodes/deg_node_component.h"
#include "intern/nodes/deg_node_operation.h"

View File

@ -33,10 +33,10 @@
#include <stdio.h>
#include <cstring> /* required for STREQ later on. */
extern "C" {
#include "BLI_utildefines.h"
#include "BLI_ghash.h"
extern "C" {
#include "DNA_object_types.h"
#include "BKE_action.h"