bin_PROGRAMS = madmutt madmutt_dotlock smime_keysng
madmutt_SOURCES = $(BUILT_SOURCES) \
alias.c attach.c base64.c browser.c buffy.c charset.c commands.c \
- compose.c copy.c crypt.c editmsg.c init.c keymap.c lib.c \
+ compose.c copy.c crypt.c editmsg.c init.c keymap.c \
flags.c from.c handler.c headers.c help.c hook.c \
main.c muttlib.c mutt_idna.c pager.c pattern.c postpone.c recvattach.c recvcmd.c \
score.c send.c sendlib.c sort.c state.c thread.c account.c remailer.c
recvattach.h handler.h thread.h globals.h init.h keymap.h \
mime.h mutt.h mutt_sasl.h pager.h protos.h \
sort.h autogen.sh remailer.c remailer.h browser.h state.h \
- lib.h smime_keys.pl Madmuttrc.head Madmuttrc \
+ smime_keys.pl Madmuttrc.head Madmuttrc \
makedoc.c stamp-doc-rc README.SSL depcomp mutt_idna.h mutt_libesmtp.h
madmutt_dotlock_SOURCES = dotlock.c
#include <lib-mx/mx.h>
#include "crypt.h"
-#include "lib.h"
#include "alias.h"
#include "handler.h"
#include "copy.h"
#include "crypt.h"
#include "state.h"
#include "attach.h"
-#include "lib.h"
-
typedef int handler_f (BODY *, STATE *);
typedef handler_f *handler_t;
#define _MUTT_SOCKET_H_ 1
#include "account.h"
-#include "lib.h"
+#include "mutt.h"
/* logging levels */
#define M_SOCK_LOG_CMD 2
+++ /dev/null
-/*
- * Copyright notice from original mutt:
- * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
- * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
- *
- * This file is part of mutt-ng, see http://www.muttng.org/.
- * It's licensed under the GNU General Public License,
- * please see the file GPL in the top level source directory.
- */
-
-#include <lib-lib/lib-lib.h>
-
-#include "lib.h"
-
-void mutt_nocurses_error (const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- vfprintf(stderr, fmt, ap);
- va_end(ap);
- fputc('\n', stderr);
-}
+++ /dev/null
-/*
- * Copyright notice from original mutt:
- * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
- * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
- *
- * This file is part of mutt-ng, see http://www.muttng.org/.
- * It's licensed under the GNU General Public License,
- * please see the file GPL in the top level source directory.
- */
-
-#ifndef _LIB_H
-# define _LIB_H
-
-void mutt_exit (int);
-void mutt_nocurses_error(const char *, ...)
- __attribute__((format(printf, 1, 2)));
-
-#endif
#define M_NEWS (1<<5) /* -g and -G */
#endif
+__attribute__((format(printf, 1, 0)))
+static void mutt_nocurses_error (const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+ fputc('\n', stderr);
+}
+
int main (int argc, char **argv)
{
char folder[_POSIX_PATH_MAX] = "";
setlocale (LC_CTYPE, "");
- mutt_error = mutt_nocurses_error;
- mutt_message = mutt_nocurses_error;
+ mutt_error = mutt_message = mutt_nocurses_error;
srand48 (time (NULL));
umask (077);
/* use the m_temp{fd,file} functions instead */
void mutt_adv_mktemp (const char*, char*, ssize_t) __attribute__((deprecated));
void mutt_mktemp (char *) __attribute__((deprecated));
+void mutt_exit (int);
#define MoreArgs(p) (*p->dptr && *p->dptr != ';' && *p->dptr != '#')