Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move compatibility typedefs in section MSG_USE_DEPRECATED.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 2 Jul 2012 09:45:35 +0000 (11:45 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 2 Jul 2012 09:45:35 +0000 (11:45 +0200)
include/msg/datatypes.h
include/msg/msg.h

index c5c2d05..7560bd3 100644 (file)
@@ -141,14 +141,14 @@ typedef struct msg_comm *msg_comm_t;
  */
 typedef struct s_smx_process *msg_process_t;
 
-/* Compatibility typedefs */
-typedef msg_process_t m_process_t;
-typedef msg_host_t m_host_t;
-typedef msg_task_t m_task_t;
-typedef msg_gpu_task_t m_gpu_task_t;
-
 #ifdef MSG_USE_DEPRECATED
-typedef int m_channel_t;
+
+/* Compatibility typedefs */
+typedef int                     m_channel_t;
+typedef msg_gpu_task_t          m_gpu_task_t;
+typedef msg_host_t              m_host_t;
+typedef msg_process_t           m_process_t;
+typedef msg_task_t              m_task_t;
 #endif
 
 SG_END_DECL()
index a6a21cb..1a9986c 100644 (file)
@@ -31,8 +31,6 @@ typedef enum {
 } msg_error_t;
 /** @} */
 
-typedef msg_error_t MSG_error_t;
-
 /************************** Global ******************************************/
 XBT_PUBLIC(void) MSG_config(const char *name, ...);
 /** \ingroup msg_simulation
@@ -265,6 +263,9 @@ XBT_PUBLIC(msg_error_t)
 msg_error_t MSG_action_trace_run(char *path);
 
 #ifdef MSG_USE_DEPRECATED
+
+typedef msg_error_t MSG_error_t;
+
 #define MSG_global_init(argc, argv)      MSG_init(argc,argv)
 #define MSG_global_init_args(argc, argv) MSG_init(argc,argv)