return ff->tagged - ot;
}
-void _mutt_select_file (char *f, ssize_t flen, int flags, char ***files,
- int *numfiles)
+void mutt_select_file (char *f, ssize_t flen, int flags, char ***files,
+ int *numfiles)
{
char buf[_POSIX_PATH_MAX];
char prefix[_POSIX_PATH_MAX] = "";
else if (ch.ch == '?') {
mutt_refresh ();
buf[0] = 0;
- _mutt_select_file (buf, blen, M_SEL_FOLDER | (multiple ? M_SEL_MULTI : 0),
- files, numfiles);
+ mutt_select_file (buf, blen, M_SEL_FOLDER | (multiple ? M_SEL_MULTI : 0),
+ files, numfiles);
*redraw = REDRAW_FULL;
}
else {
if (tempbuf && templen == state->lastchar - i &&
!memcmp (tempbuf, state->wbuf + i,
(state->lastchar - i) * sizeof (wchar_t))) {
- mutt_select_file (buf, buflen,
- (flags & M_EFILE) ? M_SEL_FOLDER : 0);
+ mutt_select_file(buf, buflen, flags & M_EFILE ? M_SEL_FOLDER : 0,
+ NULL, NULL);
set_option (OPTNEEDREDRAW);
if (*buf)
replace_part (state, i, buf);
|| (tempbuf && templen == state->lastchar
&& !memcmp (tempbuf, state->wbuf,
state->lastchar * sizeof (wchar_t)))) {
- _mutt_select_file (buf, buflen,
- ((flags & M_EFILE) ? M_SEL_FOLDER : 0) |
- (multiple ? M_SEL_MULTI : 0), files, numfiles);
+ mutt_select_file(buf, buflen,
+ ((flags & M_EFILE) ? M_SEL_FOLDER : 0) |
+ (multiple ? M_SEL_MULTI : 0), files, numfiles);
set_option (OPTNEEDREDRAW);
if (*buf) {
mutt_pretty_mailbox (buf);
exit (1);
}
folder[0] = 0;
- mutt_select_file (folder, sizeof (folder), M_SEL_FOLDER | M_SEL_BUFFY);
+ mutt_select_file(folder, sizeof(folder), M_SEL_FOLDER | M_SEL_BUFFY,
+ NULL, NULL);
if (!folder[0]) {
mutt_endwin (NULL);
exit (0);
#define SENDRESEND (1<<6)
#define SENDNEWS (1<<7)
-/* flags to _mutt_select_file() */
+/* flags to mutt_select_file() */
#define M_SEL_BUFFY (1<<0)
#define M_SEL_MULTI (1<<1)
#define M_SEL_FOLDER (1<<2)
void mutt_save_path (char *s, ssize_t l, address_t * a);
void mutt_select_fcc (char *, ssize_t, HEADER *);
-#define mutt_select_file(A,B,C) _mutt_select_file(A,B,C,NULL,NULL)
-void _mutt_select_file (char *, ssize_t, int, char ***, int *);
+void mutt_select_file (char *, ssize_t, int, char ***, int *);
void mutt_message_hook (CONTEXT *, HEADER *, int);
void _mutt_set_flag (CONTEXT *, HEADER *, int, int, int);