diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-11-19 23:45:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-11-19 23:45:18 (GMT) |
commit | fc363c31cc0a24e026bac74b5f62f33f44bf0143 (patch) | |
tree | c8944e1e6b7d2b9faa2658df8cf785648b06232d /src/project.c | |
parent | 783e5e1977c1e4dadf938befa9fce9a311079413 (diff) |
Better supervised the closing of the editor.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@138 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/project.c')
-rw-r--r-- | src/project.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/project.c b/src/project.c index 1366abf..5bb7b56 100644 --- a/src/project.c +++ b/src/project.c @@ -435,6 +435,17 @@ void close_openida_project(openida_project *project) size_t max; /* Nombre de binaires chargés */ size_t i; /* Boucle de parcours */ + + + + /* TODO : sauvegarde automatique */ + + + + + /* Fermeture propre */ + + max = project->binaries_count; for (i = 0; i < max; i++) @@ -453,24 +464,23 @@ void close_openida_project(openida_project *project) * * * Paramètres : project = project à consulter. * * * -* Description : Indique si un projet a tous les éléments pour être sauvé. * +* Description : Indique le chemin du fichier destiné à la sauvegarde. * * * -* Retour : true si aucun nom de fichier n'a à être fourni. * +* Retour : Chemin de fichier pour l'enregistrement ou NULL si indéfini. * * * * Remarques : - * * * ******************************************************************************/ -bool has_storing_filename(const openida_project *project) +const char *g_openida_project_get_filename(const openida_project *project) { - return (project->filename != NULL); + return project->filename; } - /****************************************************************************** * * * Paramètres : project = project à effacer de la mémoire. * |