From: alegrand Date: Thu, 23 Dec 2004 00:56:58 +0000 (+0000) Subject: arguments were not set. X-Git-Tag: v3.3~4652 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a39a970a84bda5ee713426f9b3cab09ec1ffc16a?ds=sidebyside arguments were not set. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@698 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/context.c b/src/xbt/context.c index e84ffa25fc..685e230c87 100644 --- a/src/xbt/context.c +++ b/src/xbt/context.c @@ -16,10 +16,10 @@ #include "gras_config.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(context, xbt, "Context"); -#define WARNING(format, ...) (fprintf(stderr, "[%s , %s : %d] ", __FILE__, __FUNCTION__, __LINE__),\ - fprintf(stderr, format, ## __VA_ARGS__), \ - fprintf(stderr, "\n")) -#define VOIRP(expr) WARNING(" {" #expr " = %p }", expr) +/* #define WARNING(format, ...) (fprintf(stderr, "[%s , %s : %d] ", __FILE__, __FUNCTION__, __LINE__),\ */ +/* fprintf(stderr, format, ## __VA_ARGS__), \ */ +/* fprintf(stderr, "\n")) */ +/* #define VOIRP(expr) WARNING(" {" #expr " = %p }", expr) */ #ifndef HAVE_UCONTEXT_H /* don't want to play with conditional compilation in automake tonight, sorry. @@ -141,6 +141,8 @@ xbt_context_t xbt_context_new(xbt_context_function_t code, res->code = code; res->uc.uc_link = NULL; + res->argc = argc; + res->argv = argv; /* res->uc.uc_link = &(current_context->uc); */ /* WARNING : when this context is over, the current_context (i.e. the father), is awaken... Theorically, the wrapper should prevent using