1 /* $NetBSD: mac_expand.h,v 1.1.1.2 2011/03/02 19:32:44 tron Exp $ */ 2 3 #ifndef _MAC_EXPAND_H_INCLUDED_ 4 #define _MAC_EXPAND_H_INCLUDED_ 5 6 /*++ 7 /* NAME 8 /* mac_expand 3h 9 /* SUMMARY 10 /* expand macro references in string 11 /* SYNOPSIS 12 /* #include <mac_expand.h> 13 DESCRIPTION 14 .nf 15 16 /* 17 * Utility library. 18 */ 19 #include <vstring.h> 20 #include <mac_parse.h> 21 22 /* 23 * Features. 24 */ 25 #define MAC_EXP_FLAG_NONE (0) 26 #define MAC_EXP_FLAG_RECURSE (1<<0) 27 #define MAC_EXP_FLAG_APPEND (1<<1) 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, char *); 36 37 extern int mac_expand(VSTRING *, const char *, int, const char *, MAC_EXP_LOOKUP_FN, char *); 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 50 #endif 51