summaryrefslogtreecommitdiff
path: root/debug_8h_source.html
blob: 996c03104f95b5b7c31d90e74319d414090f497f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>navit: debug.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">navit
   &#160;<span id="projectnumber">0.5.3-trunk</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('debug_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">debug.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="debug_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>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef NAVIT_DEBUG_H</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define NAVIT_DEBUG_H</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;stdarg.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#ifdef _MSC_VER</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define __PRETTY_FUNCTION__ __FUNCTION__</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment">/* Uncomment the following define to enable MSVC&#39;s memory debugging support */</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">/*#define _CRTDBG_MAP_ALLOC*/</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#ifdef _CRTDBG_MAP_ALLOC</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;crtdbg.h&gt;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25">   42</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aae2dc85ebf9ab0dd80152e134ee40c80">   44</a></span>&#160;        <a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aae2dc85ebf9ab0dd80152e134ee40c80">lvl_unset</a>=-1,</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb">   46</a></span>&#160;        <a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb">lvl_error</a>,</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25ae8f0c4875bfa25147150a74f41c86c53">   48</a></span>&#160;        <a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25ae8f0c4875bfa25147150a74f41c86c53">lvl_warning</a>,</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a6e67a0649f81060a391cfe102acbd707">   50</a></span>&#160;        <a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a6e67a0649f81060a391cfe102acbd707">lvl_info</a>,</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4">   52</a></span>&#160;        <a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4">lvl_debug</a></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;} <a class="code" href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25">dbg_level</a>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="keyword">extern</span> dbg_level <a class="code" href="debug_8h.html#ae6a5410a3f6ce467cccb058b86ed663e">max_debug_level</a>;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="debug_8h.html#a34e1f8f7f7c4c092929b4bd73b060ce3">   56</a></span>&#160;<span class="preprocessor">#define dbg_str2(x) #x</span></div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="debug_8h.html#ab574e88dbe8195db84940f29a5bd0fe6">   57</a></span>&#160;<span class="preprocessor">#define dbg_str1(x) dbg_str2(x)</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="debug_8h.html#a4170720203b058030370af11ee9267fa">   58</a></span>&#160;<span class="preprocessor">#define dbg_module dbg_str1(MODULE)</span></div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="debug_8h.html#aba3c0ccefe6daa8941b173073268729e">   59</a></span>&#160;<span class="preprocessor">#define dbg(level,...) { if (max_debug_level &gt;= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); }</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">   60</a></span>&#160;<span class="preprocessor">#define dbg_assert(expr) ((expr) ? (void) 0 : debug_assert_fail(dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),__FILE__,__LINE__,dbg_str1(expr)))</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="debug_8h.html#ae3f2738185193d0a5ca09a7b2734c05e">   62</a></span>&#160;<span class="preprocessor">#define DEBUG_MODULE_GLOBAL &quot;global&quot;</span></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#ifdef DEBUG_MALLOC</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#undef g_new</span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#undef g_new0</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#define g_new(type, size) (type *)debug_malloc(__FILE__,__LINE__,__PRETTY_FUNCTION__,sizeof(type)*(size))</span></div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#define g_new0(type, size) (type *)debug_malloc0(__FILE__,__LINE__,__PRETTY_FUNCTION__,sizeof(type)*(size))</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#define g_malloc(size) debug_malloc(__FILE__,__LINE__,__PRETTY_FUNCTION__,(size))</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#define g_malloc0(size) debug_malloc0(__FILE__,__LINE__,__PRETTY_FUNCTION__,(size))</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor">#define g_realloc(ptr,size) debug_realloc(__FILE__,__LINE__,__PRETTY_FUNCTION__,ptr,(size))</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#define g_free(ptr) debug_free(__FILE__,__LINE__,__PRETTY_FUNCTION__,ptr)</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">#define g_strdup(ptr) debug_strdup(__FILE__,__LINE__,__PRETTY_FUNCTION__,ptr)</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#define g_strdup_printf(fmt...) debug_guard(__FILE__,__LINE__,__PRETTY_FUNCTION__,g_strdup_printf(fmt))</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">#define graphics_icon_path(x) debug_guard(__FILE__,__LINE__,__PRETTY_FUNCTION__,graphics_icon_path(x))</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">#define dbg_guard(x) debug_guard(__FILE__,__LINE__,__PRETTY_FUNCTION__,x)</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#define g_free_func debug_free_func</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="preprocessor">#else</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="debug_8h.html#a473ad2646fb4369e125569ef901da176">   79</a></span>&#160;<span class="preprocessor">#define g_free_func g_free</span></div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="debug_8h.html#a22486e4059e2a356632d39b66f443015">   80</a></span>&#160;<span class="preprocessor">#define dbg_guard(x) x</span></div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment">/* prototypes */</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">struct </span><a class="code" href="structattr.html">attr</a>;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keyword">struct </span><a class="code" href="pedestrian_8c.html#a7f0158669de514eb00dcf8d3a7408285">debug</a>;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#af6d578b0504da81ebf1c0bb0b5d57952">debug_init</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *program_name);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#af9b547b2d788ff9d24e2ee9f25f5718e">debug_level_set</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="street_8c.html#afd3f693e384b1ee0a0c44d58351eb87d">name</a>, dbg_level <a class="code" href="structlevel.html">level</a>);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="keyword">struct </span><a class="code" href="pedestrian_8c.html#a7f0158669de514eb00dcf8d3a7408285">debug</a> *<a class="code" href="debug_8h.html#ae3316b1613ab58d3a26da3c4fdd710c0">debug_new</a>(<span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> *<a class="code" href="structparent.html">parent</a>, <span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> **attrs);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;dbg_level <a class="code" href="debug_8h.html#a9a8d30aba205c347a6c4533deda2b80f">debug_level_get</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="street_8c.html#afd3f693e384b1ee0a0c44d58351eb87d">name</a>);</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a571b0687631593ccf85d2205e06229a1">debug_vprintf</a>(dbg_level <a class="code" href="structlevel.html">level</a>, <span class="keyword">const</span> <span class="keywordtype">char</span> *module, <span class="keyword">const</span> <span class="keywordtype">int</span> mlen, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> flen, <span class="keywordtype">int</span> prefix, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_list ap);</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a0216fe3aae211a3db82a5f53d20d62a1">debug_printf</a>(dbg_level <a class="code" href="structlevel.html">level</a>, <span class="keyword">const</span> <span class="keywordtype">char</span> *module, <span class="keyword">const</span> <span class="keywordtype">int</span> mlen, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> flen, <span class="keywordtype">int</span> prefix, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ...)</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">#ifdef  __GNUC__</span></div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <a class="code" href="garmin__img_8c.html#a1ce5f564d3316e642889f75451e86ab2">__attribute__</a> ((format (printf, 7, 8)))</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#adf74b10840627ad7fda59d4ddb70abbd">debug_assert_fail</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *module, <span class="keyword">const</span> <span class="keywordtype">int</span> mlen, <span class="keyword">const</span> <span class="keywordtype">char</span> *<span class="keyword">function</span>, <span class="keyword">const</span> <span class="keywordtype">int</span> flen, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structfile.html">file</a>, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *expr);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#ac5bad2858fb5f4c693b12ac6dabd244e">debug_destroy</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a44d763afb7f1839bbcea6048f1993b15">debug_set_logfile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *path);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a13c790e8295c8cda1b8d14c68d70e317">debug_dump_mallocs</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="debug_8h.html#a8956444f05ebebfa1ca73a5c0ad320a6">debug_malloc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *where, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keywordtype">int</span> <a class="code" href="garmin__img_8c.html#ad2d6a0619c2be768bdc2eeade6cc3073">size</a>);</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="debug_8h.html#abe91e8ac092949be49a3f58fd4c551db">debug_malloc0</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *where, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keywordtype">int</span> <a class="code" href="garmin__img_8c.html#ad2d6a0619c2be768bdc2eeade6cc3073">size</a>);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="debug_8h.html#a12bd8b009d2d2e0ba12e96d83ce2381b">debug_strdup</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *where, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keyword">const</span> <span class="keywordtype">char</span> *ptr);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keywordtype">char</span> *<a class="code" href="debug_8h.html#a5b91d5b696d837a3c0dd86a2350f5726">debug_guard</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *where, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#ae528d3be392f0649f9776c46715c9d5a">debug_free</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *where, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keywordtype">void</span> *ptr);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a87b286eb81ccfa732b9cdd28aae3a789">debug_free_func</a>(<span class="keywordtype">void</span> *ptr);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#aa82387ac32876840f698dcc7d14a4ad1">debug_finished</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keywordtype">void</span> *<a class="code" href="debug_8h.html#a9591c78d4b6f1e9a9f98583cc41a18cd">debug_realloc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *where, <span class="keywordtype">int</span> line, <span class="keyword">const</span> <span class="keywordtype">char</span> *func, <span class="keywordtype">void</span> *ptr, <span class="keywordtype">int</span> <a class="code" href="garmin__img_8c.html#ad2d6a0619c2be768bdc2eeade6cc3073">size</a>);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keywordtype">void</span> <a class="code" href="debug_8h.html#a3db96d85ed654eaba09decf2ae318f42">debug_set_global_level</a>(dbg_level level, <span class="keywordtype">int</span> override_old_value);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="comment">/* end of prototypes */</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;}</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div><div class="ttc" id="debug_8h_html_af9b547b2d788ff9d24e2ee9f25f5718e"><div class="ttname"><a href="debug_8h.html#af9b547b2d788ff9d24e2ee9f25f5718e">debug_level_set</a></div><div class="ttdeci">void debug_level_set(const char *name, dbg_level level)</div><div class="ttdef"><b>Definition:</b> debug.c:114</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25a6e67a0649f81060a391cfe102acbd707"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a6e67a0649f81060a391cfe102acbd707">lvl_info</a></div><div class="ttdef"><b>Definition:</b> debug.h:50</div></div>
