Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
An inline function must be visible from header file.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 28 Nov 2012 17:14:30 +0000 (18:14 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 28 Nov 2012 17:17:21 +0000 (18:17 +0100)
examples/msg/chainsend/common.c
examples/msg/chainsend/common.h

index 58da8dc..37f2b74 100644 (file)
@@ -1,10 +1,5 @@
 #include "common.h"
 
-inline void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q)
-{
-  xbt_dynar_push(q, &comm);
-}
-
 int process_pending_connections(xbt_dynar_t q)
 {
   unsigned int iter;
index f0d9997..012bde7 100644 (file)
@@ -4,6 +4,11 @@
 #include "msg/msg.h"
 #include "xbt/sysdep.h"
 
+static XBT_INLINE void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q)
+{
+  xbt_dynar_push(q, &comm);
+}
+
 #define MESSAGE_SIZE 1
 #define HOSTNAME_LENGTH 20