mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-27 05:14:10 +03:00
tweaks: elide a parameter that is always FALSE
This commit is contained in:
parent
2cd8ca4eb1
commit
702b09c859
20
src/files.c
20
src/files.c
@ -1058,18 +1058,12 @@ char *get_next_filename(const char *name, const char *suffix)
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Insert a file into a new buffer if the MULTIBUFFER flag is set, or
|
/* Insert a file into the current buffer, or into a new buffer when
|
||||||
* into the current buffer if it isn't. If execute is TRUE, insert the
|
* the MULTIBUFFER flag is set. */
|
||||||
* output of an executed command instead of a file. */
|
void do_insertfile(void)
|
||||||
void do_insertfile(
|
|
||||||
#ifndef NANO_TINY
|
|
||||||
bool execute
|
|
||||||
#else
|
|
||||||
void
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
bool execute = FALSE;
|
||||||
const char *msg;
|
const char *msg;
|
||||||
char *given = mallocstrcpy(NULL, "");
|
char *given = mallocstrcpy(NULL, "");
|
||||||
/* The last answer the user typed at the statusbar prompt. */
|
/* The last answer the user typed at the statusbar prompt. */
|
||||||
@ -1345,11 +1339,7 @@ void do_insertfile_void(void)
|
|||||||
statusbar(_("Key invalid in non-multibuffer mode"));
|
statusbar(_("Key invalid in non-multibuffer mode"));
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
do_insertfile(
|
do_insertfile();
|
||||||
#ifndef NANO_TINY
|
|
||||||
FALSE
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When passed "[relative path]" or "[relative path][filename]" in
|
/* When passed "[relative path]" or "[relative path][filename]" in
|
||||||
|
@ -311,13 +311,6 @@ filestruct *read_line(char *buf, size_t buf_len, filestruct *prevnode);
|
|||||||
void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkwritable);
|
void read_file(FILE *f, int fd, const char *filename, bool undoable, bool checkwritable);
|
||||||
int open_file(const char *filename, bool newfie, bool quiet, FILE **f);
|
int open_file(const char *filename, bool newfie, bool quiet, FILE **f);
|
||||||
char *get_next_filename(const char *name, const char *suffix);
|
char *get_next_filename(const char *name, const char *suffix);
|
||||||
void do_insertfile(
|
|
||||||
#ifndef NANO_TINY
|
|
||||||
bool execute
|
|
||||||
#else
|
|
||||||
void
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
void do_insertfile_void(void);
|
void do_insertfile_void(void);
|
||||||
char *get_full_path(const char *origpath);
|
char *get_full_path(const char *origpath);
|
||||||
char *check_writable_directory(const char *path);
|
char *check_writable_directory(const char *path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user