1 /* $NetBSD: mac_expand.h,v 1.1.1.1 2009/06/23 10:09:00 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 28 /* 29 * Real lookup or just a test? 30 */ 31 #define MAC_EXP_MODE_TEST (0) 32 #define MAC_EXP_MODE_USE (1) 33 34 typedef const char *(*MAC_EXP_LOOKUP_FN)(const char *, int, char *); 35 36 extern int mac_expand(VSTRING *, const char *, int, const char *, MAC_EXP_LOOKUP_FN, char *); 37 38 /* LICENSE 39 /* .ad 40 /* .fi 41 /* The Secure Mailer license must be distributed with this software. 42 /* AUTHOR(S) 43 /* Wietse Venema 44 /* IBM T.J. Watson Research 45 /* P.O. Box 704 46 /* Yorktown Heights, NY 10598, USA 47 /*--*/ 48 49 #endif 50