]> diplodocus.org Git - nmh/blob - h/scansbr.h
new.c: Order two return statements to match comment.
[nmh] / h / scansbr.h
1 /* scansbr.h -- definitions for scan()
2 */
3
4 #define SCNENC 2 /* message just fine, but encrypted(!!) */
5 #define SCNMSG 1 /* message just fine */
6 #define SCNEOF 0 /* empty message */
7 #define SCNERR (-1) /* error message */
8 #define SCNNUM (-2) /* number out of range */
9 #define SCNFAT (-3) /* fatal error */
10
11 /*
12 * default format for `scan' and `inc'
13 */
14
15 #ifndef UK
16 #define FORMAT \
17 "%4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
18 %02(mon{date})/%02(mday{date})%<{date} %|*%>\
19 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
20 %<(zero)%17(decode(friendly{from}))%> \
21 %(decode{subject})%<{body}<<%{body}>>%>\n"
22 #else
23 #define FORMAT \
24 "%4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
25 %02(mday{date})/%02(mon{date})%<{date} %|*%>\
26 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
27 %<(zero)%17(decode(friendly{from}))%> \
28 %(decode{subject})%<{body}<<%{body}>>%>\n"
29 #endif
30
31 #define WIDTH 78
32
33 /*
34 * prototypes
35 */
36 int scan (FILE *, int, int, char *, int, int, int, char *, long, int,
37 charstring_t *);