From: Arnaud Giersch Date: Tue, 3 Apr 2018 09:19:05 +0000 (+0200) Subject: Kill useless typedefs surf_Resource and sg_resource_t. X-Git-Tag: v3.20~541 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a3f4d97b73b19adfbfdf16c72987c0ea3f2c1208 Kill useless typedefs surf_Resource and sg_resource_t. --- diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 4ab1b7f441..e4ebfaf87f 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -92,7 +92,6 @@ typedef simgrid::s4u::NetZone s4u_NetZone; typedef simgrid::s4u::VirtualMachine s4u_VM; typedef boost::intrusive_ptr smx_activity_t; typedef simgrid::kernel::routing::NetPoint routing_NetPoint; -typedef simgrid::kernel::resource::Resource surf_Resource; typedef simgrid::trace_mgr::trace tmgr_Trace; typedef simgrid::kernel::context::Context* smx_context_t; @@ -115,7 +114,6 @@ typedef struct s4u_NetZone s4u_NetZone; typedef struct s4u_VM s4u_VM; typedef struct kernel_Activity* smx_activity_t; typedef struct routing_NetPoint routing_NetPoint; -typedef struct surf_Resource surf_Resource; typedef struct Trace tmgr_Trace; typedef struct s_smx_context* smx_context_t; @@ -135,7 +133,6 @@ typedef s4u_VM* sg_vm_t; typedef s4u_Actor* sg_actor_t; typedef routing_NetPoint* sg_netpoint_t; -typedef surf_Resource *sg_resource_t; typedef tmgr_Trace *tmgr_trace_t; /**< Opaque structure defining an availability trace */ diff --git a/src/surf/trace_mgr.hpp b/src/surf/trace_mgr.hpp index bcd2151a92..0e6542590e 100644 --- a/src/surf/trace_mgr.hpp +++ b/src/surf/trace_mgr.hpp @@ -20,7 +20,7 @@ class TraceEvent { public: tmgr_trace_t trace; unsigned int idx; - sg_resource_t resource; + Resource* resource; bool free_me; };