X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mbyte.h;h=b6f127432f0631c79660fe8a61189cce4aaa2e8a;hp=797a2da7f8cb7107fdee7f11f75ffd35b9d202fe;hb=df4b0c9fbf972b2f70daf954f7cadd1723e345fa;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/mbyte.h b/mbyte.h index 797a2da..b6f1274 100644 --- a/mbyte.h +++ b/mbyte.h @@ -1,7 +1,16 @@ +/* + * Copyright notice from original mutt: + * [none] + * + * 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 _MBYTE_H # define _MBYTE_H -# include "config.h" +#include "config.h" # ifdef HAVE_WC_FUNCS # ifdef HAVE_WCHAR_H @@ -12,21 +21,21 @@ # endif # endif -# ifndef HAVE_WC_FUNCS -size_t wcrtomb (char *s, wchar_t wc, mbstate_t *ps); -size_t mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps); +#ifndef HAVE_WC_FUNCS +size_t wcrtomb (char *s, wchar_t wc, mbstate_t * ps); +size_t mbrtowc (wchar_t * pwc, const char *s, size_t n, mbstate_t * ps); int iswprint (wint_t wc); int iswspace (wint_t wc); int iswalnum (wint_t wc); wint_t towupper (wint_t wc); wint_t towlower (wint_t wc); int wcwidth (wchar_t wc); -# endif /* !HAVE_WC_FUNCS */ +#endif /* !HAVE_WC_FUNCS */ void mutt_set_charset (char *charset); extern int Charset_is_utf8; -size_t utf8rtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *_ps); +size_t utf8rtowc (wchar_t * pwc, const char *s, size_t n, mbstate_t * _ps); wchar_t replacement_char (void); #endif /* _MBYTE_H */