<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ldns documentation</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <div class="logo"> <img src="LogoInGradientBar2-y100.png"/> </div> <!-- Generated by Doxygen 1.7.4 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_7a7a565456b510ac01baf8655647d8a2.html">ldns</a> </li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <div class="title">common.h</div> </div> </div> <div class="contents"> <a href="common_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00015"></a>00015 <span class="preprocessor">#ifndef LDNS_COMMON_H</span> <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define LDNS_COMMON_H</span> <a name="l00017"></a>00017 <span class="preprocessor"></span> <a name="l00018"></a>00018 <span class="comment">/*</span> <a name="l00019"></a>00019 <span class="comment"> * The build configuration that is used in the distributed headers,</span> <a name="l00020"></a>00020 <span class="comment"> * as detected and determined by the auto configure script.</span> <a name="l00021"></a>00021 <span class="comment"> */</span> <a name="l00022"></a><a class="code" href="common_8h.html#a057dcfc46e1fb5b586fa87ed177a1cff">00022</a> <span class="preprocessor">#define LDNS_BUILD_CONFIG_HAVE_SSL 1</span> <a name="l00023"></a><a class="code" href="common_8h.html#a7b70724aa08ba363a0e59a7e109759c3">00023</a> <span class="preprocessor"></span><span class="preprocessor">#define LDNS_BUILD_CONFIG_USE_ECDSA 0</span> <a name="l00024"></a><a class="code" href="common_8h.html#a7778e486d3529233271cff8a3d7ddaeb">00024</a> <span class="preprocessor"></span><span class="preprocessor">#define LDNS_BUILD_CONFIG_HAVE_INTTYPES_H 1</span> <a name="l00025"></a><a class="code" href="common_8h.html#ab0acad0d3abab939148feaded6197817">00025</a> <span class="preprocessor"></span><span class="preprocessor">#define LDNS_BUILD_CONFIG_HAVE_ATTR_FORMAT 1</span> <a name="l00026"></a><a class="code" href="common_8h.html#ab4733cb6e11c8c73ddacc29061af1452">00026</a> <span class="preprocessor"></span><span class="preprocessor">#define LDNS_BUILD_CONFIG_HAVE_ATTR_UNUSED 1</span> <a name="l00027"></a>00027 <span class="preprocessor"></span> <a name="l00028"></a>00028 <span class="comment">/*</span> <a name="l00029"></a>00029 <span class="comment"> * HAVE_STDBOOL_H is not available when distributed as a library, but no build </span> <a name="l00030"></a>00030 <span class="comment"> * configuration variables may be used (like those above) because the header</span> <a name="l00031"></a>00031 <span class="comment"> * is sometimes only available when using special compiler flags to enable the</span> <a name="l00032"></a>00032 <span class="comment"> * c99 environment. Because we cannot force the usage of this flag, we have to</span> <a name="l00033"></a>00033 <span class="comment"> * provide a default type. Below what is suggested by the autoconf manual.</span> <a name="l00034"></a>00034 <span class="comment"> */</span> <a name="l00035"></a>00035 <span class="comment">/*@ignore@*/</span> <a name="l00036"></a>00036 <span class="comment">/* splint barfs on this construct */</span> <a name="l00037"></a>00037 <span class="preprocessor">#ifdef HAVE_STDBOOL_H</span> <a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor"># include <stdbool.h></span> <a name="l00039"></a>00039 <span class="preprocessor">#else</span> <a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor"># ifndef HAVE__BOOL</span> <a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor"># ifdef __cplusplus</span> <a name="l00042"></a>00042 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">bool</span> <a class="code" href="common_8h.html#aeaff0db5524987a2f50d71ac0162ceb2">_Bool</a>; <a name="l00043"></a>00043 <span class="preprocessor"># else</span> <a name="l00044"></a><a class="code" href="common_8h.html#aeaff0db5524987a2f50d71ac0162ceb2">00044</a> <span class="preprocessor"></span><span class="preprocessor"># define _Bool signed char</span> <a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor"># endif</span> <a name="l00047"></a><a class="code" href="common_8h.html#abb452686968e48b67397da5f97445f5b">00047</a> <span class="preprocessor"></span><span class="preprocessor"># define bool _Bool</span> <a name="l00048"></a><a class="code" href="common_8h.html#a65e9886d74aaee76545e83dd09011727">00048</a> <span class="preprocessor"></span><span class="preprocessor"># define false 0</span> <a name="l00049"></a><a class="code" href="common_8h.html#a41f9c5fb8b08eb5dc3edce4dcb37fee7">00049</a> <span class="preprocessor"></span><span class="preprocessor"># define true 1</span> <a name="l00050"></a><a class="code" href="common_8h.html#a665b0cc9ee2ced31785321d55cde349e">00050</a> <span class="preprocessor"></span><span class="preprocessor"># define __bool_true_false_are_defined 1</span> <a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00052"></a>00052 <span class="preprocessor"></span><span class="comment">/*@end@*/</span> <a name="l00053"></a>00053 <a name="l00054"></a>00054 <span class="preprocessor">#if LDNS_BUILD_CONFIG_HAVE_ATTR_FORMAT</span> <a name="l00055"></a><a class="code" href="common_8h.html#a717f9e9e7d3c33e54a39ed27d3be7b2f">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define ATTR_FORMAT(archetype, string_index, first_to_check) \</span> <a name="l00056"></a>00056 <span class="preprocessor"> __attribute__ ((format (archetype, string_index, first_to_check)))</span> <a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#else </span><span class="comment">/* !LDNS_BUILD_CONFIG_HAVE_ATTR_FORMAT */</span> <a name="l00058"></a>00058 <span class="preprocessor">#define ATTR_FORMAT(archetype, string_index, first_to_check) </span><span class="comment">/* empty */</span> <a name="l00059"></a>00059 <span class="preprocessor">#endif </span><span class="comment">/* !LDNS_BUILD_CONFIG_HAVE_ATTR_FORMAT */</span> <a name="l00060"></a>00060 <a name="l00061"></a>00061 <span class="preprocessor">#if defined(__cplusplus)</span> <a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#define ATTR_UNUSED(x)</span> <a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#elif LDNS_BUILD_CONFIG_HAVE_ATTR_UNUSED</span> <a name="l00064"></a><a class="code" href="common_8h.html#ade436d89899edbffbc53514d440d28b9">00064</a> <span class="preprocessor"></span><span class="preprocessor">#define ATTR_UNUSED(x) x __attribute__((unused))</span> <a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#else </span><span class="comment">/* !LDNS_BUILD_CONFIG_HAVE_ATTR_UNUSED */</span> <a name="l00066"></a>00066 <span class="preprocessor">#define ATTR_UNUSED(x) x</span> <a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* !LDNS_BUILD_CONFIG_HAVE_ATTR_UNUSED */</span> <a name="l00068"></a>00068 <a name="l00069"></a>00069 <span class="preprocessor">#endif </span><span class="comment">/* LDNS_COMMON_H */</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Jan 11 2012 for ldns by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>