fix regression. make the hook types be ints.
[apps/madmutt.git] / protos.h
index 7381c01..d4b6bea 100644 (file)
--- a/protos.h
+++ b/protos.h
@@ -134,8 +134,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, 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);
@@ -305,17 +305,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 +345,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