Added some missed translations in source code.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@755 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-04-21 17:48:26 +00:00
parent 284eda4ffe
commit 1eeed5aca4
18 changed files with 159 additions and 158 deletions

14
io.c
View File

@@ -264,21 +264,21 @@ void For_each_file(const char * directory_name, void Callback(const char *))
// Pour scan de répertoire
DIR* Repertoire_Courant; //Répertoire courant
struct dirent* entry; // Structure de lecture des éléments
char filename_complet[MAX_PATH_CHARACTERS];
char full_filename[MAX_PATH_CHARACTERS];
int filename_position;
strcpy(filename_complet, directory_name);
strcpy(full_filename, directory_name);
Repertoire_Courant=opendir(directory_name);
if(Repertoire_Courant == NULL) return; // Répertoire invalide ...
strcat(filename_complet, PATH_SEPARATOR);
filename_position = strlen(filename_complet);
strcat(full_filename, PATH_SEPARATOR);
filename_position = strlen(full_filename);
while ((entry=readdir(Repertoire_Courant)))
{
struct stat Infos_enreg;
strcpy(&filename_complet[filename_position], entry->d_name);
stat(filename_complet,&Infos_enreg);
strcpy(&full_filename[filename_position], entry->d_name);
stat(full_filename,&Infos_enreg);
if (S_ISREG(Infos_enreg.st_mode))
{
Callback(filename_complet);
Callback(full_filename);
}
}
closedir(Repertoire_Courant);