X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/deae77799e9e84938001bed044c63a9f60eb3548..d579271194fbd8dd7ff1f0f5dbf225e4a1bfd7f2:/include/gras.h diff --git a/include/gras.h b/include/gras.h index 39fd95d791..ef4358f6cb 100644 --- a/include/gras.h +++ b/include/gras.h @@ -2,57 +2,28 @@ /* gras.h - Public interface to the GRAS */ -/* 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 GRAS_H #define GRAS_H -/* Oli's macro */ -#ifndef GS_FAILURE_CONTEXT -# define GS_FAILURE_CONTEXT -#endif /* GS_FAILURE_CONTEXT */ +#include /* our toolbox */ +#include /* There's a whole bunch of exception handling in GRAS */ -#define GS_FAILURE(str) \ - (fprintf(stderr, "FAILURE: %s(%s:%d)" GS_FAILURE_CONTEXT "%s\n", __func__, __FILE__, __LINE__, (str)), \ - abort()) - -#define max(a, b) (((a) > (b))?(a):(b)) -#define min(a, b) (((a) < (b))?(a):(b)) - -#define TRUE 1 -#define FALSE 0 - -/* end of Oli's cruft */ - -#include -#include - -#include - -#include -#include -#include - -#include - -#include #include - +#include +#include +#include #include #include -//#include -#include #include +#include -#include -#include - -#include -#include +XBT_PUBLIC(void) gras_init(int *argc, char **argv); +XBT_PUBLIC(void) gras_exit(void); #endif /* GRAS_H */