diff options
Diffstat (limited to 'apidocs/icalerror_8h_source.html')
-rw-r--r-- | apidocs/icalerror_8h_source.html | 441 |
1 files changed, 220 insertions, 221 deletions
diff --git a/apidocs/icalerror_8h_source.html b/apidocs/icalerror_8h_source.html index 48ae35cd..e46ac199 100644 --- a/apidocs/icalerror_8h_source.html +++ b/apidocs/icalerror_8h_source.html @@ -2,8 +2,8 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<meta name="generator" content="Doxygen 1.9.1"/> +<meta http-equiv="X-UA-Compatible" content="IE=11"/> +<meta name="generator" content="Doxygen 1.9.3"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Libical API Documentation: icalerror.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> @@ -19,10 +19,9 @@ <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> - <tr style="height: 56px;"> - <td id="projectalign" style="padding-left: 0.5em;"> - <div id="projectname">Libical API Documentation -  <span id="projectnumber">3.1</span> + <tr id="projectrow"> + <td id="projectalign"> + <div id="projectname">Libical API Documentation<span id="projectnumber"> 3.0</span> </div> </td> </tr> @@ -30,21 +29,22 @@ </table> </div> <!-- end header part --> -<!-- Generated by Doxygen 1.9.1 --> +<!-- Generated by Doxygen 1.9.3 --> <script type="text/javascript"> -/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ -var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); +/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ +var searchBox = new SearchBox("searchBox", "search",'Search','.html'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> -/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ +/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); -/* @license-end */</script> +/* @license-end */ +</script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" @@ -66,213 +66,213 @@ $(function() { </div> </div><!-- top --> <div class="header"> - <div class="headertitle"> -<div class="title">icalerror.h</div> </div> + <div class="headertitle"><div class="title">icalerror.h</div></div> </div><!--header--> <div class="contents"> -<a href="icalerror_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*======================================================================</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> FILE: icalerror.h</span></div> -<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> CREATOR: eric 09 May 1999</span></div> -<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span> </div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> (C) COPYRIGHT 2000, Eric Busboom <eric@civicknowledge.com></span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span> </div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> This library is free software; you can redistribute it and/or modify</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> it under the terms of either:</span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span> </div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> The LGPL as published by the Free Software Foundation, version</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"></span> </div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> Or:</span></div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span> </div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> The Mozilla Public License Version 2.0. You may obtain a copy of</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> the License at https://www.mozilla.org/MPL/</span></div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"></span> </div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> The original code is icalerror.h</span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">======================================================================*/</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#ifndef ICALERROR_H</span></div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#define ICALERROR_H</span></div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "libical_ical_export.h"</span></div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include <assert.h></span></div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include <stdio.h></span></div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#define ICAL_SETERROR_ISFUNC</span></div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  </div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a9102f6b721a280151c7858860707171b">icalerror_stop_here</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a0cbc33f05e014e767bd92b04bfb92f62">icalerror_crash_here</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  </div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="preprocessor">#ifndef _MSC_VER</span></div> -<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#pragma GCC visibility push(default)</span></div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833"> 75</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a></div> -<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> {</div> -<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6748acb6af24f11fe6efbe1a19602d0b"> 78</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6748acb6af24f11fe6efbe1a19602d0b">ICAL_NO_ERROR</a> = 0,</div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div> -<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1"> 81</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a>,</div> -<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div> -<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a055394ffaf6701aa12491dc10767f07d"> 84</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a055394ffaf6701aa12491dc10767f07d">ICAL_NEWFAILED_ERROR</a>,</div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  </div> -<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3ed4d866c28acaaaf99348b1ab27cd78"> 87</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3ed4d866c28acaaaf99348b1ab27cd78">ICAL_ALLOCATION_ERROR</a>,</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div> -<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6ba07679ac440358c3090a351d27f0d8"> 90</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6ba07679ac440358c3090a351d27f0d8">ICAL_MALFORMEDDATA_ERROR</a>,</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  </div> -<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ac7e8ee36834bde1f2ee7b680700a8deb"> 93</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ac7e8ee36834bde1f2ee7b680700a8deb">ICAL_PARSE_ERROR</a>,</div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div> -<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a5b0fc2e091e6b7287a9855d171648cbd"> 96</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a5b0fc2e091e6b7287a9855d171648cbd">ICAL_INTERNAL_ERROR</a>, <span class="comment">/* Like assert --internal consist. prob */</span></div> -<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  </div> -<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3e6aa7e2b3aa393f3c048d64cea6578d"> 99</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3e6aa7e2b3aa393f3c048d64cea6578d">ICAL_FILE_ERROR</a>,</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  </div> -<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833adcf918ddc612831de72aa3749d39b5c6"> 102</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833adcf918ddc612831de72aa3749d39b5c6">ICAL_USAGE_ERROR</a>,</div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  </div> -<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ad9376ffaf63b7fdb07eec0c0587c33f7"> 105</a></span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ad9376ffaf63b7fdb07eec0c0587c33f7">ICAL_UNIMPLEMENTED_ERROR</a>,</div> -<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  </div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ab2452506d4ad884b16da429749bfb551">ICAL_UNKNOWN_ERROR</a> <span class="comment">/* Used for problems in input to icalerror_strerror() */</span></div> -<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ab2452506d4ad884b16da429749bfb551"> 109</a></span> } <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a>;</div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="preprocessor">#ifndef _MSC_VER</span></div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="preprocessor">#pragma GCC visibility pop</span></div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div> -<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> LIBICAL_ICAL_EXPORT <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> *<a class="code" href="icalerror_8h.html#aafe7575af3bfd0754deaad7eecae38e5">icalerrno_return</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  </div> -<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="icalerror_8h.html#ad2562706150f5c5a4d9b0ca149d78e37"> 144</a></span> <span class="preprocessor">#define icalerrno (*(icalerrno_return()))</span></div> -<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  </div> -<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a05941b21472c45d4b3654cb7d94bf3e8">icalerror_set_errors_are_fatal</a>(<span class="keywordtype">int</span> fatal);</div> -<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  </div> -<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">int</span> <a class="code" href="icalerror_8h.html#a44fa677ba623cdcebe9e38b03cd08389">icalerror_get_errors_are_fatal</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div> -<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">/* Warning messages */</span></div> -<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  </div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="preprocessor">#ifdef __GNUC__ca</span></div> -<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> <span class="preprocessor">#define icalerror_warn(message) \</span></div> -<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="preprocessor">{icalerrprintf("%s(), %s:%d: %s\n"</span>, __FUNCTION__, __FILE__, __LINE__, message);}</div> -<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="preprocessor">#else </span><span class="comment">/* __GNU_C__ */</span><span class="preprocessor"></span></div> -<div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a2ab760137cd4f66d205ef00235a0ecd4"> 192</a></span> <span class="preprocessor">#define icalerror_warn(message) \</span></div> -<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="preprocessor">{icalerrprintf("%s:%d: %s\n"</span>, __FILE__, __LINE__, message);}</div> -<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="preprocessor">#endif </span><span class="comment">/* __GNU_C__ */</span><span class="preprocessor"></span></div> -<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  </div> -<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#ae87b46acb90ce9fee0fa377fd9b57c28">icalerror_clear_errno</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  </div> -<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3"> 214</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a></div> -<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> {</div> -<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a6a2c3dc27d17100317eadcc4156a9442"> 217</a></span>  <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a6a2c3dc27d17100317eadcc4156a9442">ICAL_ERROR_FATAL</a>,</div> -<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div> -<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aee5a5c75923a46b30105a272b75339b6"> 220</a></span>  <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aee5a5c75923a46b30105a272b75339b6">ICAL_ERROR_NONFATAL</a>,</div> -<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  </div> -<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aa8624e525ff7c52b30310134230ba1e6"> 223</a></span>  <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aa8624e525ff7c52b30310134230ba1e6">ICAL_ERROR_DEFAULT</a>,</div> -<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div> -<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a5afdd784a33990b7a717f827c077737f">ICAL_ERROR_UNKNOWN</a></div> -<div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a5afdd784a33990b7a717f827c077737f"> 227</a></span> } <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a>;</div> -<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  </div> -<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> LIBICAL_ICAL_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="icalerror_8h.html#ace2dcbae58882ed326b4716bf54842cc">icalerror_strerror</a>(<a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> e);</div> -<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  </div> -<div class="line"><a name="l00269"></a><span class="lineno"> 269</span> LIBICAL_ICAL_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="icalerror_8h.html#a55b38314ff59cf335de4b0d32ebff149">icalerror_perror</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  </div> -<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a1c741ef8219eebc325e53851aa9e8f00">ical_bt</a>(<span class="keywordtype">void</span>);</div> -<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  </div> -<div class="line"><a name="l00297"></a><span class="lineno"> 297</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a777a41722836b68ffb27ae5a746a14b4">icalerror_set_error_state</a>(<a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> error, <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> state);</div> -<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  </div> -<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> LIBICAL_ICAL_EXPORT <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> <a class="code" href="icalerror_8h.html#a5fe3cbc229f74250b59c077e21abf82d">icalerror_get_error_state</a>(<a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> error);</div> -<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  </div> -<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> LIBICAL_ICAL_EXPORT <a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> <a class="code" href="icalerror_8h.html#a9b60700869241af095f0604f35b1c446">icalerror_error_from_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);</div> -<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  </div> -<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="preprocessor">#if !defined(ICAL_SETERROR_ISFUNC)</span></div> -<div class="line"><a name="l00339"></a><span class="lineno"> 339</span> <span class="preprocessor">#define icalerror_set_errno(x) \</span></div> -<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> <span class="preprocessor">icalerrno = x; \</span></div> -<div class="line"><a name="l00341"></a><span class="lineno"> 341</span> <span class="preprocessor">if(icalerror_get_error_state(x) == ICAL_ERROR_FATAL || \</span></div> -<div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="preprocessor"> (icalerror_get_error_state(x) == ICAL_ERROR_DEFAULT && \</span></div> -<div class="line"><a name="l00343"></a><span class="lineno"> 343</span> <span class="preprocessor"> icalerror_get_errors_are_fatal() == 1)){ \</span></div> -<div class="line"><a name="l00344"></a><span class="lineno"> 344</span> <span class="preprocessor"> icalerror_warn(icalerror_strerror(x)); \</span></div> -<div class="line"><a name="l00345"></a><span class="lineno"> 345</span> <span class="preprocessor"> ical_bt(); \</span></div> -<div class="line"><a name="l00346"></a><span class="lineno"> 346</span> <span class="preprocessor"> icalassert(0); \</span></div> -<div class="line"><a name="l00347"></a><span class="lineno"> 347</span> <span class="preprocessor">} }</span></div> -<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> <span class="preprocessor">#else</span></div> -<div class="line"><a name="l00363"></a><span class="lineno"> 363</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a8266eaa216926b6703a0ef31cd99f0b2">icalerror_set_errno</a>(<a class="code" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> x);</div> -<div class="line"><a name="l00364"></a><span class="lineno"> 364</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  </div> -<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> <span class="preprocessor">#if !defined(ICAL_ERRORS_ARE_FATAL)</span></div> -<div class="line"><a name="l00379"></a><span class="lineno"><a class="line" href="icalerror_8h.html#acb04e8e94ef9817f0a8d71c994412038"> 379</a></span> <span class="preprocessor">#define ICAL_ERRORS_ARE_FATAL 0</span></div> -<div class="line"><a name="l00380"></a><span class="lineno"> 380</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  </div> -<div class="line"><a name="l00382"></a><span class="lineno"> 382</span> <span class="preprocessor">#if ICAL_ERRORS_ARE_FATAL == 1</span></div> -<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> <span class="preprocessor">#undef NDEBUG</span></div> -<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> <span class="preprocessor">#endif</span></div> -<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  </div> -<div class="line"><a name="l00386"></a><span class="lineno"> 386</span> <span class="preprocessor">#define icalerror_check_value_type(value,type);</span></div> -<div class="line"><a name="l00387"></a><span class="lineno"> 387</span> <span class="preprocessor">#define icalerror_check_property_type(value,type);</span></div> -<div class="line"><a name="l00388"></a><span class="lineno"> 388</span> <span class="preprocessor">#define icalerror_check_parameter_type(value,type);</span></div> -<div class="line"><a name="l00389"></a><span class="lineno"> 389</span> <span class="preprocessor">#define icalerror_check_component_type(value,type);</span></div> -<div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  </div> -<div class="line"><a name="l00391"></a><span class="lineno"> 391</span> <span class="comment">/* Assert with a message */</span></div> -<div class="line"><a name="l00403"></a><span class="lineno"> 403</span> <span class="preprocessor">#if ICAL_ERRORS_ARE_FATAL == 1</span></div> -<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  </div> -<div class="line"><a name="l00405"></a><span class="lineno"> 405</span> <span class="preprocessor">#ifdef __GNUC__</span></div> -<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> <span class="preprocessor">#define icalerror_assert(test,message) \</span></div> -<div class="line"><a name="l00407"></a><span class="lineno"> 407</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00408"></a><span class="lineno"> 408</span> <span class="preprocessor"> icalerrprintf("%s(), %s:%d: %s\n"</span>, __FUNCTION__, __FILE__, __LINE__, message); \</div> -<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  icalerror_stop_here(); \</div> -<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  abort();}</div> -<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> <span class="preprocessor">#else </span><span class="comment">/*__GNUC__*/</span><span class="preprocessor"></span></div> -<div class="line"><a name="l00412"></a><span class="lineno"> 412</span> <span class="preprocessor">#define icalerror_assert(test,message) \</span></div> -<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00414"></a><span class="lineno"> 414</span> <span class="preprocessor"> icalerrprintf("%s:%d: %s\n"</span>, __FILE__, __LINE__, message); \</div> -<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  icalerror_stop_here(); \</div> -<div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  abort();}</div> -<div class="line"><a name="l00417"></a><span class="lineno"> 417</span> <span class="preprocessor">#endif </span><span class="comment">/*__GNUC__*/</span><span class="preprocessor"></span></div> -<div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  </div> -<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> <span class="preprocessor">#else </span><span class="comment">/* ICAL_ERRORS_ARE_FATAL */</span><span class="preprocessor"></span></div> -<div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a44c46ab691b1a16f61b796350dc01bed"> 420</a></span> <span class="preprocessor">#define icalerror_assert(test,message)</span></div> -<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> <span class="preprocessor">#endif </span><span class="comment">/* ICAL_ERRORS_ARE_FATAL */</span><span class="preprocessor"></span></div> -<div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  </div> -<div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="icalerror_8h.html#afef4004abbb97d2599d131948655ae89"> 441</a></span> <span class="preprocessor">#define icalerror_check_arg(test,arg) \</span></div> -<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00443"></a><span class="lineno"> 443</span> <span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> -<div class="line"><a name="l00444"></a><span class="lineno"> 444</span> <span class="preprocessor">}</span></div> -<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  </div> -<div class="line"><a name="l00465"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a00245be23d5c2d4801c9ed74e1da6f6a"> 465</a></span> <span class="preprocessor">#define icalerror_check_arg_rv(test,arg) \</span></div> -<div class="line"><a name="l00466"></a><span class="lineno"> 466</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00467"></a><span class="lineno"> 467</span> <span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> -<div class="line"><a name="l00468"></a><span class="lineno"> 468</span> <span class="preprocessor"> return; \</span></div> -<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> <span class="preprocessor">}</span></div> -<div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  </div> -<div class="line"><a name="l00491"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a95198bf515920804672520856c300666"> 491</a></span> <span class="preprocessor">#define icalerror_check_arg_rz(test,arg) \</span></div> -<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00493"></a><span class="lineno"> 493</span> <span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> -<div class="line"><a name="l00494"></a><span class="lineno"> 494</span> <span class="preprocessor"> return 0; \</span></div> -<div class="line"><a name="l00495"></a><span class="lineno"> 495</span> <span class="preprocessor">}</span></div> -<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  </div> -<div class="line"><a name="l00518"></a><span class="lineno"><a class="line" href="icalerror_8h.html#ae163052ebae24e2026bf54108b10b914"> 518</a></span> <span class="preprocessor">#define icalerror_check_arg_re(test,arg,error) \</span></div> -<div class="line"><a name="l00519"></a><span class="lineno"> 519</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00520"></a><span class="lineno"> 520</span> <span class="preprocessor"> icalerror_stop_here(); \</span></div> -<div class="line"><a name="l00521"></a><span class="lineno"> 521</span> <span class="preprocessor"> icalassert(0); \</span></div> -<div class="line"><a name="l00522"></a><span class="lineno"> 522</span> <span class="preprocessor"> return error; \</span></div> -<div class="line"><a name="l00523"></a><span class="lineno"> 523</span> <span class="preprocessor">}</span></div> -<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  </div> -<div class="line"><a name="l00546"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a7a71f70509be32e3e54edbaf3b45571a"> 546</a></span> <span class="preprocessor">#define icalerror_check_arg_rx(test,arg,x) \</span></div> -<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> <span class="preprocessor">if (!(test)) { \</span></div> -<div class="line"><a name="l00548"></a><span class="lineno"> 548</span> <span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> -<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> <span class="preprocessor"> return x; \</span></div> -<div class="line"><a name="l00550"></a><span class="lineno"> 550</span> <span class="preprocessor">}</span></div> -<div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  </div> -<div class="line"><a name="l00552"></a><span class="lineno"> 552</span> <span class="comment">/* String interfaces to set an error to NONFATAL and restore it to its original value */</span></div> -<div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  </div> -<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> LIBICAL_ICAL_EXPORT <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> <a class="code" href="icalerror_8h.html#af226f2c41272dabecd03ec9807d3a1e2">icalerror_supress</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *error);</div> -<div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  </div> -<div class="line"><a name="l00589"></a><span class="lineno"> 589</span> LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code" href="icalerror_8h.html#a8377dadcd17bf305d1931aa2518c321a">icalerror_restore</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *error, <a class="code" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> es);</div> -<div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  </div> -<div class="line"><a name="l00591"></a><span class="lineno"> 591</span> <span class="preprocessor">#endif </span><span class="comment">/* !ICALERROR_H */</span><span class="preprocessor"></span></div> -<div class="ttc" id="aicalerror_8h_html_a05941b21472c45d4b3654cb7d94bf3e8"><div class="ttname"><a href="icalerror_8h.html#a05941b21472c45d4b3654cb7d94bf3e8">icalerror_set_errors_are_fatal</a></div><div class="ttdeci">void icalerror_set_errors_are_fatal(int fatal)</div><div class="ttdoc">Change if errors are fatal.</div><div class="ttdef"><b>Definition:</b> icalerror.c:109</div></div> -<div class="ttc" id="aicalerror_8h_html_a0cbc33f05e014e767bd92b04bfb92f62"><div class="ttname"><a href="icalerror_8h.html#a0cbc33f05e014e767bd92b04bfb92f62">icalerror_crash_here</a></div><div class="ttdeci">void icalerror_crash_here(void)</div><div class="ttdoc">Triggered to abort the process.</div><div class="ttdef"><b>Definition:</b> icalerror.c:85</div></div> -<div class="ttc" id="aicalerror_8h_html_a1c741ef8219eebc325e53851aa9e8f00"><div class="ttname"><a href="icalerror_8h.html#a1c741ef8219eebc325e53851aa9e8f00">ical_bt</a></div><div class="ttdeci">void ical_bt(void)</div><div class="ttdoc">Prints backtrace.</div><div class="ttdef"><b>Definition:</b> icalerror.c:263</div></div> +<a href="icalerror_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*======================================================================</span></div> +<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> FILE: icalerror.h</span></div> +<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> CREATOR: eric 09 May 1999</span></div> +<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"></span> </div> +<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> (C) COPYRIGHT 2000, Eric Busboom <eric@civicknowledge.com></span></div> +<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"></span> </div> +<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> This library is free software; you can redistribute it and/or modify</span></div> +<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> it under the terms of either:</span></div> +<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div> +<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> The LGPL as published by the Free Software Foundation, version</span></div> +<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html</span></div> +<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"></span> </div> +<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> Or:</span></div> +<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"></span> </div> +<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> The Mozilla Public License Version 2.0. You may obtain a copy of</span></div> +<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> the License at https://www.mozilla.org/MPL/</span></div> +<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"></span> </div> +<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> The original code is icalerror.h</span></div> +<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment">======================================================================*/</span></div> +<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div> +<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#ifndef ICALERROR_H</span></div> +<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#define ICALERROR_H</span></div> +<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div> +<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include "libical_ical_export.h"</span></div> +<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <assert.h></span></div> +<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <stdio.h></span></div> +<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div> +<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="preprocessor">#define ICAL_SETERROR_ISFUNC</span></div> +<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div> +<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a9102f6b721a280151c7858860707171b">icalerror_stop_here</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div> +<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a0cbc33f05e014e767bd92b04bfb92f62">icalerror_crash_here</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div> +<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="preprocessor">#ifndef _MSC_VER</span></div> +<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="preprocessor">#pragma GCC visibility push(default)</span></div> +<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="preprocessor">#endif</span></div> +<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833"> 75</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a></div> +<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span>{</div> +<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6748acb6af24f11fe6efbe1a19602d0b"> 78</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6748acb6af24f11fe6efbe1a19602d0b">ICAL_NO_ERROR</a> = 0,</div> +<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div> +<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1"> 81</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a>,</div> +<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div> +<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a055394ffaf6701aa12491dc10767f07d"> 84</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a055394ffaf6701aa12491dc10767f07d">ICAL_NEWFAILED_ERROR</a>,</div> +<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div> +<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3ed4d866c28acaaaf99348b1ab27cd78"> 87</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3ed4d866c28acaaaf99348b1ab27cd78">ICAL_ALLOCATION_ERROR</a>,</div> +<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div> +<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6ba07679ac440358c3090a351d27f0d8"> 90</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a6ba07679ac440358c3090a351d27f0d8">ICAL_MALFORMEDDATA_ERROR</a>,</div> +<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div> +<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ac7e8ee36834bde1f2ee7b680700a8deb"> 93</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ac7e8ee36834bde1f2ee7b680700a8deb">ICAL_PARSE_ERROR</a>,</div> +<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div> +<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a5b0fc2e091e6b7287a9855d171648cbd"> 96</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a5b0fc2e091e6b7287a9855d171648cbd">ICAL_INTERNAL_ERROR</a>, <span class="comment">/* Like assert --internal consist. prob */</span></div> +<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div> +<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3e6aa7e2b3aa393f3c048d64cea6578d"> 99</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a3e6aa7e2b3aa393f3c048d64cea6578d">ICAL_FILE_ERROR</a>,</div> +<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div> +<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833adcf918ddc612831de72aa3749d39b5c6"> 102</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833adcf918ddc612831de72aa3749d39b5c6">ICAL_USAGE_ERROR</a>,</div> +<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div> +<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ad9376ffaf63b7fdb07eec0c0587c33f7"> 105</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ad9376ffaf63b7fdb07eec0c0587c33f7">ICAL_UNIMPLEMENTED_ERROR</a>,</div> +<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div> +<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_enumvalue" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ab2452506d4ad884b16da429749bfb551">ICAL_UNKNOWN_ERROR</a> <span class="comment">/* Used for problems in input to icalerror_strerror() */</span></div> +<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ab2452506d4ad884b16da429749bfb551"> 109</a></span>} <a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a>;</div> +<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span><span class="preprocessor">#ifndef _MSC_VER</span></div> +<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span><span class="preprocessor">#pragma GCC visibility pop</span></div> +<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span><span class="preprocessor">#endif</span></div> +<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div> +<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span>LIBICAL_ICAL_EXPORT <a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> *<a class="code hl_function" href="icalerror_8h.html#a03f44629289ba66eaf29e199ec9ec4b7">icalerrno_return</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div> +<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="icalerror_8h.html#ad2562706150f5c5a4d9b0ca149d78e37"> 144</a></span><span class="preprocessor">#define icalerrno (*(icalerrno_return()))</span></div> +<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div> +<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a05941b21472c45d4b3654cb7d94bf3e8">icalerror_set_errors_are_fatal</a>(<span class="keywordtype">int</span> fatal);</div> +<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div> +<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">int</span> <a class="code hl_function" href="icalerror_8h.html#a44fa677ba623cdcebe9e38b03cd08389">icalerror_get_errors_are_fatal</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> </div> +<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span><span class="comment">/* Warning messages */</span></div> +<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div> +<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span><span class="preprocessor">#ifdef __GNUC__ca</span></div> +<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span><span class="preprocessor">#define icalerror_warn(message) \</span></div> +<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span><span class="preprocessor">{fprintf(stderr, "%s(), %s:%d: %s\n"</span>, __FUNCTION__, __FILE__, __LINE__, message);}</div> +<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span><span class="preprocessor">#else </span><span class="comment">/* __GNU_C__ */</span><span class="preprocessor"></span></div> +<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a2ab760137cd4f66d205ef00235a0ecd4"> 192</a></span><span class="preprocessor">#define icalerror_warn(message) \</span></div> +<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span><span class="preprocessor">{fprintf(stderr, "%s:%d: %s\n"</span>, __FILE__, __LINE__, message);}</div> +<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span><span class="preprocessor">#endif </span><span class="comment">/* __GNU_C__ */</span><span class="preprocessor"></span></div> +<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div> +<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#ae87b46acb90ce9fee0fa377fd9b57c28">icalerror_clear_errno</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div> +<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3"> 214</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code hl_enumeration" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a></div> +<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span>{</div> +<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a6a2c3dc27d17100317eadcc4156a9442"> 217</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a6a2c3dc27d17100317eadcc4156a9442">ICAL_ERROR_FATAL</a>,</div> +<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div> +<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aee5a5c75923a46b30105a272b75339b6"> 220</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aee5a5c75923a46b30105a272b75339b6">ICAL_ERROR_NONFATAL</a>,</div> +<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div> +<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aa8624e525ff7c52b30310134230ba1e6"> 223</a></span> <a class="code hl_enumvalue" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aa8624e525ff7c52b30310134230ba1e6">ICAL_ERROR_DEFAULT</a>,</div> +<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> </div> +<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <a class="code hl_enumvalue" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a5afdd784a33990b7a717f827c077737f">ICAL_ERROR_UNKNOWN</a></div> +<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a5afdd784a33990b7a717f827c077737f"> 227</a></span>} <a class="code hl_enumeration" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a>;</div> +<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> </div> +<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span>LIBICAL_ICAL_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="icalerror_8h.html#a78e30857b73490e23848b92459510b8c">icalerror_strerror</a>(<a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> e);</div> +<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> </div> +<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span>LIBICAL_ICAL_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_function" href="icalerror_8h.html#a5c3975fee79ab587467be6531497dbbc">icalerror_perror</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> </div> +<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a1c741ef8219eebc325e53851aa9e8f00">ical_bt</a>(<span class="keywordtype">void</span>);</div> +<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> </div> +<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a777a41722836b68ffb27ae5a746a14b4">icalerror_set_error_state</a>(<a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> error, <a class="code hl_enumeration" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> state);</div> +<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> </div> +<div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span>LIBICAL_ICAL_EXPORT <a class="code hl_enumeration" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> <a class="code hl_function" href="icalerror_8h.html#a5fe3cbc229f74250b59c077e21abf82d">icalerror_get_error_state</a>(<a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> error);</div> +<div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> </div> +<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span>LIBICAL_ICAL_EXPORT <a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> <a class="code hl_function" href="icalerror_8h.html#a9b60700869241af095f0604f35b1c446">icalerror_error_from_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);</div> +<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> </div> +<div class="line"><a id="l00338" name="l00338"></a><span class="lineno"> 338</span><span class="preprocessor">#if !defined(ICAL_SETERROR_ISFUNC)</span></div> +<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span><span class="preprocessor">#define icalerror_set_errno(x) \</span></div> +<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span><span class="preprocessor">icalerrno = x; \</span></div> +<div class="line"><a id="l00341" name="l00341"></a><span class="lineno"> 341</span><span class="preprocessor">if(icalerror_get_error_state(x) == ICAL_ERROR_FATAL || \</span></div> +<div class="line"><a id="l00342" name="l00342"></a><span class="lineno"> 342</span><span class="preprocessor"> (icalerror_get_error_state(x) == ICAL_ERROR_DEFAULT && \</span></div> +<div class="line"><a id="l00343" name="l00343"></a><span class="lineno"> 343</span><span class="preprocessor"> icalerror_get_errors_are_fatal() == 1)){ \</span></div> +<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span><span class="preprocessor"> icalerror_warn(icalerror_strerror(x)); \</span></div> +<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span><span class="preprocessor"> ical_bt(); \</span></div> +<div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span><span class="preprocessor"> assert(0); \</span></div> +<div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span><span class="preprocessor">} }</span></div> +<div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span><span class="preprocessor">#else</span></div> +<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a8266eaa216926b6703a0ef31cd99f0b2">icalerror_set_errno</a>(<a class="code hl_enumeration" href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a> x);</div> +<div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span><span class="preprocessor">#endif</span></div> +<div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> </div> +<div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span><span class="preprocessor">#if !defined(ICAL_ERRORS_ARE_FATAL)</span></div> +<div class="line"><a id="l00379" name="l00379"></a><span class="lineno"><a class="line" href="icalerror_8h.html#acb04e8e94ef9817f0a8d71c994412038"> 379</a></span><span class="preprocessor">#define ICAL_ERRORS_ARE_FATAL 0</span></div> +<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"> 380</span><span class="preprocessor">#endif</span></div> +<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> </div> +<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span><span class="preprocessor">#if ICAL_ERRORS_ARE_FATAL == 1</span></div> +<div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span><span class="preprocessor">#undef NDEBUG</span></div> +<div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span><span class="preprocessor">#endif</span></div> +<div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> </div> +<div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span><span class="preprocessor">#define icalerror_check_value_type(value,type);</span></div> +<div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span><span class="preprocessor">#define icalerror_check_property_type(value,type);</span></div> +<div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span><span class="preprocessor">#define icalerror_check_parameter_type(value,type);</span></div> +<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span><span class="preprocessor">#define icalerror_check_component_type(value,type);</span></div> +<div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> </div> +<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"> 391</span><span class="comment">/* Assert with a message */</span></div> +<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span><span class="preprocessor">#if ICAL_ERRORS_ARE_FATAL == 1</span></div> +<div class="line"><a id="l00404" name="l00404"></a><span class="lineno"> 404</span> </div> +<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span><span class="preprocessor">#ifdef __GNUC__</span></div> +<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span><span class="preprocessor">#define icalerror_assert(test,message) \</span></div> +<div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span><span class="preprocessor"> fprintf(stderr, "%s(), %s:%d: %s\n"</span>, __FUNCTION__, __FILE__, __LINE__, message); \</div> +<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> icalerror_stop_here(); \</div> +<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> abort();}</div> +<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span><span class="preprocessor">#else </span><span class="comment">/*__GNUC__*/</span><span class="preprocessor"></span></div> +<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span><span class="preprocessor">#define icalerror_assert(test,message) \</span></div> +<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span><span class="preprocessor"> fprintf(stderr, "%s:%d: %s\n"</span>, __FILE__, __LINE__, message); \</div> +<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> icalerror_stop_here(); \</div> +<div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> abort();}</div> +<div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span><span class="preprocessor">#endif </span><span class="comment">/*__GNUC__*/</span><span class="preprocessor"></span></div> +<div class="line"><a id="l00418" name="l00418"></a><span class="lineno"> 418</span> </div> +<div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span><span class="preprocessor">#else </span><span class="comment">/* ICAL_ERRORS_ARE_FATAL */</span><span class="preprocessor"></span></div> +<div class="line"><a id="l00420" name="l00420"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a44c46ab691b1a16f61b796350dc01bed"> 420</a></span><span class="preprocessor">#define icalerror_assert(test,message)</span></div> +<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span><span class="preprocessor">#endif </span><span class="comment">/* ICAL_ERRORS_ARE_FATAL */</span><span class="preprocessor"></span></div> +<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> </div> +<div class="line"><a id="l00441" name="l00441"></a><span class="lineno"><a class="line" href="icalerror_8h.html#afef4004abbb97d2599d131948655ae89"> 441</a></span><span class="preprocessor">#define icalerror_check_arg(test,arg) \</span></div> +<div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span><span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> +<div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span><span class="preprocessor">}</span></div> +<div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span> </div> +<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a00245be23d5c2d4801c9ed74e1da6f6a"> 465</a></span><span class="preprocessor">#define icalerror_check_arg_rv(test,arg) \</span></div> +<div class="line"><a id="l00466" name="l00466"></a><span class="lineno"> 466</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00467" name="l00467"></a><span class="lineno"> 467</span><span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> +<div class="line"><a id="l00468" name="l00468"></a><span class="lineno"> 468</span><span class="preprocessor"> return; \</span></div> +<div class="line"><a id="l00469" name="l00469"></a><span class="lineno"> 469</span><span class="preprocessor">}</span></div> +<div class="line"><a id="l00470" name="l00470"></a><span class="lineno"> 470</span> </div> +<div class="line"><a id="l00491" name="l00491"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a95198bf515920804672520856c300666"> 491</a></span><span class="preprocessor">#define icalerror_check_arg_rz(test,arg) \</span></div> +<div class="line"><a id="l00492" name="l00492"></a><span class="lineno"> 492</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00493" name="l00493"></a><span class="lineno"> 493</span><span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> +<div class="line"><a id="l00494" name="l00494"></a><span class="lineno"> 494</span><span class="preprocessor"> return 0; \</span></div> +<div class="line"><a id="l00495" name="l00495"></a><span class="lineno"> 495</span><span class="preprocessor">}</span></div> +<div class="line"><a id="l00496" name="l00496"></a><span class="lineno"> 496</span> </div> +<div class="line"><a id="l00518" name="l00518"></a><span class="lineno"><a class="line" href="icalerror_8h.html#ae163052ebae24e2026bf54108b10b914"> 518</a></span><span class="preprocessor">#define icalerror_check_arg_re(test,arg,error) \</span></div> +<div class="line"><a id="l00519" name="l00519"></a><span class="lineno"> 519</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00520" name="l00520"></a><span class="lineno"> 520</span><span class="preprocessor"> icalerror_stop_here(); \</span></div> +<div class="line"><a id="l00521" name="l00521"></a><span class="lineno"> 521</span><span class="preprocessor"> assert(0); \</span></div> +<div class="line"><a id="l00522" name="l00522"></a><span class="lineno"> 522</span><span class="preprocessor"> return error; \</span></div> +<div class="line"><a id="l00523" name="l00523"></a><span class="lineno"> 523</span><span class="preprocessor">}</span></div> +<div class="line"><a id="l00524" name="l00524"></a><span class="lineno"> 524</span> </div> +<div class="line"><a id="l00546" name="l00546"></a><span class="lineno"><a class="line" href="icalerror_8h.html#a7a71f70509be32e3e54edbaf3b45571a"> 546</a></span><span class="preprocessor">#define icalerror_check_arg_rx(test,arg,x) \</span></div> +<div class="line"><a id="l00547" name="l00547"></a><span class="lineno"> 547</span><span class="preprocessor">if (!(test)) { \</span></div> +<div class="line"><a id="l00548" name="l00548"></a><span class="lineno"> 548</span><span class="preprocessor"> icalerror_set_errno(ICAL_BADARG_ERROR); \</span></div> +<div class="line"><a id="l00549" name="l00549"></a><span class="lineno"> 549</span><span class="preprocessor"> return x; \</span></div> +<div class="line"><a id="l00550" name="l00550"></a><span class="lineno"> 550</span><span class="preprocessor">}</span></div> +<div class="line"><a id="l00551" name="l00551"></a><span class="lineno"> 551</span> </div> +<div class="line"><a id="l00552" name="l00552"></a><span class="lineno"> 552</span><span class="comment">/* String interfaces to set an error to NONFATAL and restore it to its original value */</span></div> +<div class="line"><a id="l00553" name="l00553"></a><span class="lineno"> 553</span> </div> +<div class="line"><a id="l00569" name="l00569"></a><span class="lineno"> 569</span>LIBICAL_ICAL_EXPORT <a class="code hl_enumeration" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> <a class="code hl_function" href="icalerror_8h.html#af226f2c41272dabecd03ec9807d3a1e2">icalerror_supress</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *error);</div> +<div class="line"><a id="l00570" name="l00570"></a><span class="lineno"> 570</span> </div> +<div class="line"><a id="l00589" name="l00589"></a><span class="lineno"> 589</span>LIBICAL_ICAL_EXPORT <span class="keywordtype">void</span> <a class="code hl_function" href="icalerror_8h.html#a8377dadcd17bf305d1931aa2518c321a">icalerror_restore</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *error, <a class="code hl_enumeration" href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a> es);</div> +<div class="line"><a id="l00590" name="l00590"></a><span class="lineno"> 590</span> </div> +<div class="line"><a id="l00591" name="l00591"></a><span class="lineno"> 591</span><span class="preprocessor">#endif </span><span class="comment">/* !ICALERROR_H */</span><span class="preprocessor"></span></div> +<div class="ttc" id="aicalerror_8h_html_a03f44629289ba66eaf29e199ec9ec4b7"><div class="ttname"><a href="icalerror_8h.html#a03f44629289ba66eaf29e199ec9ec4b7">icalerrno_return</a></div><div class="ttdeci">icalerrorenum * icalerrno_return(void)</div><div class="ttdoc">Returns the current icalerrno value.</div><div class="ttdef"><b>Definition:</b> icalerror.c:70</div></div> +<div class="ttc" id="aicalerror_8h_html_a05941b21472c45d4b3654cb7d94bf3e8"><div class="ttname"><a href="icalerror_8h.html#a05941b21472c45d4b3654cb7d94bf3e8">icalerror_set_errors_are_fatal</a></div><div class="ttdeci">void icalerror_set_errors_are_fatal(int fatal)</div><div class="ttdoc">Change if errors are fatal.</div><div class="ttdef"><b>Definition:</b> icalerror.c:106</div></div> +<div class="ttc" id="aicalerror_8h_html_a0cbc33f05e014e767bd92b04bfb92f62"><div class="ttname"><a href="icalerror_8h.html#a0cbc33f05e014e767bd92b04bfb92f62">icalerror_crash_here</a></div><div class="ttdeci">void icalerror_crash_here(void)</div><div class="ttdoc">Triggered to abort the process.</div><div class="ttdef"><b>Definition:</b> icalerror.c:84</div></div> +<div class="ttc" id="aicalerror_8h_html_a1c741ef8219eebc325e53851aa9e8f00"><div class="ttname"><a href="icalerror_8h.html#a1c741ef8219eebc325e53851aa9e8f00">ical_bt</a></div><div class="ttdeci">void ical_bt(void)</div><div class="ttdoc">Prints backtrace.</div><div class="ttdef"><b>Definition:</b> icalerror.c:260</div></div> <div class="ttc" id="aicalerror_8h_html_a3cb9a92508be773fbb4dba7c658443d3"><div class="ttname"><a href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3">icalerrorstate</a></div><div class="ttdeci">icalerrorstate</div><div class="ttdoc">Determine if an error is fatal or non-fatal.</div><div class="ttdef"><b>Definition:</b> icalerror.h:215</div></div> <div class="ttc" id="aicalerror_8h_html_a3cb9a92508be773fbb4dba7c658443d3a5afdd784a33990b7a717f827c077737f"><div class="ttname"><a href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a5afdd784a33990b7a717f827c077737f">ICAL_ERROR_UNKNOWN</a></div><div class="ttdeci">@ ICAL_ERROR_UNKNOWN</div><div class="ttdef"><b>Definition:</b> icalerror.h:226</div></div> <div class="ttc" id="aicalerror_8h_html_a3cb9a92508be773fbb4dba7c658443d3a6a2c3dc27d17100317eadcc4156a9442"><div class="ttname"><a href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3a6a2c3dc27d17100317eadcc4156a9442">ICAL_ERROR_FATAL</a></div><div class="ttdeci">@ ICAL_ERROR_FATAL</div><div class="ttdef"><b>Definition:</b> icalerror.h:217</div></div> <div class="ttc" id="aicalerror_8h_html_a3cb9a92508be773fbb4dba7c658443d3aa8624e525ff7c52b30310134230ba1e6"><div class="ttname"><a href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aa8624e525ff7c52b30310134230ba1e6">ICAL_ERROR_DEFAULT</a></div><div class="ttdeci">@ ICAL_ERROR_DEFAULT</div><div class="ttdef"><b>Definition:</b> icalerror.h:223</div></div> <div class="ttc" id="aicalerror_8h_html_a3cb9a92508be773fbb4dba7c658443d3aee5a5c75923a46b30105a272b75339b6"><div class="ttname"><a href="icalerror_8h.html#a3cb9a92508be773fbb4dba7c658443d3aee5a5c75923a46b30105a272b75339b6">ICAL_ERROR_NONFATAL</a></div><div class="ttdeci">@ ICAL_ERROR_NONFATAL</div><div class="ttdef"><b>Definition:</b> icalerror.h:220</div></div> -<div class="ttc" id="aicalerror_8h_html_a44fa677ba623cdcebe9e38b03cd08389"><div class="ttname"><a href="icalerror_8h.html#a44fa677ba623cdcebe9e38b03cd08389">icalerror_get_errors_are_fatal</a></div><div class="ttdeci">int icalerror_get_errors_are_fatal(void)</div><div class="ttdoc">Determine if errors are fatal.</div><div class="ttdef"><b>Definition:</b> icalerror.c:114</div></div> -<div class="ttc" id="aicalerror_8h_html_a55b38314ff59cf335de4b0d32ebff149"><div class="ttname"><a href="icalerror_8h.html#a55b38314ff59cf335de4b0d32ebff149">icalerror_perror</a></div><div class="ttdeci">const char * icalerror_perror(void)</div><div class="ttdoc">Returns the description string for the current error in icalerrno.</div><div class="ttdef"><b>Definition:</b> icalerror.c:212</div></div> -<div class="ttc" id="aicalerror_8h_html_a5fe3cbc229f74250b59c077e21abf82d"><div class="ttname"><a href="icalerror_8h.html#a5fe3cbc229f74250b59c077e21abf82d">icalerror_get_error_state</a></div><div class="ttdeci">icalerrorstate icalerror_get_error_state(icalerrorenum error)</div><div class="ttdoc">Gets the error state (severity) for a given error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:237</div></div> +<div class="ttc" id="aicalerror_8h_html_a44fa677ba623cdcebe9e38b03cd08389"><div class="ttname"><a href="icalerror_8h.html#a44fa677ba623cdcebe9e38b03cd08389">icalerror_get_errors_are_fatal</a></div><div class="ttdeci">int icalerror_get_errors_are_fatal(void)</div><div class="ttdoc">Determine if errors are fatal.</div><div class="ttdef"><b>Definition:</b> icalerror.c:111</div></div> +<div class="ttc" id="aicalerror_8h_html_a5c3975fee79ab587467be6531497dbbc"><div class="ttname"><a href="icalerror_8h.html#a5c3975fee79ab587467be6531497dbbc">icalerror_perror</a></div><div class="ttdeci">const char * icalerror_perror(void)</div><div class="ttdoc">Returns the description string for the current error in icalerrno.</div><div class="ttdef"><b>Definition:</b> icalerror.c:209</div></div> +<div class="ttc" id="aicalerror_8h_html_a5fe3cbc229f74250b59c077e21abf82d"><div class="ttname"><a href="icalerror_8h.html#a5fe3cbc229f74250b59c077e21abf82d">icalerror_get_error_state</a></div><div class="ttdeci">icalerrorstate icalerror_get_error_state(icalerrorenum error)</div><div class="ttdoc">Gets the error state (severity) for a given error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:234</div></div> <div class="ttc" id="aicalerror_8h_html_a601c122fcea522513b1b7732fa23e833"><div class="ttname"><a href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833">icalerrorenum</a></div><div class="ttdeci">icalerrorenum</div><div class="ttdoc">Represents the different types of errors that can be triggered in libical.</div><div class="ttdef"><b>Definition:</b> icalerror.h:76</div></div> <div class="ttc" id="aicalerror_8h_html_a601c122fcea522513b1b7732fa23e833a055394ffaf6701aa12491dc10767f07d"><div class="ttname"><a href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a055394ffaf6701aa12491dc10767f07d">ICAL_NEWFAILED_ERROR</a></div><div class="ttdeci">@ ICAL_NEWFAILED_ERROR</div><div class="ttdef"><b>Definition:</b> icalerror.h:84</div></div> <div class="ttc" id="aicalerror_8h_html_a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1"><div class="ttname"><a href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833a2cc8bbcd8c07fc9a16e36f7aae5757b1">ICAL_BADARG_ERROR</a></div><div class="ttdeci">@ ICAL_BADARG_ERROR</div><div class="ttdef"><b>Definition:</b> icalerror.h:81</div></div> @@ -285,19 +285,18 @@ $(function() { <div class="ttc" id="aicalerror_8h_html_a601c122fcea522513b1b7732fa23e833ac7e8ee36834bde1f2ee7b680700a8deb"><div class="ttname"><a href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ac7e8ee36834bde1f2ee7b680700a8deb">ICAL_PARSE_ERROR</a></div><div class="ttdeci">@ ICAL_PARSE_ERROR</div><div class="ttdef"><b>Definition:</b> icalerror.h:93</div></div> <div class="ttc" id="aicalerror_8h_html_a601c122fcea522513b1b7732fa23e833ad9376ffaf63b7fdb07eec0c0587c33f7"><div class="ttname"><a href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833ad9376ffaf63b7fdb07eec0c0587c33f7">ICAL_UNIMPLEMENTED_ERROR</a></div><div class="ttdeci">@ ICAL_UNIMPLEMENTED_ERROR</div><div class="ttdef"><b>Definition:</b> icalerror.h:105</div></div> <div class="ttc" id="aicalerror_8h_html_a601c122fcea522513b1b7732fa23e833adcf918ddc612831de72aa3749d39b5c6"><div class="ttname"><a href="icalerror_8h.html#a601c122fcea522513b1b7732fa23e833adcf918ddc612831de72aa3749d39b5c6">ICAL_USAGE_ERROR</a></div><div class="ttdeci">@ ICAL_USAGE_ERROR</div><div class="ttdef"><b>Definition:</b> icalerror.h:102</div></div> -<div class="ttc" id="aicalerror_8h_html_a777a41722836b68ffb27ae5a746a14b4"><div class="ttname"><a href="icalerror_8h.html#a777a41722836b68ffb27ae5a746a14b4">icalerror_set_error_state</a></div><div class="ttdeci">void icalerror_set_error_state(icalerrorenum error, icalerrorstate state)</div><div class="ttdoc">Sets the icalerrorstate for a given icalerrorenum error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:226</div></div> -<div class="ttc" id="aicalerror_8h_html_a8266eaa216926b6703a0ef31cd99f0b2"><div class="ttname"><a href="icalerror_8h.html#a8266eaa216926b6703a0ef31cd99f0b2">icalerror_set_errno</a></div><div class="ttdeci">void icalerror_set_errno(icalerrorenum x)</div><div class="ttdoc">Sets the icalerrno to a given error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:120</div></div> -<div class="ttc" id="aicalerror_8h_html_a8377dadcd17bf305d1931aa2518c321a"><div class="ttname"><a href="icalerror_8h.html#a8377dadcd17bf305d1931aa2518c321a">icalerror_restore</a></div><div class="ttdeci">void icalerror_restore(const char *error, icalerrorstate es)</div><div class="ttdef"><b>Definition:</b> icalerror.c:217</div></div> -<div class="ttc" id="aicalerror_8h_html_a9102f6b721a280151c7858860707171b"><div class="ttname"><a href="icalerror_8h.html#a9102f6b721a280151c7858860707171b">icalerror_stop_here</a></div><div class="ttdeci">void icalerror_stop_here(void)</div><div class="ttdoc">Triggered before any error is called.</div><div class="ttdef"><b>Definition:</b> icalerror.c:80</div></div> -<div class="ttc" id="aicalerror_8h_html_a9b60700869241af095f0604f35b1c446"><div class="ttname"><a href="icalerror_8h.html#a9b60700869241af095f0604f35b1c446">icalerror_error_from_string</a></div><div class="ttdeci">icalerrorenum icalerror_error_from_string(const char *str)</div><div class="ttdoc">Reads an error from a string.</div><div class="ttdef"><b>Definition:</b> icalerror.c:184</div></div> -<div class="ttc" id="aicalerror_8h_html_aafe7575af3bfd0754deaad7eecae38e5"><div class="ttname"><a href="icalerror_8h.html#aafe7575af3bfd0754deaad7eecae38e5">icalerrno_return</a></div><div class="ttdeci">icalerrorenum * icalerrno_return(void)</div><div class="ttdoc">Returns the current icalerrno value.</div><div class="ttdef"><b>Definition:</b> icalerror.c:71</div></div> -<div class="ttc" id="aicalerror_8h_html_ace2dcbae58882ed326b4716bf54842cc"><div class="ttname"><a href="icalerror_8h.html#ace2dcbae58882ed326b4716bf54842cc">icalerror_strerror</a></div><div class="ttdeci">const char * icalerror_strerror(icalerrorenum e)</div><div class="ttdoc">Finds the description string for error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:250</div></div> -<div class="ttc" id="aicalerror_8h_html_ae87b46acb90ce9fee0fa377fd9b57c28"><div class="ttname"><a href="icalerror_8h.html#ae87b46acb90ce9fee0fa377fd9b57c28">icalerror_clear_errno</a></div><div class="ttdeci">void icalerror_clear_errno(void)</div><div class="ttdoc">Resets icalerrno to ICAL_NO_ERROR.</div><div class="ttdef"><b>Definition:</b> icalerror.c:98</div></div> -<div class="ttc" id="aicalerror_8h_html_af226f2c41272dabecd03ec9807d3a1e2"><div class="ttname"><a href="icalerror_8h.html#af226f2c41272dabecd03ec9807d3a1e2">icalerror_supress</a></div><div class="ttdeci">icalerrorstate icalerror_supress(const char *error)</div><div class="ttdoc">Suppresses a given error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:197</div></div> +<div class="ttc" id="aicalerror_8h_html_a777a41722836b68ffb27ae5a746a14b4"><div class="ttname"><a href="icalerror_8h.html#a777a41722836b68ffb27ae5a746a14b4">icalerror_set_error_state</a></div><div class="ttdeci">void icalerror_set_error_state(icalerrorenum error, icalerrorstate state)</div><div class="ttdoc">Sets the icalerrorstate for a given icalerrorenum error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:223</div></div> +<div class="ttc" id="aicalerror_8h_html_a78e30857b73490e23848b92459510b8c"><div class="ttname"><a href="icalerror_8h.html#a78e30857b73490e23848b92459510b8c">icalerror_strerror</a></div><div class="ttdeci">const char * icalerror_strerror(icalerrorenum e)</div><div class="ttdoc">Finds the description string for error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:247</div></div> +<div class="ttc" id="aicalerror_8h_html_a8266eaa216926b6703a0ef31cd99f0b2"><div class="ttname"><a href="icalerror_8h.html#a8266eaa216926b6703a0ef31cd99f0b2">icalerror_set_errno</a></div><div class="ttdeci">void icalerror_set_errno(icalerrorenum x)</div><div class="ttdoc">Sets the icalerrno to a given error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:117</div></div> +<div class="ttc" id="aicalerror_8h_html_a8377dadcd17bf305d1931aa2518c321a"><div class="ttname"><a href="icalerror_8h.html#a8377dadcd17bf305d1931aa2518c321a">icalerror_restore</a></div><div class="ttdeci">void icalerror_restore(const char *error, icalerrorstate es)</div><div class="ttdef"><b>Definition:</b> icalerror.c:214</div></div> +<div class="ttc" id="aicalerror_8h_html_a9102f6b721a280151c7858860707171b"><div class="ttname"><a href="icalerror_8h.html#a9102f6b721a280151c7858860707171b">icalerror_stop_here</a></div><div class="ttdeci">void icalerror_stop_here(void)</div><div class="ttdoc">Triggered before any error is called.</div><div class="ttdef"><b>Definition:</b> icalerror.c:79</div></div> +<div class="ttc" id="aicalerror_8h_html_a9b60700869241af095f0604f35b1c446"><div class="ttname"><a href="icalerror_8h.html#a9b60700869241af095f0604f35b1c446">icalerror_error_from_string</a></div><div class="ttdeci">icalerrorenum icalerror_error_from_string(const char *str)</div><div class="ttdoc">Reads an error from a string.</div><div class="ttdef"><b>Definition:</b> icalerror.c:181</div></div> +<div class="ttc" id="aicalerror_8h_html_ae87b46acb90ce9fee0fa377fd9b57c28"><div class="ttname"><a href="icalerror_8h.html#ae87b46acb90ce9fee0fa377fd9b57c28">icalerror_clear_errno</a></div><div class="ttdeci">void icalerror_clear_errno(void)</div><div class="ttdoc">Resets icalerrno to ICAL_NO_ERROR.</div><div class="ttdef"><b>Definition:</b> icalerror.c:95</div></div> +<div class="ttc" id="aicalerror_8h_html_af226f2c41272dabecd03ec9807d3a1e2"><div class="ttname"><a href="icalerror_8h.html#af226f2c41272dabecd03ec9807d3a1e2">icalerror_supress</a></div><div class="ttdeci">icalerrorstate icalerror_supress(const char *error)</div><div class="ttdoc">Suppresses a given error.</div><div class="ttdef"><b>Definition:</b> icalerror.c:194</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> -Generated on Sat Apr 9 2022 08:46:36 for Libical API Documentation by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 +Generated on Thu Jun 9 2022 13:07:03 for Libical API Documentation by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </small></address> </body> </html> |