Code cleanup: Removed the code related to Save/Load window from buttons.c, transferred it to files.c. Files.h now only exposes this window's function.

Some code related to this window is still in loadsave.c (stuff for preview)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@695 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-03-26 19:41:33 +00:00
parent 994c1ce713
commit fa71dea18d
12 changed files with 1001 additions and 1058 deletions

9
io.h
View File

@@ -49,9 +49,18 @@ char * Position_dernier_slash(const char * Chaine);
#define SEPARATEUR_CHEMIN "/"
#endif
// Taille de fichier, en octets
int FileLength(const char *fname);
// Taille de fichier, en octets
int File_length_file(FILE * file);
// Détermine si un file passé en paramètre existe ou non dans le
// répertoire courant.
int Fichier_existe(char * fname);
// Détermine si un répertoire passé en paramètre existe ou non dans le
// répertoire courant.
int Repertoire_existe(char * Repertoire);
// Scans a directory, calls Callback for each file in it,
void for_each_file(const char * Nom_repertoire, void Callback(const char *));