mirror of https://github.com/MidnightCommander/mc
Renamed do_find() to find_file() and vice versa.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
835f12eb59
commit
b13b031434
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
#include "fileopctx.h"
|
#include "fileopctx.h"
|
||||||
#include "file.h" /* file operation routines */
|
#include "file.h" /* file operation routines */
|
||||||
#include "find.h" /* do_find() */
|
#include "find.h" /* find_file() */
|
||||||
#include "hotlist.h" /* hotlist_show() */
|
#include "hotlist.h" /* hotlist_show() */
|
||||||
#include "tree.h" /* tree_chdir() */
|
#include "tree.h" /* tree_chdir() */
|
||||||
#include "midnight.h" /* change_panel() */
|
#include "midnight.h" /* change_panel() */
|
||||||
|
@ -968,7 +968,7 @@ delete_cmd_local (void)
|
||||||
void
|
void
|
||||||
find_cmd (void)
|
find_cmd (void)
|
||||||
{
|
{
|
||||||
do_find ();
|
find_file ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
|
@ -1566,8 +1566,8 @@ kill_gui (void)
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
find_file (const char *start_dir, ssize_t start_dir_len, const char *ignore_dirs,
|
do_find (const char *start_dir, ssize_t start_dir_len, const char *ignore_dirs,
|
||||||
const char *pattern, const char *content, char **dirname, char **filename)
|
const char *pattern, const char *content, char **dirname, char **filename)
|
||||||
{
|
{
|
||||||
int return_value = 0;
|
int return_value = 0;
|
||||||
char *dir_tmp = NULL, *file_tmp = NULL;
|
char *dir_tmp = NULL, *file_tmp = NULL;
|
||||||
|
@ -1699,7 +1699,7 @@ find_file (const char *start_dir, ssize_t start_dir_len, const char *ignore_dirs
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
void
|
void
|
||||||
do_find (void)
|
find_file (void)
|
||||||
{
|
{
|
||||||
char *start_dir = NULL, *pattern = NULL, *content = NULL, *ignore_dirs = NULL;
|
char *start_dir = NULL, *pattern = NULL, *content = NULL, *ignore_dirs = NULL;
|
||||||
ssize_t start_dir_len;
|
ssize_t start_dir_len;
|
||||||
|
@ -1714,7 +1714,7 @@ do_find (void)
|
||||||
|
|
||||||
dirname = filename = NULL;
|
dirname = filename = NULL;
|
||||||
is_start = FALSE;
|
is_start = FALSE;
|
||||||
v = find_file (start_dir, start_dir_len, ignore_dirs, pattern, content, &dirname, &filename);
|
v = do_find (start_dir, start_dir_len, ignore_dirs, pattern, content, &dirname, &filename);
|
||||||
g_free (ignore_dirs);
|
g_free (ignore_dirs);
|
||||||
g_free (pattern);
|
g_free (pattern);
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
/*** declarations of public functions ************************************************************/
|
/*** declarations of public functions ************************************************************/
|
||||||
|
|
||||||
void do_find (void);
|
void find_file (void);
|
||||||
|
|
||||||
/*** inline functions ****************************************************************************/
|
/*** inline functions ****************************************************************************/
|
||||||
#endif /* MC__FIND_H */
|
#endif /* MC__FIND_H */
|
||||||
|
|
Loading…
Reference in New Issue