- if (token == TOKEN_END_SECTION)
- break;
- if (token == TOKEN_NEWLINE)
- continue;
-
- 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_name, "Unknown host %s",host_name);
-
- process = MSG_process_create(argv[0], code, NULL, host);
- MSG_set_arguments(process, argc, argv);
- xbt_free(host_name);
- }
- else {
- CRITICAL1("Parse error line %d\n", surf_line_pos);
- xbt_abort();
- }
- }
-
- close_section("CPU");