Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / mac_parse.h
blob67b5d47dbc57e78895e8e167a9f975b247448384
1 /* $NetBSD$ */
3 #ifndef _MAC_PARSE_H_INCLUDED_
4 #define _MAC_PARSE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* mac_parse 3h
9 /* SUMMARY
10 /* locate macro references in string
11 /* SYNOPSIS
12 /* #include <mac_parse.h>
13 DESCRIPTION
14 .nf
17 * Utility library.
19 #include <vstring.h>
22 * External interface.
24 #define MAC_PARSE_LITERAL 1
25 #define MAC_PARSE_EXPR 2
26 #define MAC_PARSE_VARNAME MAC_PARSE_EXPR /* 2.1 compatibility */
28 #define MAC_PARSE_OK 0
29 #define MAC_PARSE_ERROR (1<<0)
30 #define MAC_PARSE_UNDEF (1<<1)
31 #define MAC_PARSE_USER 2 /* start user definitions */
33 typedef int (*MAC_PARSE_FN)(int, VSTRING *, char *);
35 extern int mac_parse(const char *, MAC_PARSE_FN, char *);
37 /* LICENSE
38 /* .ad
39 /* .fi
40 /* The Secure Mailer license must be distributed with this software.
41 /* AUTHOR(S)
42 /* Wietse Venema
43 /* IBM T.J. Watson Research
44 /* P.O. Box 704
45 /* Yorktown Heights, NY 10598, USA
46 /*--*/
48 #endif