diff options
Diffstat (limited to 'rfc822.c')
-rw-r--r-- | rfc822.c | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -19,14 +19,17 @@ #include <stdlib.h> -#ifndef TRUE -#define TRUE 1 -#define FALSE 0 -#endif - #define HEADER_END(p) ((p)[0] == '\n' && ((p)[1] != ' ' && (p)[1] != '\t')) +#define START_HDR 0 /**< before header colon */ +#define SKIP_JUNK 1 /**< skip whitespace, \n, and junk */ +#define BARE_ADDRESS 2 /**< collecting address without delimiters */ +#define INSIDE_DQUOTE 3 /**< inside double quotes */ +#define INSIDE_PARENS 4 /**< inside parentheses */ +#define INSIDE_BRACKETS 5 /**< inside bracketed address */ +#define ENDIT_ALL 6 /**< after last address */ + /** * Parse addresses in succession out of a specified RFC822 header. * @@ -40,14 +43,6 @@ char *next_address(const char *hdr) static int state, oldstate; int parendepth = 0; -#define START_HDR 0 /* before header colon */ -#define SKIP_JUNK 1 /* skip whitespace, \n, and junk */ -#define BARE_ADDRESS 2 /* collecting address without delimiters */ -#define INSIDE_DQUOTE 3 /* inside double quotes */ -#define INSIDE_PARENS 4 /* inside parentheses */ -#define INSIDE_BRACKETS 5 /* inside bracketed address */ -#define ENDIT_ALL 6 /* after last address */ - #define NEXTTP() ((tp < sizeof(address)-1) ? tp++ : tp) if (hdr) |