* color.c (dealloc_color_pairs): Rename to ...

(done_colors): ... this.
* layout.c (done_screen): Call done_colors() here ...
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
specific.
This commit is contained in:
Pavel Roskin 2003-10-24 20:55:23 +00:00
parent b6d7cae6d2
commit 714f3ee8a7
5 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,11 @@
2003-10-24 Pavel Roskin <proski@gnu.org>
* color.c (dealloc_color_pairs): Rename to ...
(done_colors): ... this.
* layout.c (done_screen): Call done_colors() here ...
* slint.c (slang_shutdown): ... but not here, as it's not S-Lang
specific.
* cmd.c: Remove source routing code.
* main.c: Likewise.

View File

@ -445,7 +445,7 @@ try_alloc_color_pair (char *fg, char *bg)
#endif /* !HAVE_SLANG */
void
dealloc_color_pairs (void)
done_colors (void)
{
struct colors_avail *p, *next;

View File

@ -1,8 +1,6 @@
#ifndef __COLOR_H
#define __COLOR_H
void init_colors (void);
extern int use_colors;
extern int disable_colors;
@ -87,8 +85,9 @@ extern int alarm_colors[4];
# define CTYPE int
#endif
void init_colors (void);
void done_colors (void);
void mc_init_pair (int index, CTYPE foreground, CTYPE background);
int try_alloc_color_pair (char *fg, char *bg);
void dealloc_color_pairs (void);
#endif /* __COLOR_H */

View File

@ -624,6 +624,7 @@ done_screen ()
reset_shell_mode ();
mc_noraw_mode ();
keypad (stdscr, FALSE);
done_colors ();
}
static void

View File

@ -251,7 +251,6 @@ slang_shutdown (void)
slang_shell_mode ();
do_exit_ca_mode ();
SLang_reset_tty ();
dealloc_color_pairs ();
/* Load the op capability to reset the colors to those that were
* active when the program was started up