X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/da8980cd59b9ddced3bd88bf21250c76c4f929c4..f757db3e61c8c5cbcab605a1beba36b5e21dc6f9:/src/xbt/heap_private.h diff --git a/src/xbt/heap_private.h b/src/xbt/heap_private.h index c0330c73eb..6ff1e78220 100644 --- a/src/xbt/heap_private.h +++ b/src/xbt/heap_private.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2004, 2005, 2007, 2009, 2010. The SimGrid Team. +/* Copyright (c) 2004-2005, 2007, 2009-2012. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -9,6 +9,7 @@ #include "xbt/dynar.h" /* void_f_pvoid_t */ #include "xbt/heap.h" +#include typedef struct xbt_heap_item { void *content; @@ -18,7 +19,7 @@ typedef struct xbt_heap_item { typedef struct xbt_heap { int size; int count; - xbt_heap_item_t items; + s_xbt_heap_item_t* items; /* array of structs */ void_f_pvoid_t free; void (*update_callback) (void *, int); } s_xbt_heap_t; @@ -30,6 +31,6 @@ typedef struct xbt_heap { #define KEY(H,i) ((H->items)[i]).key #define CONTENT(H,i) ((H->items)[i]).content -#define MIN_KEY_VALUE -10000 +#define MIN_KEY_VALUE -DBL_MAX #endif /* _XBT_HEAP_PRIVATE_H */