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
544d426d
Commit
544d426d
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: group some more of the empty functions together
parent
30a98466
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/global.c
+6
-0
src/global.c
src/nano.c
+0
-12
src/nano.c
src/proto.h
+2
-2
src/proto.h
with
8 additions
and
14 deletions
+8
-14
src/global.c
View file @
544d426d
...
...
@@ -290,6 +290,9 @@ void goto_dir_void(void)
}
#endif
#ifndef NANO_TINY
void
do_toggle_void
(
void
)
{
}
void
dos_format_void
(
void
)
{
}
...
...
@@ -317,6 +320,9 @@ void flip_newbuffer(void)
void
discard_buffer
(
void
)
{
}
void
do_cancel
(
void
)
{
}
/* Add a function to the function list. */
void
add_to_funcs
(
void
(
*
func
)(
void
),
int
menus
,
const
char
*
desc
,
const
char
*
help
,
...
...
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
544d426d
...
...
@@ -1087,12 +1087,6 @@ void close_and_go(void)
finish
();
}
/* Another placeholder for function mapping. */
void
do_cancel
(
void
)
{
;
}
/* Make a note that reading from stdin was concluded with ^C. */
RETSIGTYPE
make_a_note
(
int
signal
)
{
...
...
@@ -1401,12 +1395,6 @@ void do_toggle(int flag)
statusline
(
HUSH
,
"%s %s"
,
_
(
flagtostr
(
flag
)),
enabled
?
_
(
"enabled"
)
:
_
(
"disabled"
));
}
/* Bleh. */
void
do_toggle_void
(
void
)
{
;
}
#endif
/* !NANO_TINY */
/* Disable extended input and output processing in our terminal
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
544d426d
...
...
@@ -433,7 +433,6 @@ RETSIGTYPE handle_sigwinch(int signal);
void
regenerate_screen
(
void
);
void
allow_sigwinch
(
bool
allow
);
void
do_toggle
(
int
flag
);
void
do_toggle_void
(
void
);
void
enable_signals
(
void
);
#endif
void
disable_flow_control
(
void
);
...
...
@@ -690,7 +689,6 @@ void do_credits(void);
#endif
/* These are just name definitions. */
void
do_cancel
(
void
);
void
case_sens_void
(
void
);
void
regexp_void
(
void
);
void
backwards_void
(
void
);
...
...
@@ -701,6 +699,7 @@ void to_files_void(void);
void
goto_dir_void
(
void
);
#endif
#ifndef NANO_TINY
void
do_toggle_void
(
void
);
void
dos_format_void
(
void
);
void
mac_format_void
(
void
);
void
append_void
(
void
);
...
...
@@ -712,5 +711,6 @@ void flip_execute(void);
void
flip_newbuffer
(
void
);
#endif
void
discard_buffer
(
void
);
void
do_cancel
(
void
);
#endif
/* !PROTO_H */
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