Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
702b09c8
Commit
702b09c8
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide a parameter that is always FALSE
parent
2cd8ca4e
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/files.c
+5
-15
src/files.c
src/proto.h
+0
-7
src/proto.h
with
5 additions
and
22 deletions
+5
-22
src/files.c
View file @
702b09c8
...
...
@@ -1058,18 +1058,12 @@ char *get_next_filename(const char *name, const char *suffix)
return
buf
;
}
/* Insert a file into a new buffer if the MULTIBUFFER flag is set, or
* into the current buffer if it isn't. If execute is TRUE, insert the
* output of an executed command instead of a file. */
void
do_insertfile
(
#ifndef NANO_TINY
bool
execute
#else
void
#endif
)
/* Insert a file into the current buffer, or into a new buffer when
* the MULTIBUFFER flag is set. */
void
do_insertfile
(
void
)
{
int
i
;
bool
execute
=
FALSE
;
const
char
*
msg
;
char
*
given
=
mallocstrcpy
(
NULL
,
""
);
/* 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"
));
else
#endif
do_insertfile
(
#ifndef NANO_TINY
FALSE
#endif
);
do_insertfile
();
}
/* When passed "[relative path]" or "[relative path][filename]" in
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
702b09c8
...
...
@@ -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
);
int
open_file
(
const
char
*
filename
,
bool
newfie
,
bool
quiet
,
FILE
**
f
);
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
);
char
*
get_full_path
(
const
char
*
origpath
);
char
*
check_writable_directory
(
const
char
*
path
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help