mirror of https://github.com/MidnightCommander/mc
* 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:
parent
bd5f3b08ae
commit
92565a30ba
|
@ -1,5 +1,11 @@
|
||||||
2001-09-07 Pavel Roskin <proski@gnu.org>
|
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
|
* main.c (main): Call save_stop_handler() - it was ifdef'd out
|
||||||
by error.
|
by error.
|
||||||
|
|
||||||
|
|
|
@ -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
|
#ifdef HAVE_SLANG
|
||||||
void init_curses ()
|
void init_curses ()
|
||||||
{
|
{
|
||||||
extern int force_ugly_line_drawing;
|
|
||||||
extern int SLtt_Has_Alt_Charset;
|
|
||||||
SLtt_get_terminfo ();
|
SLtt_get_terminfo ();
|
||||||
#ifndef HAS_ACS_AS_PCCHARS
|
#ifndef HAS_ACS_AS_PCCHARS
|
||||||
if (force_ugly_line_drawing)
|
if (force_ugly_line_drawing)
|
||||||
|
|
33
src/main.c
33
src/main.c
|
@ -330,11 +330,6 @@ char cmd_buf [512];
|
||||||
/* Used during argument processing */
|
/* Used during argument processing */
|
||||||
int finish_program = 0;
|
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 *
|
WPanel *
|
||||||
get_current_panel (void)
|
get_current_panel (void)
|
||||||
{
|
{
|
||||||
|
@ -1067,16 +1062,6 @@ load_prompt (int fd, void *unused)
|
||||||
}
|
}
|
||||||
#endif /* HAVE_SUBSHELL_SUPPORT */
|
#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 */
|
/* Used to emulate Lynx's entering leaving a directory with the arrow keys */
|
||||||
int
|
int
|
||||||
maybe_cd (int char_code, int move_up_dir)
|
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 }
|
{ ' ', N_("e&Xit F10"), 'X', (callfn) quit_cmd }
|
||||||
};
|
};
|
||||||
|
|
||||||
void external_panelize (void);
|
|
||||||
static menu_entry CmdMenu [] = {
|
static menu_entry CmdMenu [] = {
|
||||||
/* I know, I'm lazy, but the tree widget when it's not running
|
/* 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
|
* as a panel still has some problems, I have not yet finished
|
||||||
|
@ -2280,10 +2264,6 @@ init_sigchld (void)
|
||||||
|
|
||||||
#endif /* _OS_NT, __os2__, UNIX */
|
#endif /* _OS_NT, __os2__, UNIX */
|
||||||
|
|
||||||
#if defined(HAVE_SLANG) && !defined(OS2_NT)
|
|
||||||
extern int SLtt_Try_Termcap;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_mc_usage (void)
|
print_mc_usage (void)
|
||||||
{
|
{
|
||||||
|
@ -2585,8 +2565,7 @@ handle_args (int argc, char *argv [])
|
||||||
finish_program = 1;
|
finish_program = 1;
|
||||||
probably_finish_program ();
|
probably_finish_program ();
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
{
|
|
||||||
/* sets the current dir and the other dir */
|
/* sets the current dir and the other dir */
|
||||||
if (tmp) {
|
if (tmp) {
|
||||||
char buffer[MC_MAXPATHLEN + 2];
|
char buffer[MC_MAXPATHLEN + 2];
|
||||||
|
@ -2672,17 +2651,7 @@ main (int argc, char *argv [])
|
||||||
bindtextdomain ("mc", LOCALEDIR);
|
bindtextdomain ("mc", LOCALEDIR);
|
||||||
textdomain ("mc");
|
textdomain ("mc");
|
||||||
mad_init ();
|
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 */
|
/* Initialize list of all user group for timur_clr_mode */
|
||||||
init_groups ();
|
init_groups ();
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ extern int full_eight_bits;
|
||||||
extern int confirm_view_dir;
|
extern int confirm_view_dir;
|
||||||
extern int fast_refresh;
|
extern int fast_refresh;
|
||||||
extern int navigate_with_arrows;
|
extern int navigate_with_arrows;
|
||||||
|
extern int force_ugly_line_drawing;
|
||||||
extern int advanced_chfns;
|
extern int advanced_chfns;
|
||||||
extern int drop_menus;
|
extern int drop_menus;
|
||||||
extern int cd_symlinks;
|
extern int cd_symlinks;
|
||||||
|
@ -171,6 +172,7 @@ void edit_user_menu_cmd (void);
|
||||||
|
|
||||||
extern char *prompt;
|
extern char *prompt;
|
||||||
extern char *mc_home;
|
extern char *mc_home;
|
||||||
|
char *get_mc_lib_dir (void);
|
||||||
|
|
||||||
int maybe_cd (int char_code, int move_up_dir);
|
int maybe_cd (int char_code, int move_up_dir);
|
||||||
void do_possible_cd (char *dir);
|
void do_possible_cd (char *dir);
|
||||||
|
|
Loading…
Reference in New Issue