Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
glanced rapidely
[simgrid.git] / include / xbt / dynar.h
index c95e619..64136a4 100644 (file)
@@ -1,12 +1,11 @@
 /* $Id$ */
 
-/* dynar - a generic dynamic array                                         */
+/* dynar - a generic dynamic array                                          */
 
-/* Authors: Martin Quinson                                                  */
-/* Copyright (C) 2003 the OURAGAN project.                                  */
+/* 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. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef _XBT_DYNAR_H
 #define _XBT_DYNAR_H
@@ -17,10 +16,6 @@ BEGIN_DECL
 
 typedef struct xbt_dynar_s *xbt_dynar_t;
 
-/* pointer to a function freeing something */
-typedef   void (void_f_ppvoid_t)(void**);
-typedef   void (void_f_pvoid_t) (void*);
-
 xbt_dynar_t  xbt_dynar_new(unsigned long elm_size, 
                             void_f_pvoid_t *free_func);
 void          xbt_dynar_free(xbt_dynar_t *dynar);
@@ -78,7 +73,7 @@ int  xbt_dynar_cursor_get   (const xbt_dynar_t dynar, int *cursor, void *whereto
  * Iterates over the whole dynar. Example:
  *
  * <programlisting>
- * xbt_dynar_t *dyn;
+ * xbt_dynar_t dyn;
  * int cpt;
  * string *str;
  * xbt_dynar_foreach (dyn,cpt,str) {