ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libspf/docs/API/doxygen/html/macro_8h-source.html
Revision: 1.1
Committed: Tue Nov 13 00:51:28 2007 UTC (18 years, 10 months ago) by root
Content type: text/html
Branch: MAIN
CVS Tags: HEAD
Log Message:
initial import of libspf-1.0.0-p5 from freebsd ports

File Contents

# Content
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>libSPF v1.0: macro.h Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.3.8 -->
7 <div class="qindex"> <form class="search" action="search.php" method="get">
8 <a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
9 <h1>macro.h</h1><a href="macro_8h.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/* libspf - Sender Policy Framework library</span>
10 00002 <span class="comment">*</span>
11 00003 <span class="comment">* ANSI C implementation of spf-draft-200405.txt</span>
12 00004 <span class="comment">*</span>
13 00005 <span class="comment">* Author: James Couzens &lt;jcouzens@codeshare.ca&gt;</span>
14 00006 <span class="comment">* Author: Sean Comeau &lt;scomeau@obscurity.org&gt;</span>
15 00007 <span class="comment">*</span>
16 00008 <span class="comment">* FILE: macro.h</span>
17 00009 <span class="comment">* DESC: macro functions header file </span>
18 00010 <span class="comment">*</span>
19 00011 <span class="comment">* License:</span>
20 00012 <span class="comment">*</span>
21 00013 <span class="comment">* The libspf Software License, Version 1.0</span>
22 00014 <span class="comment">*</span>
23 00015 <span class="comment">* Copyright (c) 2004 James Couzens &amp; Sean Comeau All rights</span>
24 00016 <span class="comment">* reserved.</span>
25 00017 <span class="comment">*</span>
26 00018 <span class="comment">* Redistribution and use in source and binary forms, with or without</span>
27 00019 <span class="comment">* modification, are permitted provided that the following conditions</span>
28 00020 <span class="comment">* are met:</span>
29 00021 <span class="comment">*</span>
30 00022 <span class="comment">* 1. Redistributions of source code must retain the above copyright</span>
31 00023 <span class="comment">* notice, this list of conditions and the following disclaimer.</span>
32 00024 <span class="comment">*</span>
33 00025 <span class="comment">* 2. Redistributions in binary form must reproduce the above copyright</span>
34 00026 <span class="comment">* notice, this list of conditions and the following disclaimer in</span>
35 00027 <span class="comment">* the documentation and/or other materials provided with the</span>
36 00028 <span class="comment">* distribution.</span>
37 00029 <span class="comment">*</span>
38 00030 <span class="comment">* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED</span>
39 00031 <span class="comment">* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES</span>
40 00032 <span class="comment">* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span>
41 00033 <span class="comment">* DISCLAIMED. IN NO EVENT SHALL THE AUTHORS MAKING USE OF THIS LICESEN</span>
42 00034 <span class="comment">* OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
43 00035 <span class="comment">* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span>
44 00036 <span class="comment">* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF</span>
45 00037 <span class="comment">* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span>
46 00038 <span class="comment">* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,</span>
47 00039 <span class="comment">* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT</span>
48 00040 <span class="comment">* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF</span>
49 00041 <span class="comment">* SUCH DAMAGE.</span>
50 00042 <span class="comment">* </span>
51 00043 <span class="comment">*/</span>
52 00044
53 00045
54 00046 <span class="preprocessor">#ifndef _MACRO_H</span>
55 <a name="l00047"></a><a class="code" href="macro_8h.html#a0">00047</a> <span class="preprocessor"></span><span class="preprocessor">#define _MACRO_H 1</span>
56 00048 <span class="preprocessor"></span>
57 00049 <span class="preprocessor">#include &lt;stdio.h&gt;</span> <span class="comment">/* stdin / stdout */</span>
58 00050 <span class="preprocessor">#include &lt;stdlib.h&gt;</span> <span class="comment">/* malloc / free */</span>
59 00051 <span class="preprocessor">#include &lt;string.h&gt;</span> <span class="comment">/* strstr / strdup */</span>
60 00052 <span class="preprocessor">#include &lt;ctype.h&gt;</span> <span class="comment">/* isupper / tolower */</span>
61 00053
62 00054 <span class="preprocessor">#include "../../config.h"</span> <span class="comment">/* autoconf */</span>
63 00055 <span class="preprocessor">#include "<a class="code" href="spf_8h.html">spf.h</a>"</span>
64 00056
65 00057 <span class="preprocessor">#ifdef HAVE__BEGIN_DECLS</span>
66 00058 <span class="preprocessor"></span>__BEGIN_DECLS
67 00059 <span class="preprocessor">#else</span>
68 00060 <span class="preprocessor"></span><span class="preprocessor"># ifdef __cplusplus</span>
69 00061 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
70 00062 <span class="preprocessor"># endif </span><span class="comment">/* __cplusplus */</span>
71 00063 <span class="preprocessor">#endif </span><span class="comment">/* HAVE__BEGIN_DECLS */</span>
72 00064
73 00065
74 00066 <span class="keywordtype">char</span> *<a class="code" href="macro_8h.html#a1">MACRO_expand</a>(<a class="code" href="structpeer__info__s.html">peer_info_t</a> *peer_info, <span class="keyword">const</span> <span class="keywordtype">char</span> *s);
75 00067 <span class="keywordtype">char</span> *<a class="code" href="macro_8h.html#a2">MACRO_process</a>(<a class="code" href="structpeer__info__s.html">peer_info_t</a> *peer_info, <span class="keywordtype">char</span> *macro, <span class="keyword">const</span> size_t size);
76 00068 <span class="keywordtype">char</span> *<a class="code" href="macro_8h.html#a3">MACRO_eatmore</a>(<span class="keywordtype">char</span> *macro, <span class="keywordtype">char</span> *s);
77 00069 <a class="code" href="spf_8h.html#a35">SPF_BOOL</a> <a class="code" href="macro_8h.html#a4">MACRO_addbuf</a>(<a class="code" href="structstrbuf__s.html">strbuf_t</a> *master, <span class="keywordtype">char</span> *s, <span class="keyword">const</span> size_t size);
78 00070
79 00071
80 00072 <span class="preprocessor">#ifdef HAVE__BEGIN_DECLS</span>
81 00073 <span class="preprocessor"></span>__END_DECLS <span class="comment">/* _MACRO_H */</span>
82 00074 <span class="preprocessor">#else</span>
83 00075 <span class="preprocessor"></span><span class="preprocessor"># ifdef __cplusplus</span>
84 00076 <span class="preprocessor"></span>}
85 00077 <span class="preprocessor"># endif </span><span class="comment">/* __cplusplus */</span>
86 00078 <span class="preprocessor">#endif </span><span class="comment">/* HAVE__BEGIN_DECLS */</span>
87 00079
88 00080 <span class="preprocessor">#endif </span><span class="comment">/* _MACRO_H */</span>
89 00081
90 00082 <span class="comment">/* end macro.h */</span>
91 </div></pre><hr size="1"><address style="align: right;"><small>Generated on Thu Sep 16 18:10:46 2004 for libSPF v1.0 by
92 <a href="http://www.doxygen.org/index.html">
93 <img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
94 </body>
95 </html>