Postfix3.3.1
mac_expand.h
[詳解]
1 #ifndef _MAC_EXPAND_H_INCLUDED_
2 #define _MAC_EXPAND_H_INCLUDED_
3 
4 /*++
5 /* NAME
6 /* mac_expand 3h
7 /* SUMMARY
8 /* expand macro references in string
9 /* SYNOPSIS
10 /* #include <mac_expand.h>
11 /* DESCRIPTION
12 /* .nf
13 
14  /*
15  * Utility library.
16  */
17 #include <vstring.h>
18 #include <mac_parse.h>
19 
20  /*
21  * Features.
22  */
23 #define MAC_EXP_FLAG_NONE (0)
24 #define MAC_EXP_FLAG_RECURSE (1<<0)
25 #define MAC_EXP_FLAG_APPEND (1<<1)
26 #define MAC_EXP_FLAG_SCAN (1<<2)
27 #define MAC_EXP_FLAG_PRINTABLE (1<<3)
28 
29  /*
30  * Real lookup or just a test?
31  */
32 #define MAC_EXP_MODE_TEST (0)
33 #define MAC_EXP_MODE_USE (1)
34 
35 typedef const char *(*MAC_EXP_LOOKUP_FN) (const char *, int, void *);
36 
37 extern int mac_expand(VSTRING *, const char *, int, const char *, MAC_EXP_LOOKUP_FN, void *);
38 
39 /* LICENSE
40 /* .ad
41 /* .fi
42 /* The Secure Mailer license must be distributed with this software.
43 /* AUTHOR(S)
44 /* Wietse Venema
45 /* IBM T.J. Watson Research
46 /* P.O. Box 704
47 /* Yorktown Heights, NY 10598, USA
48 /*
49 /* Wietse Venema
50 /* Google, Inc.
51 /* 111 8th Avenue
52 /* New York, NY 10011, USA
53 /*--*/
54 
55 #endif
const char *(* MAC_EXP_LOOKUP_FN)(const char *, int, void *)
Definition: mac_expand.h:35
int int
Definition: smtpd_proxy.h:21
int mac_expand(VSTRING *, const char *, int, const char *, MAC_EXP_LOOKUP_FN, void *)
Definition: mac_expand.c:593