From: mquinson Date: Thu, 2 Jun 2005 16:51:19 +0000 (+0000) Subject: move the type definition to a specific header so that we can share it with the code... X-Git-Tag: v3.3~4028 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9eb8b5a3c4a65bf441c487ecef308654d4f384f4 move the type definition to a specific header so that we can share it with the code in charge of sending it accross git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1327 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/dynar.c b/src/xbt/dynar.c index dccfb7f5e4..a9e768eeb3 100644 --- a/src/xbt/dynar.c +++ b/src/xbt/dynar.c @@ -15,17 +15,11 @@ #include "xbt/dynar.h" #include - +#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"); -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, \ diff --git a/src/xbt/dynar_private.h b/src/xbt/dynar_private.h new file mode 100644 index 0000000000..5658a52ec6 --- /dev/null +++ b/src/xbt/dynar_private.h @@ -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 */