1/*	$NetBSD: mac_parse.h,v 1.3 2022/10/08 16:12:50 christos Exp $	*/
2
3#ifndef _MAC_PARSE_H_INCLUDED_
4#define _MAC_PARSE_H_INCLUDED_
5
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
15
16 /*
17  * Utility library.
18  */
19#include <vstring.h>
20
21 /*
22  * External interface.
23  */
24#define MAC_PARSE_LITERAL	1
25#define MAC_PARSE_EXPR		2
26#define MAC_PARSE_VARNAME	MAC_PARSE_EXPR	/* 2.1 compatibility */
27
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 */
32
33typedef int (*MAC_PARSE_FN) (int, VSTRING *, void *);
34
35extern int WARN_UNUSED_RESULT mac_parse(const char *, MAC_PARSE_FN, void *);
36
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/*
47/*	Wietse Venema
48/*	Google, Inc.
49/*	111 8th Avenue
50/*	New York, NY 10011, USA
51/*--*/
52
53#endif
54