From: cherierm Date: Mon, 25 Sep 2006 14:58:07 +0000 (+0000) Subject: Removes the gras_config.h inclusion, adds the portable.h inclusion for win32 portability. X-Git-Tag: v3.3~2559 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/54702ce88779779500025ff0ce2d66d70cbc9f7a?hp=1e59458bb5bc6dea868c6c5b40ee007547cf21b5 Removes the gras_config.h inclusion, adds the portable.h inclusion for win32 portability. Declare all variables at the begining for ANSI C standard compatibility. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2800 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/cunit.c b/src/xbt/cunit.c index 7d584ebb26..0d1569cb6c 100644 --- a/src/xbt/cunit.c +++ b/src/xbt/cunit.c @@ -9,7 +9,7 @@ /* This is partially inspirated from the OSSP ts (Test Suite Library) */ -#include "gras_config.h" +#include "portable.h" #include "xbt/sysdep.h" /* vasprintf */ #include "xbt/cunit.h" @@ -435,6 +435,9 @@ static void apply_selection(char *selection) { xbt_test_unit_t unit; int it_unit; + char suitename[512]; + char unitname[512]; + if (!selection || selection[0] == '\0') return; @@ -459,8 +462,6 @@ static void apply_selection(char *selection) { memmove(dir,dir+1,strlen(dir)); } - - char suitename[512],unitname[512]; p =strchr(dir,':'); if (p) { strcpy(unitname,p+1);