/* 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"private.h"
-#include"xbt/sysdep.h"
-#include "xbt/error.h"
+#include "private.h"
+#include "xbt/sysdep.h"
+#include "xbt/log.h"
#include "surf/surf_parse.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(deployment, msg,
"Logging specific to MSG (environment)");
process = MSG_process_create_with_arguments(parse_argv[0], parse_code,
NULL, parse_host,
parse_argc,parse_argv);
- if(kill_time > MSG_getClock()) {
+ if(kill_time > MSG_get_clock()) {
surf_timer_resource->extension_public->set(kill_time,
(void*) &MSG_process_kill,
(void*) process);
xbt_assert0(msg_global,"MSG_global_init_args has to be called before MSG_get_registered_function.");
- xbt_dict_get(msg_global->registered_functions,name,(void **) &code);
+ code = xbt_dict_get(msg_global->registered_functions,name);
return code;
}
return MSG_OK;
}
-/** \ingroup msg_easier_life
+/* \ingroup msg_easier_life
* \brief Set the arguments of a process.
*
* This functions sets the argument number and the arguments table for a
*/
MSG_error_t MSG_set_arguments(m_process_t process,int argc, char *argv[])
{
- simdata_process_t simdata = NULL;
-
xbt_assert0(0,"Deprecated ! Do not use anymore. "
"Use MSG_process_create_with_arguments instead.\n");