summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1ecbb4c)
If need _XBT_WIN32 include gras_config.h"
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9658
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
#include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */
#include "simix/simix.h" /* semaphores for the barrier */
#include "xbt.h" /* calloc, printf */
#include "msg/msg.h" /* Yeah! If you want to use msg, you need to include msg/msg.h */
#include "simix/simix.h" /* semaphores for the barrier */
#include "xbt.h" /* calloc, printf */
-#include "simgrid_config.h" /* getline */
#include "instr/instr_private.h"
void SIMIX_ctx_raw_factory_init(smx_context_factory_t *factory);
#include "instr/instr_private.h"
void SIMIX_ctx_raw_factory_init(smx_context_factory_t *factory);
/* 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. */
-#include "simgrid_config.h" /* getline */
#include "msg/private.h"
#include "xbt/str.h"
#include "xbt/dynar.h"
#include "msg/private.h"
#include "xbt/str.h"
#include "xbt/dynar.h"
#include "surf/random_mgr.h"
#include "xbt/sysdep.h"
#include "surf/random_mgr.h"
#include "xbt/sysdep.h"
-#include "simgrid_config.h" /*_XBT_WIN32*/
+#include "gras_config.h" /*_XBT_WIN32*/
#include <string.h>
#include "setset_private.h"
#include "xbt/sysdep.h"
#include <string.h>
#include "setset_private.h"
#include "xbt/sysdep.h"
-#include "simgrid_config.h" /*_XBT_WIN32*/
+#include "gras_config.h" /*_XBT_WIN32*/
/*The function ffs doesn't exist for windows*/
#ifdef _XBT_WIN32
/*The function ffs doesn't exist for windows*/
#ifdef _XBT_WIN32
/* 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. */
#include "gras_config.h"
/* 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. */
#include "gras_config.h"
-#include "simgrid_config.h" /* getline */
#include <errno.h>
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include <errno.h>
#include "xbt/sysdep.h"
#include "xbt/log.h"
/* 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. */
-#include "simgrid_config.h" /* FILE for getline */
-
/* specific to Borland Compiler */
#ifdef __BORLANDDC__
#pragma hdrstop
/* specific to Borland Compiler */
#ifdef __BORLANDDC__
#pragma hdrstop
-static void handle_suite(const char *filename, FILE * FICIN)
+static void handle_suite(const char *filename, FILE * IN)
{
size_t len;
int blankline;
{
size_t len;
int blankline;
buff = xbt_strbuff_new();
rctx = rctx_new();
buff = xbt_strbuff_new();
rctx = rctx_new();
- while (getline(&line, &len, FICIN) != -1) {
+ while (getline(&line, &len, IN) != -1) {
line_num++;
/* Count the line length while checking wheather it's blank */
line_num++;
/* Count the line length while checking wheather it's blank */
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
int i;
char *suitename = NULL;
struct sigaction newact;
int i;
char *suitename = NULL;
struct sigaction newact;
XBT_INFO("Test suite `%s'", suitename);
testsuite_name = suitename;
XBT_INFO("Test suite `%s'", suitename);
testsuite_name = suitename;
- FICIN = fopen(argv[i], "r");
- if (!FICIN) {
+ IN = fopen(argv[i], "r");
+ if (!IN) {
perror(bprintf("Impossible to open the suite file `%s'", argv[i]));
XBT_ERROR("Test suite `%s': NOK (system error)", testsuite_name);
rctx_armageddon(rctx, 1);
}
perror(bprintf("Impossible to open the suite file `%s'", argv[i]));
XBT_ERROR("Test suite `%s': NOK (system error)", testsuite_name);
rctx_armageddon(rctx, 1);
}
- handle_suite(suitename, FICIN);
+ handle_suite(suitename, IN);
XBT_INFO("Test suite `%s' OK", suitename);
free(suitename);
}
XBT_INFO("Test suite `%s' OK", suitename);
free(suitename);
}