move rfc822 related types into lib-mime/mime-types.h out of mutt.h.
[apps/madmutt.git] / protos.h
index 4b18418..7129041 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -86,8 +86,6 @@ int mutt_cmp_body (const BODY * b1, const BODY * b2);
 
 time_t mutt_decrease_mtime (const char *, struct stat *);
 void mutt_set_mtime (const char*, const char*);
-time_t mutt_local_tz (time_t);
-time_t mutt_mktime (struct tm *, int);
 time_t mutt_parse_date (const char *, HEADER *);
 int is_from (const char *, char *, size_t, time_t *);
 
@@ -95,7 +93,7 @@ char *mutt_charset_hook (const char *);
 char *mutt_iconv_hook (const char *);
 char *mutt_expand_path (char *, size_t);
 char *_mutt_expand_path (char *, size_t, int);
-char *mutt_find_hook (unsigned long, const char *);
+char *mutt_find_hook (int, const char *);
 char *mutt_gecos_name (char *, size_t, struct passwd *);
 char *mutt_gen_msgid (void);
 char *mutt_get_body_charset (char *, size_t, BODY *);
@@ -134,8 +132,8 @@ void mutt_expand_fmt (char *, size_t, const char *, const char *);
 void mutt_expand_link (char *, const char *, const char *);
 void mutt_fix_reply_recipients (ENVELOPE * env);
 void mutt_folder_hook (char *);
-void mutt_format_string (char *, size_t, unsigned int, int, int, char, const char *,
-                         size_t, int);
+void mutt_format_string (char *, ssize_t, int, int, int, char, const char *,
+                         ssize_t, int);
 void mutt_format_s (char *, size_t, const char *, const char *);
 void mutt_format_s_tree (char *, size_t, const char *, const char *);
 void mutt_forward_intro (FILE * fp, HEADER * cur);
@@ -160,7 +158,6 @@ void mutt_message_to_7bit (BODY *, FILE *);
 
 #define mutt_mktemp(a) _mutt_mktemp (a, __FILE__, __LINE__)
 void _mutt_mktemp (char *, const char *, int);
-void mutt_normalize_time (struct tm *);
 void mutt_paddstr (int, const char *);
 void mutt_parse_mime_message (CONTEXT * ctx, HEADER *);
 void mutt_parse_part (FILE *, BODY *);
@@ -181,7 +178,7 @@ void mutt_select_fcc (char *, size_t, HEADER *);
 
 #define mutt_select_file(A,B,C) _mutt_select_file(A,B,C,NULL,NULL)
 void _mutt_select_file (char *, size_t, int, char ***, int *);
-void mutt_message_hook (CONTEXT *, HEADER *, unsigned long);
+void mutt_message_hook (CONTEXT *, HEADER *, int);
 void _mutt_set_flag (CONTEXT *, HEADER *, int, int, int);
 
 #define mutt_set_flag(a,b,c,d) _mutt_set_flag(a,b,c,d,1)
@@ -203,7 +200,6 @@ void mutt_write_address_list (address_t * adr, FILE * fp, int linelen,
 int mutt_addwch (wchar_t);
 int mutt_alloc_color (int fg, int bg);
 int mutt_any_key_to_continue (const char *);
-int mutt_builtin_editor (const char *, HEADER *, HEADER *);
 int mutt_can_decode (BODY *);
 int mutt_change_flag (HEADER *, int);
 int mutt_check_encoding (const char *);
@@ -305,17 +301,11 @@ int mutt_from_base64 (char *, const char *);
 /* utf8.c */
 int mutt_wctoutf8 (char *s, unsigned int c);
 
-#ifdef LOCALES_HACK
-#define IsPrint(c) (isprint((unsigned char)(c)) || \
-       ((unsigned char)(c) >= 0xa0))
-#define IsWPrint(wc) (iswprint(wc) || wc >= 0xa0)
-#else
 #define IsPrint(c) (isprint((unsigned char)(c)) || \
        (option (OPTLOCALES) ? 0 : \
        ((unsigned char)(c) >= 0xa0)))
 #define IsWPrint(wc) (iswprint(wc) || \
        (option (OPTLOCALES) ? 0 : (wc >= 0xa0)))
-#endif
 
 #define new_pattern() p_new(pattern_t, 1)
 
@@ -351,11 +341,6 @@ int getdnsdomainname (char *, size_t);
 #define SCO
 #endif
 
-/* SCO Unix uses chsize() instead of ftruncate() */
-#ifndef HAVE_FTRUNCATE
-#define ftruncate chsize
-#endif
-
 #ifndef HAVE_SNPRINTF
 extern int snprintf (char *, size_t, const char *, ...);
 #endif