* file.c (is_wildcarded): Move ...
* filegui.c: ... here. Make static.
Этот коммит содержится в:
родитель
9234b4d8ad
Коммит
0d0ede9ec4
@ -1,3 +1,8 @@
|
||||
2002-12-07 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* file.c (is_wildcarded): Move ...
|
||||
* filegui.c: ... here. Make static.
|
||||
|
||||
2002-12-01 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* cmd.c (do_edit_at_line): Set line to 0 to allow the editor to
|
||||
|
12
src/file.c
12
src/file.c
@ -1581,18 +1581,6 @@ panel_get_file (WPanel *panel, struct stat *stat_buf)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
is_wildcarded (char *p)
|
||||
{
|
||||
for (; *p; p++) {
|
||||
if (*p == '*')
|
||||
return 1;
|
||||
else if (*p == '\\' && p[1] >= '1' && p[1] <= '9')
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* compute_dir_size:
|
||||
*
|
||||
|
@ -39,7 +39,6 @@ extern int file_op_compute_totals;
|
||||
|
||||
/* Query routines */
|
||||
|
||||
int is_wildcarded (char *p);
|
||||
void compute_dir_size (char *dirname, off_t *ret_marked, double *ret_total);
|
||||
|
||||
#endif /* !__FILE_H */
|
||||
|
@ -82,7 +82,6 @@
|
||||
#include "main.h" /* the_hint */
|
||||
#include "wtools.h" /* QuickDialog */
|
||||
#include "panel.h" /* cpanel */
|
||||
#include "file.h" /* is_wildcarded */
|
||||
#include "filegui.h"
|
||||
#include "fileopctx.h" /* FILE_CONT */
|
||||
#include "key.h" /* get_event */
|
||||
@ -788,6 +787,18 @@ static QuickWidget fmd_widgets[] = {
|
||||
{0}
|
||||
};
|
||||
|
||||
static int
|
||||
is_wildcarded (char *p)
|
||||
{
|
||||
for (; *p; p++) {
|
||||
if (*p == '*')
|
||||
return 1;
|
||||
else if (*p == '\\' && p[1] >= '1' && p[1] <= '9')
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
fmd_init_i18n (int force)
|
||||
{
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user