]> diplodocus.org Git - nmh/blob - h/aliasbr.h
new.c: Order two return statements to match comment.
[nmh] / h / aliasbr.h
1 /* aliasbr.h -- definitions for the aliasing system
2 *
3 */
4
5 extern char *AliasFile; /* mh-alias(5) */
6
7 struct aka {
8 char *ak_name; /* name to match against */
9 struct adr *ak_addr; /* list of addresses that it maps to */
10 struct aka *ak_next; /* next aka in list */
11 bool ak_visible; /* should be visible in headers */
12 };
13
14 struct adr {
15 char *ad_text; /* text of this address in list */
16 struct adr *ad_next; /* next adr in list */
17 char ad_local; /* text is local (check for expansion) */
18 };
19
20 /*
21 * prototypes
22 */
23 int alias (char *);
24 int akvisible (void) PURE;
25 char *akresult (struct aka *);
26 char *akvalue (char *);
27 char *akerror (int);
28
29 /* codes returned by alias() */
30
31 #define AK_OK 0 /* file parsed OK */
32 #define AK_NOFILE 1 /* couldn't read file */
33 #define AK_ERROR 2 /* error parsing file */
34 #define AK_LIMIT 3 /* memory limit exceeded */