<div class="ttc" id="debug_8h_html_ae528d3be392f0649f9776c46715c9d5a"><div class="ttname"><a href="debug_8h.html#ae528d3be392f0649f9776c46715c9d5a">debug_free</a></div><div class="ttdeci">void debug_free(const char *where, int line, const char *func, void *ptr)</div><div class="ttdef"><b>Definition:</b> debug.c:544</div></div>
<div class="ttc" id="debug_8h_html_a87b286eb81ccfa732b9cdd28aae3a789"><div class="ttname"><a href="debug_8h.html#a87b286eb81ccfa732b9cdd28aae3a789">debug_free_func</a></div><div class="ttdeci">void debug_free_func(void *ptr)</div><div class="ttdef"><b>Definition:</b> debug.c:568</div></div>
<div class="ttc" id="debug_8h_html_a9591c78d4b6f1e9a9f98583cc41a18cd"><div class="ttname"><a href="debug_8h.html#a9591c78d4b6f1e9a9f98583cc41a18cd">debug_realloc</a></div><div class="ttdeci">void * debug_realloc(const char *where, int line, const char *func, void *ptr, int size)</div><div class="ttdef"><b>Definition:</b> debug.c:518</div></div>
<div class="ttc" id="structparent_html"><div class="ttname"><a href="structparent.html">parent</a></div><div class="ttdef"><b>Definition:</b> gpx2navit_txt.h:51</div></div>
<div class="ttc" id="garmin__img_8c_html_ad2d6a0619c2be768bdc2eeade6cc3073"><div class="ttname"><a href="garmin__img_8c.html#ad2d6a0619c2be768bdc2eeade6cc3073">size</a></div><div class="ttdeci">int size</div><div class="ttdef"><b>Definition:</b> garmin_img.c:124</div></div>
<div class="ttc" id="structlevel_html"><div class="ttname"><a href="structlevel.html">level</a></div><div class="ttdef"><b>Definition:</b> garmin_img.c:476</div></div>
<div class="ttc" id="garmin__img_8c_html_a1ce5f564d3316e642889f75451e86ab2"><div class="ttname"><a href="garmin__img_8c.html#a1ce5f564d3316e642889f75451e86ab2">__attribute__</a></div><div class="ttdeci">struct map_priv __attribute__</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25aae2dc85ebf9ab0dd80152e134ee40c80"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aae2dc85ebf9ab0dd80152e134ee40c80">lvl_unset</a></div><div class="ttdef"><b>Definition:</b> debug.h:44</div></div>
<div class="ttc" id="debug_8h_html_abe91e8ac092949be49a3f58fd4c551db"><div class="ttname"><a href="debug_8h.html#abe91e8ac092949be49a3f58fd4c551db">debug_malloc0</a></div><div class="ttdeci">void * debug_malloc0(const char *where, int line, const char *func, int size)</div><div class="ttdef"><b>Definition:</b> debug.c:511</div></div>
<div class="ttc" id="debug_8h_html_a12bd8b009d2d2e0ba12e96d83ce2381b"><div class="ttname"><a href="debug_8h.html#a12bd8b009d2d2e0ba12e96d83ce2381b">debug_strdup</a></div><div class="ttdeci">char * debug_strdup(const char *where, int line, const char *func, const char *ptr)</div><div class="ttdef"><b>Definition:</b> debug.c:526</div></div>
<div class="ttc" id="debug_8h_html_adf74b10840627ad7fda59d4ddb70abbd"><div class="ttname"><a href="debug_8h.html#adf74b10840627ad7fda59d4ddb70abbd">debug_assert_fail</a></div><div class="ttdeci">void debug_assert_fail(const char *module, const int mlen, const char *function, const int flen, const char *file, int line, const char *expr)</div><div class="ttdef"><b>Definition:</b> debug.c:420</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25ae8f0c4875bfa25147150a74f41c86c53"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25ae8f0c4875bfa25147150a74f41c86c53">lvl_warning</a></div><div class="ttdef"><b>Definition:</b> debug.h:48</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25">dbg_level</a></div><div class="ttdeci">dbg_level</div><div class="ttdef"><b>Definition:</b> debug.h:42</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25a83f9ab2a71d2244b99268510714e94fb">lvl_error</a></div><div class="ttdef"><b>Definition:</b> debug.h:46</div></div>
<div class="ttc" id="debug_8h_html_a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4"><div class="ttname"><a href="debug_8h.html#a3ce13c42b29fe2a7552478859b7f3c25aa4a22485b46e3407434f1093e42867d4">lvl_debug</a></div><div class="ttdef"><b>Definition:</b> debug.h:52</div></div>
<div class="ttc" id="debug_8h_html_a9a8d30aba205c347a6c4533deda2b80f"><div class="ttname"><a href="debug_8h.html#a9a8d30aba205c347a6c4533deda2b80f">debug_level_get</a></div><div class="ttdeci">dbg_level debug_level_get(const char *name)</div><div class="ttdef"><b>Definition:</b> debug.c:197</div></div>
<div class="ttc" id="debug_8h_html_a8956444f05ebebfa1ca73a5c0ad320a6"><div class="ttname"><a href="debug_8h.html#a8956444f05ebebfa1ca73a5c0ad320a6">debug_malloc</a></div><div class="ttdeci">void * debug_malloc(const char *where, int line, const char *func, int size)</div><div class="ttdef"><b>Definition:</b> debug.c:473</div></div>
<div class="ttc" id="debug_8h_html_a44d763afb7f1839bbcea6048f1993b15"><div class="ttname"><a href="debug_8h.html#a44d763afb7f1839bbcea6048f1993b15">debug_set_logfile</a></div><div class="ttdeci">void debug_set_logfile(const char *path)</div><div class="ttdef"><b>Definition:</b> debug.c:435</div></div>
<div class="ttc" id="debug_8h_html_ae6a5410a3f6ce467cccb058b86ed663e"><div class="ttname"><a href="debug_8h.html#ae6a5410a3f6ce467cccb058b86ed663e">max_debug_level</a></div><div class="ttdeci">dbg_level max_debug_level</div><div class="ttdef"><b>Definition:</b> debug.c:56</div></div>
<div class="ttc" id="debug_8h_html_aa82387ac32876840f698dcc7d14a4ad1"><div class="ttname"><a href="debug_8h.html#aa82387ac32876840f698dcc7d14a4ad1">debug_finished</a></div><div class="ttdeci">void debug_finished(void)</div><div class="ttdef"><b>Definition:</b> debug.c:572</div></div>
<div class="ttc" id="debug_8h_html_a3db96d85ed654eaba09decf2ae318f42"><div class="ttname"><a href="debug_8h.html#a3db96d85ed654eaba09decf2ae318f42">debug_set_global_level</a></div><div class="ttdeci">void debug_set_global_level(dbg_level level, int override_old_value)</div><div class="ttdef"><b>Definition:</b> debug.c:105</div></div>
<div class="ttc" id="structattr_html"><div class="ttname"><a href="structattr.html">attr</a></div><div class="ttdef"><b>Definition:</b> attr.h:157</div></div>
<div class="ttc" id="debug_8h_html_ae3316b1613ab58d3a26da3c4fdd710c0"><div class="ttname"><a href="debug_8h.html#ae3316b1613ab58d3a26da3c4fdd710c0">debug_new</a></div><div class="ttdeci">struct debug * debug_new(struct attr *parent, struct attr **attrs)</div><div class="ttdef"><b>Definition:</b> debug.c:158</div></div>
<div class="ttc" id="pedestrian_8c_html_a7f0158669de514eb00dcf8d3a7408285"><div class="ttname"><a href="pedestrian_8c.html#a7f0158669de514eb00dcf8d3a7408285">debug</a></div><div class="ttdeci">FILE * debug</div><div class="ttdef"><b>Definition:</b> pedestrian.c:423</div></div>
<div class="ttc" id="debug_8h_html_a13c790e8295c8cda1b8d14c68d70e317"><div class="ttname"><a href="debug_8h.html#a13c790e8295c8cda1b8d14c68d70e317">debug_dump_mallocs</a></div><div class="ttdeci">void debug_dump_mallocs(void)</div><div class="ttdef"><b>Definition:</b> debug.c:461</div></div>
<div class="ttc" id="debug_8h_html_a0216fe3aae211a3db82a5f53d20d62a1"><div class="ttname"><a href="debug_8h.html#a0216fe3aae211a3db82a5f53d20d62a1">debug_printf</a></div><div class="ttdeci">void debug_printf(dbg_level level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt,...)</div><div class="ttdef"><b>Definition:</b> debug.c:412</div></div>
<div class="ttc" id="street_8c_html_afd3f693e384b1ee0a0c44d58351eb87d"><div class="ttname"><a href="street_8c.html#afd3f693e384b1ee0a0c44d58351eb87d">name</a></div><div class="ttdeci">char name[0]</div><div class="ttdef"><b>Definition:</b> street.c:496</div></div>
<div class="ttc" id="debug_8h_html_ac5bad2858fb5f4c693b12ac6dabd244e"><div class="ttname"><a href="debug_8h.html#ac5bad2858fb5f4c693b12ac6dabd244e">debug_destroy</a></div><div class="ttdeci">void debug_destroy(void)</div><div class="ttdef"><b>Definition:</b> debug.c:426</div></div>
<div class="ttc" id="debug_8h_html_a5b91d5b696d837a3c0dd86a2350f5726"><div class="ttname"><a href="debug_8h.html#a5b91d5b696d837a3c0dd86a2350f5726">debug_guard</a></div><div class="ttdeci">char * debug_guard(const char *where, int line, const char *func, char *str)</div><div class="ttdef"><b>Definition:</b> debug.c:538</div></div>
<div class="ttc" id="debug_8h_html_a571b0687631593ccf85d2205e06229a1"><div class="ttname"><a href="debug_8h.html#a571b0687631593ccf85d2205e06229a1">debug_vprintf</a></div><div class="ttdeci">void debug_vprintf(dbg_level level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap)</div><div class="ttdoc">Write a log message. </div><div class="ttdef"><b>Definition:</b> debug.c:289</div></div>
<div class="ttc" id="debug_8h_html_af6d578b0504da81ebf1c0bb0b5d57952"><div class="ttname"><a href="debug_8h.html#af6d578b0504da81ebf1c0bb0b5d57952">debug_init</a></div><div class="ttdeci">void debug_init(const char *program_name)</div><div class="ttdef"><b>Definition:</b> debug.c:86</div></div>
<div class="ttc" id="structfile_html"><div class="ttname"><a href="structfile.html">file</a></div><div class="ttdef"><b>Definition:</b> file.h:36</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="debug_8h.html">debug.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>