From f1068773bda2a9c50385808a643a04e4a1fc2c7a Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 6 Sep 2004 14:22:27 +0000 Subject: [PATCH] split gras and gros git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@392 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/Makefile.am | 10 +++++----- include/gras.h | 21 +++------------------ include/xbt.h | 33 +++++++++++++++++++++++++++++++++ include/{gras => xbt}/config.h | 0 include/{gras => xbt}/dict.h | 0 include/{gras => xbt}/dynar.h | 0 include/{gras => xbt}/error.h | 0 include/{gras => xbt}/log.h | 0 include/{gras => xbt}/module.h | 0 include/{gras => xbt}/set.h | 0 10 files changed, 41 insertions(+), 23 deletions(-) create mode 100644 include/xbt.h rename include/{gras => xbt}/config.h (100%) rename include/{gras => xbt}/dict.h (100%) rename include/{gras => xbt}/dynar.h (100%) rename include/{gras => xbt}/error.h (100%) rename include/{gras => xbt}/log.h (100%) rename include/{gras => xbt}/module.h (100%) rename include/{gras => xbt}/set.h (100%) diff --git a/include/Makefile.am b/include/Makefile.am index 06231bb5d8..be8f9b19e1 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,9 +1,9 @@ -include_HEADERS = gras.h +include_HEADERS = gras.h gros.h nobase_include_HEADERS = \ - gras/log.h gras/error.h \ - gras/module.h \ - gras/dynar.h gras/dict.h gras/set.h \ - gras/config.h \ + gros/log.h gros/error.h \ + gros/module.h \ + gros/dynar.h gros/dict.h gros/set.h \ + gros/config.h \ \ gras/datadesc.h gras/transport.h \ gras/virtu.h gras/cond.h gras/process.h \ diff --git a/include/gras.h b/include/gras.h index ce3f387be9..347e1da9b9 100644 --- a/include/gras.h +++ b/include/gras.h @@ -11,24 +11,7 @@ #ifndef GRAS_H #define GRAS_H -#define max(a, b) (((a) > (b))?(a):(b)) -#define min(a, b) (((a) < (b))?(a):(b)) - -#define TRUE 1 -#define FALSE 0 - -#define GRAS_MAX_CHANNEL 10 /* FIXME: killme */ - -#include -#include - -#include - -#include -#include -#include - -#include +#include /* our toolbox */ #include /* FIXME: killme */ #include @@ -39,6 +22,8 @@ #include #include +/* FIXME: This is amok */ + #include #include diff --git a/include/xbt.h b/include/xbt.h new file mode 100644 index 0000000000..38f65ef152 --- /dev/null +++ b/include/xbt.h @@ -0,0 +1,33 @@ +/* $Id$ */ + +/* gros.h - Public interface to the GROS (gras's toolbox) */ + +/* Authors: Martin Quinson */ +/* Copyright (C) 2004 the OURAGAN project. */ + +/* 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 GROS_H +#define GROS_H + +#define max(a, b) (((a) > (b))?(a):(b)) +#define min(a, b) (((a) < (b))?(a):(b)) + +#define TRUE 1 +#define FALSE 0 + +#define GRAS_MAX_CHANNEL 10 /* FIXME: killme */ + +#include +#include + +#include + +#include +#include +#include + +#include + +#endif /* GROS_H */ diff --git a/include/gras/config.h b/include/xbt/config.h similarity index 100% rename from include/gras/config.h rename to include/xbt/config.h diff --git a/include/gras/dict.h b/include/xbt/dict.h similarity index 100% rename from include/gras/dict.h rename to include/xbt/dict.h diff --git a/include/gras/dynar.h b/include/xbt/dynar.h similarity index 100% rename from include/gras/dynar.h rename to include/xbt/dynar.h diff --git a/include/gras/error.h b/include/xbt/error.h similarity index 100% rename from include/gras/error.h rename to include/xbt/error.h diff --git a/include/gras/log.h b/include/xbt/log.h similarity index 100% rename from include/gras/log.h rename to include/xbt/log.h diff --git a/include/gras/module.h b/include/xbt/module.h similarity index 100% rename from include/gras/module.h rename to include/xbt/module.h diff --git a/include/gras/set.h b/include/xbt/set.h similarity index 100% rename from include/gras/set.h rename to include/xbt/set.h -- 2.20.1