* main.c: Remove old debugging code. Remove external function

declarations.
(menu_bar_event): Remove, it's unused.
* main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
* layout.c: Remove all external declarations.
This commit is contained in:
Pavel Roskin 2001-09-08 04:06:03 +00:00
parent bd5f3b08ae
commit 92565a30ba
4 changed files with 9 additions and 38 deletions

View File

@ -1,5 +1,11 @@
2001-09-07 Pavel Roskin <proski@gnu.org>
* main.c: Remove old debugging code. Remove external function
declarations.
(menu_bar_event): Remove, it's unused.
* main.h: Declare get_mc_lib_dir() and force_ugly_line_drawing.
* layout.c: Remove all external declarations.
* main.c (main): Call save_stop_handler() - it was ifdef'd out
by error.

View File

@ -554,15 +554,9 @@ static void check_split (void)
}
}
int panel_event (Gpm_Event *event, WPanel *panel);
int menu_bar_event (Gpm_Event *event, void *);
extern char *prompt;
#ifdef HAVE_SLANG
void init_curses ()
{
extern int force_ugly_line_drawing;
extern int SLtt_Has_Alt_Charset;
SLtt_get_terminfo ();
#ifndef HAS_ACS_AS_PCCHARS
if (force_ugly_line_drawing)

View File

@ -330,11 +330,6 @@ char cmd_buf [512];
/* Used during argument processing */
int finish_program = 0;
/* Forward declarations */
char *get_mc_lib_dir (void);
int panel_event (Gpm_Event *event, WPanel *panel);
int menu_bar_event (Gpm_Event *event, void *);
WPanel *
get_current_panel (void)
{
@ -1067,16 +1062,6 @@ load_prompt (int fd, void *unused)
}
#endif /* HAVE_SUBSHELL_SUPPORT */
/* The user pressed the enter key */
int
menu_bar_event (Gpm_Event *event, void *x)
{
if (event->type != GPM_DOWN)
return MOU_NORMAL;
return MOU_ENDLOOP;
}
/* Used to emulate Lynx's entering leaving a directory with the arrow keys */
int
maybe_cd (int char_code, int move_up_dir)
@ -1212,7 +1197,6 @@ static menu_entry FileMenu [] = {
{ ' ', N_("e&Xit F10"), 'X', (callfn) quit_cmd }
};
void external_panelize (void);
static menu_entry CmdMenu [] = {
/* I know, I'm lazy, but the tree widget when it's not running
* as a panel still has some problems, I have not yet finished
@ -2280,10 +2264,6 @@ init_sigchld (void)
#endif /* _OS_NT, __os2__, UNIX */
#if defined(HAVE_SLANG) && !defined(OS2_NT)
extern int SLtt_Try_Termcap;
#endif
static void
print_mc_usage (void)
{
@ -2585,8 +2565,7 @@ handle_args (int argc, char *argv [])
finish_program = 1;
probably_finish_program ();
}
} else
{
} else {
/* sets the current dir and the other dir */
if (tmp) {
char buffer[MC_MAXPATHLEN + 2];
@ -2672,17 +2651,7 @@ main (int argc, char *argv [])
bindtextdomain ("mc", LOCALEDIR);
textdomain ("mc");
mad_init ();
#if 0
/* This is here to debug startup stuff */
{
volatile int i = 0;
printf ("GMC IS WAITING %d\n", getpid ());
while (!i)
;
}
#endif
/* Initialize list of all user group for timur_clr_mode */
init_groups ();

View File

@ -79,6 +79,7 @@ extern int full_eight_bits;
extern int confirm_view_dir;
extern int fast_refresh;
extern int navigate_with_arrows;
extern int force_ugly_line_drawing;
extern int advanced_chfns;
extern int drop_menus;
extern int cd_symlinks;
@ -171,6 +172,7 @@ void edit_user_menu_cmd (void);
extern char *prompt;
extern char *mc_home;
char *get_mc_lib_dir (void);
int maybe_cd (int char_code, int move_up_dir);
void do_possible_cd (char *dir);