summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ab158df)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@743
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
maxmin_system = lmm_system_new();
}
maxmin_system = lmm_system_new();
}
+static char* path_name = NULL;
FILE *surf_fopen(const char *name, const char *mode)
{
int i;
char* path = NULL;
FILE *file = NULL;
FILE *surf_fopen(const char *name, const char *mode)
{
int i;
char* path = NULL;
FILE *file = NULL;
- static char* path_name = NULL;
xbt_assert0(surf_path,"surf_init has to be called before using surf_fopen");
if(!path_name) path_name=xbt_new0(char,strlen(name)+1);
xbt_assert0(surf_path,"surf_init has to be called before using surf_fopen");
if(!path_name) path_name=xbt_new0(char,strlen(name)+1);
if (resource_list)
xbt_dynar_free(&resource_list);
if (resource_list)
xbt_dynar_free(&resource_list);
+ if(surf_path)
+ xbt_dynar_free(&surf_path);
+
tmgr_finalize();
surf_parse_lex_destroy();
tmgr_finalize();
surf_parse_lex_destroy();
+ if(path_name) {
+ xbt_free(path_name);
+ path_name = NULL;
+ }
}
double surf_solve(void)
}
double surf_solve(void)
}
void surf_parse_close(void) {
}
void surf_parse_close(void) {
+ if(surf_input_buffer_stack)
+ xbt_dynar_free(&surf_input_buffer_stack);
+ if(surf_file_to_parse_stack)
+ xbt_dynar_free(&surf_file_to_parse_stack);
+
surf_parse__delete_buffer(surf_input_buffer);
fclose(surf_file_to_parse);
}
surf_parse__delete_buffer(surf_input_buffer);
fclose(surf_file_to_parse);
}