#define CHECK_PRINTF(fmt, arg) __attribute__((format(printf, fmt, arg)))
#define ALLOC_SIZE(n) __attribute__((alloc_size(n)))
#define ALLOC_SIZE2(m, n) __attribute__((alloc_size(m, n)))
+#define CONST __attribute__((const))
#define NMH_UNUSED(i) (void) i
#else
#define NORETURN
#define CHECK_PRINTF(fmt, arg)
#define ALLOC_SIZE(n)
#define ALLOC_SIZE2(m, n)
+#define CONST
#define NMH_UNUSED(i) i
#endif
int params_external (CT, int);
int open7Bit (CT, char **);
void close_encoding (CT);
-char *ct_type_str (int);
-char *ct_subtype_str (int, int);
+char *ct_type_str (int) CONST;
+char *ct_subtype_str (int, int) CONST;
int ct_str_type (const char *);
int ct_str_subtype (int, const char *);
const struct str2init *get_ct_init (int);
-const char *ce_str (int);
+const char *ce_str (int) CONST;
const struct str2init *get_ce_method (const char *);
char *content_charset (CT);
void reverse_alternative_parts (CT);
*
* Returns the decoded value, -1 if the conversion failed.
*/
-int decode_qp(unsigned char byte1, unsigned char byte2);
+int decode_qp(unsigned char byte1, unsigned char byte2) CONST;
int default_done (int);