]> AND Public Git Repository - simgrid.git/blobdiff - src/swag_unit.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added a function and the bound to the variable structure.
[simgrid.git] / src / swag_unit.c
index e6d0d437ec50c3eed7565935959bd4a1fac31409..72846ba54bf9083d71b933b4bdbc9cca7a1da976 100644 (file)
@@ -2,12 +2,13 @@
 /* GENERATED FILE, DO NOT EDIT */
 /*******************************/
 
+#include <stdio.h>
 #include "xbt.h"
 /*******************************/
 /* GENERATED FILE, DO NOT EDIT */
 /*******************************/
 
-# 236 "xbt/swag.c" 
+# 233 "xbt/swag.c" 
 
 
 typedef struct {
@@ -21,8 +22,8 @@ XBT_TEST_UNIT("basic",test_swag_basic,"Basic usage") {
   shmurtz_t obj1, obj2, obj;
   xbt_swag_t setA,setB;
 
-  obj1 = calloc(1,sizeof(s_shmurtz_t));
-  obj2 = calloc(1,sizeof(s_shmurtz_t));
+  obj1 = xbt_new0(s_shmurtz_t,1);
+  obj2 = xbt_new0(s_shmurtz_t,1);
 
   obj1->name="Obj 1";
   obj2->name="Obj 2";