Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Catch up with lastest API breakage (xbt_ex_free)
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 7 Apr 2006 15:49:20 +0000 (15:49 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 7 Apr 2006 15:49:20 +0000 (15:49 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2113 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/amok/saturate/saturate.c
examples/gras/rpc/rpc.c
src/gras/Msg/msg.c
src/gras/Virtu/process.c

index 327ce5b..8d50976 100644 (file)
@@ -129,7 +129,7 @@ static void simple_saturation(int argc, char*argv[]) {
   TRY {
     amok_bw_saturate_stop(argv[1],atoi(argv[2]),NULL,NULL);
   } CATCH(e) {
   TRY {
     amok_bw_saturate_stop(argv[1],atoi(argv[2]),NULL,NULL);
   } CATCH(e) {
-    xbt_ex_free(e);
+    xbt_ex_free(&e);
   }
 
  
   }
 
  
index 28ae63b..df7b98c 100644 (file)
@@ -110,7 +110,7 @@ int client(int argc,char *argv[]) {
   xbt_assert1(!strcmp(e.msg,"Some error we will catch on client side"), 
              "Got wrong message: %s", e.msg);;
   INFO0("Got the expected exception when calling the exception raising RPC");
   xbt_assert1(!strcmp(e.msg,"Some error we will catch on client side"), 
              "Got wrong message: %s", e.msg);;
   INFO0("Got the expected exception when calling the exception raising RPC");
-  xbt_ex_free(e);
+  xbt_ex_free(&e);
 
   /* doxygen_ignore */
   for (i=0; i<5; i++) {
 
   /* doxygen_ignore */
   for (i=0; i<5; i++) {
@@ -121,7 +121,7 @@ int client(int argc,char *argv[]) {
                         gras_msgtype_by_name("raise exception"), NULL, NULL);
      } CATCH(e) {
        gotit = 1;
                         gras_msgtype_by_name("raise exception"), NULL, NULL);
      } CATCH(e) {
        gotit = 1;
-       xbt_ex_free(e);
+       xbt_ex_free(&e);
      }
      if (!gotit) {
        THROW0(unknown_error,0,"Didn't got the remote exception!");
      }
      if (!gotit) {
        THROW0(unknown_error,0,"Didn't got the remote exception!");
@@ -146,7 +146,7 @@ int client(int argc,char *argv[]) {
     xbt_assert1(!strcmp(e.msg,"Some error we will catch on client side"), 
                "Got wrong message: %s", e.msg);;
     INFO0("Got the expected exception when calling the exception raising RPC");
     xbt_assert1(!strcmp(e.msg,"Some error we will catch on client side"), 
                "Got wrong message: %s", e.msg);;
     INFO0("Got the expected exception when calling the exception raising RPC");
-    xbt_ex_free(e);
+    xbt_ex_free(&e);
   }
 
   /* 11. Cleanup the place before leaving */
   }
 
   /* 11. Cleanup the place before leaving */
index 6a4c329..8570868 100644 (file)
@@ -139,7 +139,7 @@ gras_msgtype_declare_ext(const char           *name,
   } CATCH(e) {
     if (e.category != not_found_error)
       RETHROW;
   } CATCH(e) {
     if (e.category != not_found_error)
       RETHROW;
-    xbt_ex_free(e);
+    xbt_ex_free(&e);
   }
 
   if (found) {
   }
 
   if (found) {
@@ -228,7 +228,7 @@ gras_msgtype_t gras_msgtype_by_namev(const char      *name,
   TRY {
     res = (gras_msgtype_t)xbt_set_get_by_name(_gras_msgtype_set, namev);
   } CATCH(e) {
   TRY {
     res = (gras_msgtype_t)xbt_set_get_by_name(_gras_msgtype_set, namev);
   } CATCH(e) {
-    xbt_ex_free(e);
+    xbt_ex_free(&e);
     THROW1(not_found_error,0,"No registred message of that name: %s",name);
   }
   if (name != namev) 
     THROW1(not_found_error,0,"No registred message of that name: %s",name);
   }
   if (name != namev) 
@@ -411,7 +411,7 @@ gras_msg_handle(double timeOut) {
     } CATCH(e) {
       if (e.category != timeout_error)
        RETHROW;
     } CATCH(e) {
       if (e.category != timeout_error)
        RETHROW;
-      xbt_ex_free(e);
+      xbt_ex_free(&e);
       timeouted = 1;
     }
 
       timeouted = 1;
     }
 
@@ -505,7 +505,7 @@ gras_msg_handle(double timeOut) {
              gras_socket_peer_name(msg.expe),
              gras_socket_peer_port(msg.expe));
        e.host = NULL;
              gras_socket_peer_name(msg.expe),
              gras_socket_peer_port(msg.expe));
        e.host = NULL;
-       xbt_ex_free(e);
+       xbt_ex_free(&e);
       } else
        RETHROW;
     }
       } else
        RETHROW;
     }
index 9b6c65c..77ef6c5 100644 (file)
@@ -112,7 +112,7 @@ gras_procdata_init() {
       data = xbt_set_get_by_name(pd->libdata, fab.name);
       found = 1;
     } CATCH(e) {
       data = xbt_set_get_by_name(pd->libdata, fab.name);
       found = 1;
     } CATCH(e) {
-      xbt_ex_free(e);
+      xbt_ex_free(&e);
       found = 0;
     }
     if (found)
       found = 0;
     }
     if (found)