Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
made small change to function prototype for SIMIX_action_execute so name is now
authormarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Nov 2007 22:48:48 +0000 (22:48 +0000)
committermarkls <markls@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 7 Nov 2007 22:48:48 +0000 (22:48 +0000)
type "const char *".  This matches similar functions and makes calls to
SIMIX_action_execute a little less unwieldy.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4989 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/include/simix/simix.h
src/simix/smx_action.c

index e431e68..4d56103 100644 (file)
@@ -130,7 +130,7 @@ XBT_PUBLIC(xbt_fifo_t) SIMIX_cond_get_actions(smx_cond_t cond);
 /************************** Action handling ************************************/
 XBT_PUBLIC(smx_action_t) SIMIX_action_communicate(smx_host_t sender,smx_host_t receiver, const char *name,
                                                                                                                                                                                                        double size, double rate);
 /************************** Action handling ************************************/
 XBT_PUBLIC(smx_action_t) SIMIX_action_communicate(smx_host_t sender,smx_host_t receiver, const char *name,
                                                                                                                                                                                                        double size, double rate);
-XBT_PUBLIC(smx_action_t) SIMIX_action_execute(smx_host_t host,char *name, double amount);
+XBT_PUBLIC(smx_action_t) SIMIX_action_execute(smx_host_t host, const char *name, double amount);
 XBT_PUBLIC(smx_action_t) SIMIX_action_sleep(smx_host_t host, double amount);
 XBT_PUBLIC(void) SIMIX_action_cancel(smx_action_t action);
 XBT_PUBLIC(void) SIMIX_action_set_priority(smx_action_t action, double priority);
 XBT_PUBLIC(smx_action_t) SIMIX_action_sleep(smx_host_t host, double amount);
 XBT_PUBLIC(void) SIMIX_action_cancel(smx_action_t action);
 XBT_PUBLIC(void) SIMIX_action_set_priority(smx_action_t action, double priority);
index 55cc1a7..f3c318f 100644 (file)
@@ -74,7 +74,7 @@ smx_action_t SIMIX_action_communicate(smx_host_t sender,
  *     \param amount Task amount (in bytes)
  *     \return A new SIMIX action
  * */
  *     \param amount Task amount (in bytes)
  *     \return A new SIMIX action
  * */
-smx_action_t SIMIX_action_execute(smx_host_t host, char *name,
+smx_action_t SIMIX_action_execute(smx_host_t host, const char *name,
                                  double amount)
 {
         smx_action_t act;
                                  double amount)
 {
         smx_action_t act;