mblaze/blaze822_priv.h

16 lines
407 B
C
Raw Normal View History

2016-07-13 13:01:09 +00:00
struct message {
char *msg;
char *end;
char *body;
char *bodyend;
2016-07-13 13:52:39 +00:00
char *bodychunk;
2016-07-13 13:01:09 +00:00
};
2016-07-13 13:52:39 +00:00
2016-07-13 13:56:50 +00:00
// WSP = SP / HTAB
2016-07-13 13:52:39 +00:00
#define iswsp(c) (((c) == ' ' || (c) == '\t'))
2016-07-13 13:56:50 +00:00
2016-07-13 14:00:20 +00:00
#define isfws(c) (((unsigned char)(c) == ' ' || (unsigned char)(c) == '\t' || (unsigned char)(c) == '\n' || (unsigned char)(c) == '\r'))
2016-07-13 13:56:50 +00:00
// ASCII lowercase without alpha check (wrong for "@[\]^_")
#define lc(c) ((c) | 0x20)