Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not mark inline hte functions of which we manipulate pointers to
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 11 Dec 2009 12:18:36 +0000 (12:18 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 11 Dec 2009 12:18:36 +0000 (12:18 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6884 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surf_private.h

index d65028f..9bad336 100644 (file)
@@ -48,13 +48,13 @@ double generic_maxmin_share_resources(xbt_swag_t running_actions,
                                       void (*solve) (lmm_system_t));
 
 /* Generic functions common to all models */
                                       void (*solve) (lmm_system_t));
 
 /* Generic functions common to all models */
-XBT_INLINE e_surf_action_state_t surf_action_state_get(surf_action_t action);
-XBT_INLINE double surf_action_get_start_time(surf_action_t action);
-XBT_INLINE double surf_action_get_finish_time(surf_action_t action);
+e_surf_action_state_t surf_action_state_get(surf_action_t action); /* cannot declare inline since we use a pointer to it */
+double surf_action_get_start_time(surf_action_t action); /* cannot declare inline since we use a pointer to it */
+double surf_action_get_finish_time(surf_action_t action); /* cannot declare inline since we use a pointer to it */
 void surf_action_free(surf_action_t * action);
 void surf_action_state_set(surf_action_t action,
                               e_surf_action_state_t state);
 void surf_action_free(surf_action_t * action);
 void surf_action_state_set(surf_action_t action,
                               e_surf_action_state_t state);
-XBT_INLINE void surf_action_data_set(surf_action_t action, void *data);
+void surf_action_data_set(surf_action_t action, void *data); /* cannot declare inline since we use a pointer to it */
 FILE *surf_fopen(const char *name, const char *mode);
 
 extern tmgr_history_t history;
 FILE *surf_fopen(const char *name, const char *mode);
 
 extern tmgr_history_t history;