- if (token == TOKEN_WORD) {
- surf_parse_deployment_line(&host_name,&argc,&argv);
- xbt_assert0(argc,"No function to execute");
-
- code = MSG_get_registered_function(argv[0]);
- xbt_assert1(code, "Unknown function %s",argv[0]);
-
- host = MSG_get_host_by_name(host_name);
- xbt_assert1(host, "Unknown host %s",host_name);
-
- process = MSG_process_create_with_arguments(argv[0], code, NULL, host,argc,argv);
- argc=-1;
- argv=NULL;
- xbt_free(host_name);
- }
- else {
- CRITICAL1("Parse error line %d\n", surf_line_pos);
- xbt_abort();
- }
- }
-
- close_section("DEPLOYMENT");
-}
-
-/** \ingroup msg_easier_life
- * \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.
- * \param name the reference name of the function.
- * \param code the function
- */
-void MSG_function_register(const char *name,m_process_code_t code)
-{
- MSG_global_init();