X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b9103db7f7aac95d28b162b7f78c6a946bba864..872e6c960cfd42bfbb748574c0cf88693d0730a5:/src/msg/deployment.c diff --git a/src/msg/deployment.c b/src/msg/deployment.c index c160d98550..4f61e3a4f5 100644 --- a/src/msg/deployment.c +++ b/src/msg/deployment.c @@ -12,9 +12,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(deployment, msg, "Logging specific to MSG (environment)"); -extern char *yytext; - - static int parse_argc = -1 ; static char **parse_argv = NULL; static m_process_code_t parse_code = NULL; @@ -50,7 +47,16 @@ static void parse_process_finalize(void) * \brief An application deployer. * * Creates the process described in \a file. - * @param file a file containing an XML description of the application. + * \param file a filename of a xml description of the application. This file + * follows this DTD : + * + * \include surfxml.dtd + * + * Here is a small example of such a platform + * + * \include small_deployment.xml + * + * Have a look in the directory examples/msg/ to have a bigger example. */ void MSG_launch_application(const char *file) { @@ -64,10 +70,10 @@ void MSG_launch_application(const char *file) } /** \ingroup msg_easier_life - * \brief Registers a ::m_process_code_t code in a global table. + * \brief Registers a #m_process_code_t code in a global table. * * Registers a code function in a global table. - * This table is then used by ::MSG_launch_application. + * This table is then used by #MSG_launch_application. * \param name the reference name of the function. * \param code the function */ @@ -79,10 +85,10 @@ void MSG_function_register(const char *name,m_process_code_t code) } /** \ingroup msg_easier_life - * \brief Registers a ::m_process_t code in a global table. + * \brief Registers a #m_process_t code in a global table. * * Registers a code function in a global table. - * This table is then used by ::MSG_launch_application. + * This table is then used by #MSG_launch_application. * \param name the reference name of the function. */ m_process_code_t MSG_get_registered_function(const char *name) @@ -98,10 +104,10 @@ m_process_code_t MSG_get_registered_function(const char *name) /** \ingroup msg_easier_life * \brief Get the arguments of the current process. - * \deprecated{Not useful since m_process_code_t is int (*)(int argc, char *argv[])} + * \deprecated{Not useful since #m_process_code_t is int (*)(int argc, char *argv[])} * * This functions returns the values set for the current process - * using ::MSG_set_arguments or ::MSG_launch_application. + * using #MSG_set_arguments or #MSG_launch_application. * \param argc the number of arguments * \param argv the arguments table */