Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove some extern "C"
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 19 Jun 2015 09:01:10 +0000 (11:01 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 19 Jun 2015 09:01:10 +0000 (11:01 +0200)
clang was complaining about C-linkage functions with non-C-linkage return/parameter types.

src/mc/mc_dwarf.cpp
src/mc/mc_location.h
src/mc/mc_member.cpp
src/mc/mc_object_info.cpp
src/mc/mc_object_info.h

index c81b34f..3bedffa 100644 (file)
@@ -18,8 +18,6 @@
 #include "mc_object_info.h"
 #include "mc_private.h"
 
 #include "mc_object_info.h"
 #include "mc_private.h"
 
-extern "C" {
-
 static void MC_dwarf_register_global_variable(mc_object_info_t info, dw_variable_t variable);
 static void MC_register_variable(mc_object_info_t info, dw_frame_t frame, dw_variable_t variable);
 static void MC_dwarf_register_non_global_variable(mc_object_info_t info, dw_frame_t frame, dw_variable_t variable);
 static void MC_dwarf_register_global_variable(mc_object_info_t info, dw_variable_t variable);
 static void MC_register_variable(mc_object_info_t info, dw_frame_t frame, dw_variable_t variable);
 static void MC_dwarf_register_non_global_variable(mc_object_info_t info, dw_frame_t frame, dw_variable_t variable);
@@ -1433,5 +1431,3 @@ void MC_post_process_object_info(mc_process_t process, mc_object_info_t info)
 
   }
 }
 
   }
 }
-
-}
index 3dd7308..a3b3bb5 100644 (file)
@@ -16,8 +16,6 @@
 #include <simgrid_config.h>
 #include "mc_base.h"
 #include "mc_forward.h"
 #include <simgrid_config.h>
 #include "mc_base.h"
 #include "mc_forward.h"
-#include "mc_object_info.h"
-#include "mc_forward.h"
 #include "AddressSpace.hpp"
 
 SG_BEGIN_DECL()
 #include "AddressSpace.hpp"
 
 SG_BEGIN_DECL()
index a75a9af..21eaf14 100644 (file)
@@ -9,8 +9,6 @@
 #include "mc_object_info.h"
 #include "mc_private.h"
 
 #include "mc_object_info.h"
 #include "mc_private.h"
 
-extern "C" {
-
 /** Resolve snapshot in the process address space
  *
  * @param object   Process address of the struct/class
 /** Resolve snapshot in the process address space
  *
  * @param object   Process address of the struct/class
@@ -43,5 +41,3 @@ void *mc_member_resolve(const void *base, dw_type_t type, dw_type_t member,
   else
     return (void *) state.stack[state.stack_size - 1];
 }
   else
     return (void *) state.stack[state.stack_size - 1];
 }
-
-}
index 95f9e2a..2b00607 100644 (file)
@@ -11,8 +11,6 @@
 #include "mc_object_info.h"
 #include "mc_private.h"
 
 #include "mc_object_info.h"
 #include "mc_private.h"
 
-extern "C" {
-
 dw_frame_t MC_file_object_info_find_function(mc_object_info_t info, const void *ip)
 {
   xbt_dynar_t dynar = info->functions_index;
 dw_frame_t MC_file_object_info_find_function(mc_object_info_t info, const void *ip)
 {
   xbt_dynar_t dynar = info->functions_index;
@@ -44,5 +42,3 @@ dw_variable_t MC_file_object_info_find_variable_by_name(mc_object_info_t info, c
 
   return NULL;
 }
 
   return NULL;
 }
-
-}
index cf0b742..9dbf036 100644 (file)
@@ -23,8 +23,6 @@
 #include "mc_process.h"
 #include "../smpi/private.h"
 
 #include "mc_process.h"
 #include "../smpi/private.h"
 
-SG_BEGIN_DECL();
-
 // ***** Type
 
 typedef int e_dw_type_type;
 // ***** Type
 
 typedef int e_dw_type_type;
@@ -117,6 +115,7 @@ XBT_INTERNAL void* MC_object_base_address(mc_object_info_t info);
 
 XBT_INTERNAL std::shared_ptr<s_mc_object_info_t> MC_find_object_info(
   std::vector<simgrid::mc::VmMap> const& maps, const char* name, int executable);
 
 XBT_INTERNAL std::shared_ptr<s_mc_object_info_t> MC_find_object_info(
   std::vector<simgrid::mc::VmMap> const& maps, const char* name, int executable);
+
 XBT_INTERNAL void MC_free_object_info(mc_object_info_t* p);
 
 XBT_INTERNAL dw_frame_t MC_file_object_info_find_function(mc_object_info_t info, const void *ip);
 XBT_INTERNAL void MC_free_object_info(mc_object_info_t* p);
 
 XBT_INTERNAL dw_frame_t MC_file_object_info_find_function(mc_object_info_t info, const void *ip);
@@ -170,6 +169,4 @@ struct s_mc_function_index_item {
 
 XBT_INTERNAL void mc_frame_free(dw_frame_t freme);
 
 
 XBT_INTERNAL void mc_frame_free(dw_frame_t freme);
 
-SG_END_DECL()
-
 #endif
 #endif