Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Doesn't see why MSG_get_host_number should be deprecated.
authorsuter <frederic.suter@cc.in2p3.fr>
Tue, 18 Sep 2012 19:41:07 +0000 (21:41 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Tue, 18 Sep 2012 19:41:42 +0000 (21:41 +0200)
include/msg/msg.h
src/msg/msg_host.c

index fdfda0f..d11cec3 100644 (file)
@@ -112,6 +112,7 @@ XBT_PUBLIC(void) MSG_load_platform_script(const char *script_file);
 
 XBT_PUBLIC(msg_host_t) MSG_get_host_by_name(const char *name);
 XBT_PUBLIC(xbt_dynar_t) MSG_hosts_as_dynar(void);
 
 XBT_PUBLIC(msg_host_t) MSG_get_host_by_name(const char *name);
 XBT_PUBLIC(xbt_dynar_t) MSG_hosts_as_dynar(void);
+XBT_PUBLIC(int) MSG_get_host_number(void);
 
 /************************** Process handling *********************************/
 XBT_PUBLIC(msg_process_t) MSG_process_create(const char *name,
 
 /************************** Process handling *********************************/
 XBT_PUBLIC(msg_process_t) MSG_process_create(const char *name,
@@ -283,7 +284,6 @@ typedef msg_error_t MSG_error_t;
 #define MSG_global_init_args(argc, argv) MSG_init(argc,argv)
 
 /* these are the functions which are deprecated. Do not use them, they may get removed in future releases */
 #define MSG_global_init_args(argc, argv) MSG_init(argc,argv)
 
 /* these are the functions which are deprecated. Do not use them, they may get removed in future releases */
-XBT_PUBLIC(int) MSG_get_host_number(void);
 XBT_PUBLIC(msg_host_t *) MSG_get_host_table(void);
 
 #define MSG_TIMEOUT_FAILURE MSG_TIMEOUT
 XBT_PUBLIC(msg_host_t *) MSG_get_host_table(void);
 
 #define MSG_TIMEOUT_FAILURE MSG_TIMEOUT
index 0826998..73eb35a 100644 (file)
@@ -131,12 +131,12 @@ void __MSG_host_destroy(msg_host_t host) {
   free(host);
 }
 
   free(host);
 }
 
-#ifdef MSG_USE_DEPRECATED
 int MSG_get_host_number(void)
 {
   return xbt_lib_length(host_lib);
 }
 
 int MSG_get_host_number(void)
 {
   return xbt_lib_length(host_lib);
 }
 
+#ifdef MSG_USE_DEPRECATED
 msg_host_t *MSG_get_host_table(void)
 {
       void **array;
 msg_host_t *MSG_get_host_table(void)
 {
       void **array;