Skip to content
GitLab
Menu
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
7287300e
Commit
7287300e
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: compile two parameters unconditionally
parent
ffeb0f9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cut.c
+3
-9
src/cut.c
src/proto.h
+1
-7
src/proto.h
with
4 additions
and
16 deletions
+4
-16
src/cut.c
View file @
7287300e
...
...
@@ -115,13 +115,7 @@ void cut_to_eof(void)
* copy_text is TRUE, copy the text back into the filestruct afterward.
* If cut_till_eof is TRUE, move all text from the current cursor
* position to the end of the file into the cutbuffer. */
void
do_cut_text
(
#ifndef NANO_TINY
bool
copy_text
,
bool
cut_till_eof
#else
void
#endif
)
void
do_cut_text
(
bool
copy_text
,
bool
cut_till_eof
)
{
#ifndef NANO_TINY
filestruct
*
cb_save
=
NULL
;
...
...
@@ -221,10 +215,10 @@ void do_cut_text_void(void)
{
#ifndef NANO_TINY
add_undo
(
CUT
);
#endif
do_cut_text
(
FALSE
,
FALSE
);
#ifndef NANO_TINY
update_undo
(
CUT
);
#else
do_cut_text
();
#endif
}
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
7287300e
...
...
@@ -280,13 +280,7 @@ void cut_marked(void);
void
cut_to_eol
(
void
);
void
cut_to_eof
(
void
);
#endif
void
do_cut_text
(
#ifndef NANO_TINY
bool
copy_text
,
bool
cut_till_eof
#else
void
#endif
);
void
do_cut_text
(
bool
copy_text
,
bool
cut_till_eof
);
void
do_cut_text_void
(
void
);
#ifndef NANO_TINY
void
do_copy_text
(
void
);
...
...
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