X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=main.c;h=4a735efc0656ee30fa93ed97ce8df51deed89842;hp=5b1c674ad3e54dba454c09f4ea69833420daafba;hb=97677c08933e16e25ecb3c12473ef1efdab7962b;hpb=daf6df95bfcc7efc888b488a825e467268f20d3c diff --git a/main.c b/main.c index 5b1c674..4a735ef 100644 --- a/main.c +++ b/main.c @@ -19,32 +19,34 @@ # include "config.h" #endif +#include +#include +#include +#include +#include +#include +#include + #include #include #include #include +#include + +#include + +#include #include "mutt.h" #include "mx.h" #include "buffy.h" #include "sort.h" #include -#include "mutt_curses.h" #include "keymap.h" #include "url.h" #include "mutt_idna.h" #include "xterm.h" -#include "lib/debug.h" - -#include -#include -#include -#include -#include -#include -#include - #ifdef HAVE_GETOPT_H #include #else @@ -86,11 +88,6 @@ extern int optind; #include #endif -static const char *ReachingUs = N_("\ -To contact the developers, please mail to .\n\ -To visit the Madmutt homepage go to http://www.muttng.org.\n\ -To report a bug, please use the fleang(1) utility.\n"); - static const char *Notice = N_("\ Copyright (C) 1996-2002 Michael R. Elkins and others.\n\ Madmutt comes with ABSOLUTELY NO WARRANTY; for details type `madmutt -vv'.\n\ @@ -335,11 +332,6 @@ static void show_version (void) "+HAVE_REGCOMP " #else "-HAVE_REGCOMP " -#endif -#ifdef USE_GNU_REGEX - "+USE_GNU_REGEX " -#else - "-USE_GNU_REGEX " #endif "\n " #ifdef HAVE_COLOR @@ -459,8 +451,6 @@ static void show_version (void) puts (" -MIXMASTER\n"); #endif - puts (_(ReachingUs)); - puts (_("MadMutt is based on Madmutt wich was based on Mutt before\n")); exit (0); @@ -477,17 +467,14 @@ static void start_curses (void) #else /* should come before initscr() so that ncurses 4.2 doesn't try to install its own SIGWINCH handler */ - mutt_signal_init (); + mutt_signal_initialize (); #endif if (initscr () == NULL) { puts _("Error initializing terminal."); exit (1); } -#if 1 /* USE_SLANG_CURSES - commenting out suggested in #455. */ - /* slang requires the signal handlers to be set after initializing */ - mutt_signal_init (); -#endif + mutt_signal_initialize (); ci_start_color (); keypad (stdscr, TRUE); cbreak (); @@ -552,8 +539,8 @@ int main (int argc, char **argv) SRAND (time (NULL)); umask (077); - p_clear(Options, sizeof(Options)); - p_clear(QuadOptions, sizeof(QuadOptions)); + p_clear(Options, countof(Options)); + p_clear(QuadOptions, countof(QuadOptions)); #ifdef USE_NNTP while ((i = @@ -700,7 +687,6 @@ int main (int argc, char **argv) puts (_(Copyright_GPL_1)); puts (_(Copyright_GPL_2)); puts (_(Copyright_GPL_3)); - puts (_(ReachingUs)); exit (0); }