Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
arguments were not set.
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 23 Dec 2004 00:56:58 +0000 (00:56 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 23 Dec 2004 00:56:58 +0000 (00:56 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@698 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/context.c

index e84ffa2..685e230 100644 (file)
 #include "gras_config.h"
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(context, xbt, "Context");
 
 #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.
 
 #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->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 
 /*   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