git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2837
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
/*****************************/
/* we exchange port number on client side on socket creation,
so we need to be able to talk right now. */
/*****************************/
/* we exchange port number on client side on socket creation,
so we need to be able to talk right now. */
-static inline void gras_trp_tcp_send(gras_socket_t sock, const char *data,
+static XBT_INLINE void gras_trp_tcp_send(gras_socket_t sock, const char *data,
unsigned long int size);
static int gras_trp_tcp_recv(gras_socket_t sock, char *data,
unsigned long int size);
unsigned long int size);
static int gras_trp_tcp_recv(gras_socket_t sock, char *data,
unsigned long int size);
static int _gras_tcp_proto_number(void);
static int _gras_tcp_proto_number(void);
-static inline void gras_trp_sock_socket_client(gras_trp_plugin_t ignored,
+static XBT_INLINE void gras_trp_sock_socket_client(gras_trp_plugin_t ignored,
gras_socket_t sock){
struct sockaddr_in addr;
gras_socket_t sock){
struct sockaddr_in addr;
*
* Open a socket used to receive messages.
*/
*
* Open a socket used to receive messages.
*/
-static inline void gras_trp_sock_socket_server(gras_trp_plugin_t ignored,
+static XBT_INLINE void gras_trp_sock_socket_server(gras_trp_plugin_t ignored,
gras_socket_t sock){
int size = sock->buf_size;
int on = 1;
gras_socket_t sock){
int size = sock->buf_size;
int on = 1;
/************************************/
/* Temptation to merge this with file data exchange is great,
but doesn't work on BillWare (see tcp_write() in portable.h) */
/************************************/
/* Temptation to merge this with file data exchange is great,
but doesn't work on BillWare (see tcp_write() in portable.h) */
-static inline void gras_trp_tcp_send(gras_socket_t sock,
+static XBT_INLINE void gras_trp_tcp_send(gras_socket_t sock,
const char *data,
unsigned long int size) {
const char *data,
unsigned long int size) {
gras_trp_tcp_recv_withbuffer(gras_socket_t sock,
char *data,
unsigned long int size,
gras_trp_tcp_recv_withbuffer(gras_socket_t sock,
char *data,
unsigned long int size,