git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@606
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
/* This is useful to build named structs, like option or property sets. */
/* This is useful to build named structs, like option or property sets. */
-/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
+/* Copyright (c) 2001,2002,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. */
/* 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. */
-/* xbt/dict.h -- api to a generic dictionary */
+/* xbt/dict.h -- api to a generic dictionary */
-/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
+/* 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. */
/* 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. */
-/* dynar - a generic dynamic array */
+/* dynar - a generic dynamic array */
-/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
+/* 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. */
/* 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. */
/* xbt/error.h - Error tracking support */
/* xbt/error.h - Error tracking support */
-/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
+/* 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. */
/* 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. */
+void xbt_abort(void) _XBT_GNUC_NORETURN;
+
typedef enum {
no_error=0, /* succes */
mismatch_error=1, /* The provided ID does not match */
typedef enum {
no_error=0, /* succes */
mismatch_error=1, /* The provided ID does not match */
/* log - a generic logging facility in the spirit of log4j */
/* log - a generic logging facility in the spirit of log4j */
-/* Copyright (c) 2004 Martin Quinson. All rights reserved. */
+/* 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. */
/* 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. */
-/* xbt.h - Public interface to the xbt (gras's toolbox) */
+/* xbt.h - Public interface to the xbt (gras's toolbox) */
-/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
+/* Copyright (c) 2004 Martin Quinson. */
+/* Copyright (c) 2004 Arnaud Legrand. */
+/* 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. */
/* 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 XBT_MISC_H
#define XBT_MISC_H
#ifndef XBT_MISC_H
#define XBT_MISC_H
-#define max(a, b) (((a) > (b))?(a):(b))
-#define min(a, b) (((a) < (b))?(a):(b))
+#ifndef max
+# define max(a, b) (((a) > (b))?(a):(b))
+#endif
+#ifndef min
+# define min(a, b) (((a) < (b))?(a):(b))
+#endif
#define TRUE 1
#define FALSE 0
#define TRUE 1
#define FALSE 0
# define _XBT_INLINE
#endif
# define _XBT_INLINE
#endif
-
-void xbt_abort(void) _XBT_GNUC_NORETURN;
-
END_DECL
#include "xbt/error.h" /* needed for xbt_die */
END_DECL
#include "xbt/error.h" /* needed for xbt_die */