Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the type definition to a specific header so that we can share it with the code...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Jun 2005 16:51:19 +0000 (16:51 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Jun 2005 16:51:19 +0000 (16:51 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1327 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/dynar.c
src/xbt/dynar_private.h [new file with mode: 0644]

index dccfb7f..a9e768e 100644 (file)
 #include "xbt/dynar.h"
 #include <sys/types.h>
 
 #include "xbt/dynar.h"
 #include <sys/types.h>
 
-
+#include "xbt/dynar_private.h" /* type definition, which we share with the 
+                                 code in charge of sending this across the net */
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(dynar,xbt,"Dynamic arrays");
 
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(dynar,xbt,"Dynamic arrays");
 
-typedef struct xbt_dynar_s {
-  unsigned long          size;
-  unsigned long          used;
-  unsigned long          elmsize;
-  void           *data;
-  void_f_pvoid_t *free_f;
-} s_xbt_dynar_t;
 
 #define __sanity_check_dynar(dynar)       \
            xbt_assert0(dynar,           \
 
 #define __sanity_check_dynar(dynar)       \
            xbt_assert0(dynar,           \
diff --git a/src/xbt/dynar_private.h b/src/xbt/dynar_private.h
new file mode 100644 (file)
index 0000000..5658a52
--- /dev/null
@@ -0,0 +1,21 @@
+/* $Id$ */
+
+/* a generic DYNamic ARray implementation.                                  */
+
+/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#ifndef DYNAR_PRIVATE_H
+#define DYNAR_PRIVATE_H
+
+typedef struct xbt_dynar_s {
+  unsigned long          size;
+  unsigned long          used;
+  unsigned long          elmsize;
+  void           *data;
+  void_f_pvoid_t *free_f;
+} s_xbt_dynar_t;
+
+#endif /* DYNAR_PRIVATE_H */