diff options
author | raveit65 (via Travis CI) <[email protected]> | 2024-07-10 10:11:07 +0000 |
---|---|---|
committer | raveit65 (via Travis CI) <[email protected]> | 2024-07-10 10:11:07 +0000 |
commit | a600bd1bd7a15059374e6d527b23403a8133b410 (patch) | |
tree | 9d03a8fa5b961ad1f63ccf5cbf417fef8fccc330 /2023-11-25-191150-4354-cppcheck@be25688b3305_master | |
download | mate-calc-a600bd1bd7a15059374e6d527b23403a8133b410.tar.bz2 mate-calc-a600bd1bd7a15059374e6d527b23403a8133b410.tar.xz |
Deploy mate-desktop/mate-calc to github.com/mate-desktop/mate-calc.git:gh-pagesgh-pages
Diffstat (limited to '2023-11-25-191150-4354-cppcheck@be25688b3305_master')
54 files changed, 48202 insertions, 0 deletions
diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/0.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/0.html new file mode 100644 index 0000000..55b350e --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/0.html @@ -0,0 +1,1467 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/currency-manager.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> currency-manager.c</p> +<a href="0.html#line-11"> missingIncludeSystem 11</a><a href="0.html#line-13"> missingIncludeSystem 13</a><a href="0.html#line-14"> missingIncludeSystem 14</a><a href="0.html#line-15"> missingIncludeSystem 15</a><a href="0.html#line-16"> missingIncludeSystem 16</a><a href="0.html#line-17"> missingIncludeSystem 17</a><a href="0.html#line-18"> missingIncludeSystem 18</a><a href="0.html#line-19"> missingIncludeSystem 19</a><a href="0.html#line-20"> missingIncludeSystem 20</a><a href="0.html#line-375"> constVariablePointer 375</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><time.h></span><span class="error2"><--- Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gstdio.h></span><span class="error2"><--- Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span><span class="error2"><--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libxml/tree.h></span><span class="error2"><--- Include file: <libxml/tree.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libxml/parser.h></span><span class="error2"><--- Include file: <libxml/parser.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libxml/xpath.h></span><span class="error2"><--- Include file: <libxml/xpath.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-19" name="line-19"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libxml/xpathInternals.h></span><span class="error2"><--- Include file: <libxml/xpathInternals.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-20" name="line-20"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"currency-manager.h"</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">short_name</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">long_name</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="p">}</span><span class="w"> </span><span class="n">CurrencyInfo</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">CurrencyInfo</span><span class="w"> </span><span class="n">currency_info</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="p">{</span><span class="s">"AED"</span><span class="p">,</span><span class="w"> </span><span class="s">"إ.د"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"UAE Dirham"</span><span class="p">)},</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="p">{</span><span class="s">"AUD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Australian Dollar"</span><span class="p">)},</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="p">{</span><span class="s">"BGN"</span><span class="p">,</span><span class="w"> </span><span class="s">"лв"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Bulgarian Lev"</span><span class="p">)},</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="p">{</span><span class="s">"BHD"</span><span class="p">,</span><span class="w"> </span><span class="s">".ب.د"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Bahraini Dinar"</span><span class="p">)},</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="p">{</span><span class="s">"BND"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Brunei Dollar"</span><span class="p">)},</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="p">{</span><span class="s">"BRL"</span><span class="p">,</span><span class="w"> </span><span class="s">"R$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Brazilian Real"</span><span class="p">)},</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="p">{</span><span class="s">"BWP"</span><span class="p">,</span><span class="w"> </span><span class="s">"P"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Botswana Pula"</span><span class="p">)},</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="p">{</span><span class="s">"CAD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Canadian Dollar"</span><span class="p">)},</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="p">{</span><span class="s">"CFA"</span><span class="p">,</span><span class="w"> </span><span class="s">"Fr"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"CFA Franc"</span><span class="p">)},</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="p">{</span><span class="s">"CHF"</span><span class="p">,</span><span class="w"> </span><span class="s">"Fr"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Swiss Franc"</span><span class="p">)},</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="p">{</span><span class="s">"CLP"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Chilean Peso"</span><span class="p">)},</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="p">{</span><span class="s">"CNY"</span><span class="p">,</span><span class="w"> </span><span class="s">"元"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Chinese Yuan"</span><span class="p">)},</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="p">{</span><span class="s">"COP"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Colombian Peso"</span><span class="p">)},</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="p">{</span><span class="s">"CZK"</span><span class="p">,</span><span class="w"> </span><span class="s">"Kč"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Czech Koruna"</span><span class="p">)},</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="p">{</span><span class="s">"DKK"</span><span class="p">,</span><span class="w"> </span><span class="s">"kr"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Danish Krone"</span><span class="p">)},</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="p">{</span><span class="s">"DZD"</span><span class="p">,</span><span class="w"> </span><span class="s">"ج.د"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Algerian Dinar"</span><span class="p">)},</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="p">{</span><span class="s">"EEK"</span><span class="p">,</span><span class="w"> </span><span class="s">"KR"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Estonian Kroon"</span><span class="p">)},</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="p">{</span><span class="s">"EUR"</span><span class="p">,</span><span class="w"> </span><span class="s">"€"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Euro"</span><span class="p">)},</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="p">{</span><span class="s">"GBP"</span><span class="p">,</span><span class="w"> </span><span class="s">"£"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pound Sterling"</span><span class="p">)},</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="p">{</span><span class="s">"HKD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hong Kong Dollar"</span><span class="p">)},</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="p">{</span><span class="s">"HRK"</span><span class="p">,</span><span class="w"> </span><span class="s">"kn"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Croatian Kuna"</span><span class="p">)},</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">{</span><span class="s">"HUF"</span><span class="p">,</span><span class="w"> </span><span class="s">"Ft"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hungarian Forint"</span><span class="p">)},</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="p">{</span><span class="s">"IDR"</span><span class="p">,</span><span class="w"> </span><span class="s">"Rp"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Indonesian Rupiah"</span><span class="p">)},</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="p">{</span><span class="s">"ILS"</span><span class="p">,</span><span class="w"> </span><span class="s">"₪"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Israeli New Shekel"</span><span class="p">)},</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="p">{</span><span class="s">"INR"</span><span class="p">,</span><span class="w"> </span><span class="s">"₹"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Indian Rupee"</span><span class="p">)},</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">{</span><span class="s">"IRR"</span><span class="p">,</span><span class="w"> </span><span class="s">"﷼"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Iranian Rial"</span><span class="p">)},</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">{</span><span class="s">"ISK"</span><span class="p">,</span><span class="w"> </span><span class="s">"kr"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Icelandic Krona"</span><span class="p">)},</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="p">{</span><span class="s">"JPY"</span><span class="p">,</span><span class="w"> </span><span class="s">"¥"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Japanese Yen"</span><span class="p">)},</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="p">{</span><span class="s">"KRW"</span><span class="p">,</span><span class="w"> </span><span class="s">"₩"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"South Korean Won"</span><span class="p">)},</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="p">{</span><span class="s">"KWD"</span><span class="p">,</span><span class="w"> </span><span class="s">"ك.د"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Kuwaiti Dinar"</span><span class="p">)},</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="p">{</span><span class="s">"KZT"</span><span class="p">,</span><span class="w"> </span><span class="s">"₸"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Kazakhstani Tenge"</span><span class="p">)},</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">{</span><span class="s">"LKR"</span><span class="p">,</span><span class="w"> </span><span class="s">"Rs"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Sri Lankan Rupee"</span><span class="p">)},</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="p">{</span><span class="s">"LTL"</span><span class="p">,</span><span class="w"> </span><span class="s">"Lt"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Lithuanian Litas"</span><span class="p">)},</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">{</span><span class="s">"LVL"</span><span class="p">,</span><span class="w"> </span><span class="s">"Ls"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Latvian Lats"</span><span class="p">)},</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">{</span><span class="s">"LYD"</span><span class="p">,</span><span class="w"> </span><span class="s">"د.ل"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Libyan Dinar"</span><span class="p">)},</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">{</span><span class="s">"MUR"</span><span class="p">,</span><span class="w"> </span><span class="s">"Rs"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Mauritian Rupee"</span><span class="p">)},</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">{</span><span class="s">"MXN"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Mexican Peso"</span><span class="p">)},</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="p">{</span><span class="s">"MYR"</span><span class="p">,</span><span class="w"> </span><span class="s">"RM"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Malaysian Ringgit"</span><span class="p">)},</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="p">{</span><span class="s">"NOK"</span><span class="p">,</span><span class="w"> </span><span class="s">"kr"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Norwegian Krone"</span><span class="p">)},</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="p">{</span><span class="s">"NPR"</span><span class="p">,</span><span class="w"> </span><span class="s">"Rs"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Nepalese Rupee"</span><span class="p">)},</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="p">{</span><span class="s">"NZD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"New Zealand Dollar"</span><span class="p">)},</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="p">{</span><span class="s">"OMR"</span><span class="p">,</span><span class="w"> </span><span class="s">"ع.ر."</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Omani Rial"</span><span class="p">)},</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="p">{</span><span class="s">"PEN"</span><span class="p">,</span><span class="w"> </span><span class="s">"S/."</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Peruvian Nuevo Sol"</span><span class="p">)},</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="p">{</span><span class="s">"PHP"</span><span class="p">,</span><span class="w"> </span><span class="s">"₱"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Philippine Peso"</span><span class="p">)},</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">{</span><span class="s">"PKR"</span><span class="p">,</span><span class="w"> </span><span class="s">"Rs"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pakistani Rupee"</span><span class="p">)},</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">{</span><span class="s">"PLN"</span><span class="p">,</span><span class="w"> </span><span class="s">"zł"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Polish Zloty"</span><span class="p">)},</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">{</span><span class="s">"QAR"</span><span class="p">,</span><span class="w"> </span><span class="s">"ق.ر"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Qatari Riyal"</span><span class="p">)},</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">{</span><span class="s">"RON"</span><span class="p">,</span><span class="w"> </span><span class="s">"L"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"New Romanian Leu"</span><span class="p">)},</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">{</span><span class="s">"RUB"</span><span class="p">,</span><span class="w"> </span><span class="s">"руб."</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Russian Rouble"</span><span class="p">)},</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="p">{</span><span class="s">"SAR"</span><span class="p">,</span><span class="w"> </span><span class="s">"س.ر"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Saudi Riyal"</span><span class="p">)},</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">{</span><span class="s">"SEK"</span><span class="p">,</span><span class="w"> </span><span class="s">"kr"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Swedish Krona"</span><span class="p">)},</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">{</span><span class="s">"SGD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Singapore Dollar"</span><span class="p">)},</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">{</span><span class="s">"THB"</span><span class="p">,</span><span class="w"> </span><span class="s">"฿"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Thai Baht"</span><span class="p">)},</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="p">{</span><span class="s">"TND"</span><span class="p">,</span><span class="w"> </span><span class="s">"ت.د"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Tunisian Dinar"</span><span class="p">)},</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">{</span><span class="s">"TRY"</span><span class="p">,</span><span class="w"> </span><span class="s">"TL"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"New Turkish Lira"</span><span class="p">)},</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">{</span><span class="s">"TTD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"T&T Dollar (TTD)"</span><span class="p">)},</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="p">{</span><span class="s">"USD"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"US Dollar"</span><span class="p">)},</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">{</span><span class="s">"UYU"</span><span class="p">,</span><span class="w"> </span><span class="s">"$"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Uruguayan Peso"</span><span class="p">)},</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">{</span><span class="s">"VEF"</span><span class="p">,</span><span class="w"> </span><span class="s">"Bs F"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Venezuelan Bolívar"</span><span class="p">)},</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="p">{</span><span class="s">"ZAR"</span><span class="p">,</span><span class="w"> </span><span class="s">"R"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"South African Rand"</span><span class="p">)},</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-92" name="line-92"></a><span class="p">};</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">downloading_imf_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">downloading_ecb_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">loaded_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="nf">load_rates</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">);</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="k">struct</span><span class="w"> </span><span class="nc">CurrencyManagerPrivate</span> +<a id="line-99" name="line-99"></a><span class="p">{</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">currencies</span><span class="p">;</span> +<a id="line-101" name="line-101"></a><span class="p">};</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">CurrencyManager</span><span class="p">,</span><span class="w"> </span><span class="n">currency_manager</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">UPDATED</span><span class="p">,</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span> +<a id="line-108" name="line-108"></a><span class="p">};</span> +<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">};</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="k">static</span><span class="w"> </span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">default_currency_manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span> +<a id="line-114" name="line-114"></a><span class="nf">currency_manager_get_default</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-115" name="line-115"></a><span class="p">{</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">default_currency_manager</span><span class="p">)</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">default_currency_manager</span><span class="p">;</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">default_currency_manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">currency_manager_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">short_name</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_new</span><span class="p">(</span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">short_name</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">long_name</span><span class="p">),</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">default_currency_manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">default_currency_manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">}</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">default_currency_manager</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="p">}</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-134" name="line-134"></a><span class="nf">currency_manager_get_currencies</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-135" name="line-135"></a><span class="p">{</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="p">}</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="n">Currency</span><span class="w"> </span><span class="o">*</span> +<a id="line-141" name="line-141"></a><span class="nf">currency_manager_get_currency</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-142" name="line-142"></a><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">link</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="p">;</span><span class="w"> </span><span class="n">link</span><span class="p">;</span><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_get_value</span><span class="p">(</span><span class="n">c</span><span class="p">);</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">currency_get_name</span><span class="p">(</span><span class="n">c</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">value</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">value</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">else</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">}</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">}</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="p">}</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-166" name="line-166"></a><span class="nf">get_imf_rate_filepath</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-167" name="line-167"></a><span class="p">{</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_build_filename</span><span class="p">(</span><span class="n">g_get_user_cache_dir</span><span class="w"> </span><span class="p">(),</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="s">"mate-calc"</span><span class="p">,</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="s">"rms_five.xls"</span><span class="p">,</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="p">}</span> +<a id="line-173" name="line-173"></a> +<a id="line-174" name="line-174"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-175" name="line-175"></a><span class="nf">get_ecb_rate_filepath</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-176" name="line-176"></a><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_build_filename</span><span class="p">(</span><span class="n">g_get_user_cache_dir</span><span class="w"> </span><span class="p">(),</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="s">"mate-calc"</span><span class="p">,</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="s">"eurofxref-daily.xml"</span><span class="p">,</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="p">}</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="k">static</span><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span> +<a id="line-184" name="line-184"></a><span class="nf">add_currency</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">short_name</span><span class="p">)</span> +<a id="line-185" name="line-185"></a><span class="p">{</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">short_name</span><span class="p">,</span><span class="w"> </span><span class="n">currency_get_name</span><span class="p">(</span><span class="n">c</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="p">}</span> +<a id="line-194" name="line-194"></a> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Currency %s is not in the currency table"</span><span class="p">,</span><span class="w"> </span><span class="n">short_name</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_new</span><span class="p">(</span><span class="n">short_name</span><span class="p">,</span><span class="w"> </span><span class="n">short_name</span><span class="p">,</span><span class="w"> </span><span class="n">short_name</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-200" name="line-200"></a><span class="p">}</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="cm">/* A file needs to be redownloaded if it doesn't exist, or is too old.</span> +<a id="line-203" name="line-203"></a><span class="cm"> * When an error occur, it probably won't hurt to try to download again.</span> +<a id="line-204" name="line-204"></a><span class="cm"> */</span> +<a id="line-205" name="line-205"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-206" name="line-206"></a><span class="nf">file_needs_update</span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">max_age</span><span class="p">)</span> +<a id="line-207" name="line-207"></a><span class="p">{</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">stat</span><span class="w"> </span><span class="n">buf</span><span class="p">;</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_file_test</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_TEST_IS_REGULAR</span><span class="p">))</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_stat</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">buf</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">-1</span><span class="p">)</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-215" name="line-215"></a> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">difftime</span><span class="p">(</span><span class="n">time</span><span class="p">(</span><span class="nb">NULL</span><span class="p">),</span><span class="w"> </span><span class="n">buf</span><span class="p">.</span><span class="n">st_mtime</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">max_age</span><span class="p">)</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-220" name="line-220"></a><span class="p">}</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-223" name="line-223"></a><span class="nf">download_imf_cb</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">GAsyncResult</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-224" name="line-224"></a><span class="p">{</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_copy_finish</span><span class="p">(</span><span class="n">G_FILE</span><span class="p">(</span><span class="n">object</span><span class="p">),</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">))</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_debug</span><span class="p">(</span><span class="s">"IMF rates updated"</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">else</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Couldn't download IMF currency rate file: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">downloading_imf_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">load_rates</span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="p">}</span> +<a id="line-236" name="line-236"></a> +<a id="line-237" name="line-237"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-238" name="line-238"></a><span class="nf">download_ecb_cb</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">GAsyncResult</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-239" name="line-239"></a><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">user_data</span><span class="p">;</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_file_copy_finish</span><span class="p">(</span><span class="n">G_FILE</span><span class="p">(</span><span class="n">object</span><span class="p">),</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">))</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">g_debug</span><span class="p">(</span><span class="s">"ECB rates updated"</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">else</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Couldn't download ECB currency rate file: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">downloading_ecb_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">load_rates</span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-250" name="line-250"></a><span class="p">}</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-253" name="line-253"></a><span class="nf">download_file</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">uri</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="n">GAsyncReadyCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">)</span> +<a id="line-254" name="line-254"></a><span class="p">{</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">directory</span><span class="p">;</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">GFile</span><span class="w"> </span><span class="o">*</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">dest</span><span class="p">;</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">directory</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_dirname</span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">g_mkdir_with_parents</span><span class="p">(</span><span class="n">directory</span><span class="p">,</span><span class="w"> </span><span class="mo">0755</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">directory</span><span class="p">);</span> +<a id="line-261" name="line-261"></a> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">source</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_uri</span><span class="p">(</span><span class="n">uri</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">dest</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_new_for_path</span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-264" name="line-264"></a> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">g_file_copy_async</span><span class="p">(</span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">dest</span><span class="p">,</span><span class="w"> </span><span class="n">G_FILE_COPY_OVERWRITE</span><span class="p">,</span><span class="w"> </span><span class="n">G_PRIORITY_DEFAULT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span><span class="w"> </span><span class="n">manager</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">source</span><span class="p">);</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">dest</span><span class="p">);</span> +<a id="line-268" name="line-268"></a><span class="p">}</span> +<a id="line-269" name="line-269"></a> +<a id="line-270" name="line-270"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-271" name="line-271"></a><span class="nf">load_imf_rates</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-272" name="line-272"></a><span class="p">{</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">lines</span><span class="p">;</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">length</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">in_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="k">struct</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">{</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">;</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="n">name_map</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">{</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="p">{</span><span class="s">"Algerian dinar"</span><span class="p">,</span><span class="w"> </span><span class="s">"DZD"</span><span class="p">},</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">{</span><span class="s">"Australian dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"AUD"</span><span class="p">},</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="p">{</span><span class="s">"Bahrain Dinar"</span><span class="p">,</span><span class="w"> </span><span class="s">"BHD"</span><span class="p">},</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="p">{</span><span class="s">"Bolivar Fuerte"</span><span class="p">,</span><span class="w"> </span><span class="s">"VEF"</span><span class="p">},</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">{</span><span class="s">"Botswana pula"</span><span class="p">,</span><span class="w"> </span><span class="s">"BWP"</span><span class="p">},</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">{</span><span class="s">"Brazilian real"</span><span class="p">,</span><span class="w"> </span><span class="s">"BRL"</span><span class="p">},</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">{</span><span class="s">"Brunei dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"BND"</span><span class="p">},</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="p">{</span><span class="s">"Canadian dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"CAD"</span><span class="p">},</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span><span class="s">"Chilean peso"</span><span class="p">,</span><span class="w"> </span><span class="s">"CLP"</span><span class="p">},</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">{</span><span class="s">"Chinese yuan"</span><span class="p">,</span><span class="w"> </span><span class="s">"CNY"</span><span class="p">},</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">{</span><span class="s">"Colombian peso"</span><span class="p">,</span><span class="w"> </span><span class="s">"COP"</span><span class="p">},</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">{</span><span class="s">"Czech koruna"</span><span class="p">,</span><span class="w"> </span><span class="s">"CZK"</span><span class="p">},</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span><span class="s">"Danish krone"</span><span class="p">,</span><span class="w"> </span><span class="s">"DKK"</span><span class="p">},</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">{</span><span class="s">"Euro"</span><span class="p">,</span><span class="w"> </span><span class="s">"EUR"</span><span class="p">},</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">{</span><span class="s">"Hungarian Forint"</span><span class="p">,</span><span class="w"> </span><span class="s">"HUF"</span><span class="p">},</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="p">{</span><span class="s">"Icelandic Krona"</span><span class="p">,</span><span class="w"> </span><span class="s">"ISK"</span><span class="p">},</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span><span class="s">"Indian rupee"</span><span class="p">,</span><span class="w"> </span><span class="s">"INR"</span><span class="p">},</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="p">{</span><span class="s">"Indonesian Rupiah"</span><span class="p">,</span><span class="w"> </span><span class="s">"IDR"</span><span class="p">},</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">{</span><span class="s">"Iranian Rial"</span><span class="p">,</span><span class="w"> </span><span class="s">"IRR"</span><span class="p">},</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="p">{</span><span class="s">"Israeli New Shekel"</span><span class="p">,</span><span class="w"> </span><span class="s">"ILS"</span><span class="p">},</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">{</span><span class="s">"Japanese yen"</span><span class="p">,</span><span class="w"> </span><span class="s">"JPY"</span><span class="p">},</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">{</span><span class="s">"Kazakhstani Tenge"</span><span class="p">,</span><span class="w"> </span><span class="s">"KZT"</span><span class="p">},</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">{</span><span class="s">"Korean won"</span><span class="p">,</span><span class="w"> </span><span class="s">"KRW"</span><span class="p">},</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="p">{</span><span class="s">"Kuwaiti dinar"</span><span class="p">,</span><span class="w"> </span><span class="s">"KWD"</span><span class="p">},</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="p">{</span><span class="s">"Libyan Dinar"</span><span class="p">,</span><span class="w"> </span><span class="s">"LYD"</span><span class="p">},</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">{</span><span class="s">"Malaysian ringgit"</span><span class="p">,</span><span class="w"> </span><span class="s">"MYR"</span><span class="p">},</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="p">{</span><span class="s">"Mauritian rupee"</span><span class="p">,</span><span class="w"> </span><span class="s">"MUR"</span><span class="p">},</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="p">{</span><span class="s">"Mexican peso"</span><span class="p">,</span><span class="w"> </span><span class="s">"MXN"</span><span class="p">},</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">{</span><span class="s">"Nepalese Rupee"</span><span class="p">,</span><span class="w"> </span><span class="s">"NPR"</span><span class="p">},</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">{</span><span class="s">"New Zealand dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"NZD"</span><span class="p">},</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="p">{</span><span class="s">"Norwegian krone"</span><span class="p">,</span><span class="w"> </span><span class="s">"NOK"</span><span class="p">},</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">{</span><span class="s">"Nuevo Sol"</span><span class="p">,</span><span class="w"> </span><span class="s">"PEN"</span><span class="p">},</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="p">{</span><span class="s">"Omani rial"</span><span class="p">,</span><span class="w"> </span><span class="s">"OMR"</span><span class="p">},</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="p">{</span><span class="s">"Pakistani Rupee"</span><span class="p">,</span><span class="w"> </span><span class="s">"PKR"</span><span class="p">},</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">{</span><span class="s">"Peruvian sol"</span><span class="p">,</span><span class="w"> </span><span class="s">"PEN"</span><span class="p">},</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="p">{</span><span class="s">"Philippine peso"</span><span class="p">,</span><span class="w"> </span><span class="s">"PHP"</span><span class="p">},</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="p">{</span><span class="s">"Polish zloty"</span><span class="p">,</span><span class="w"> </span><span class="s">"PLN"</span><span class="p">},</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="p">{</span><span class="s">"Qatari riyal"</span><span class="p">,</span><span class="w"> </span><span class="s">"QAR"</span><span class="p">},</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="p">{</span><span class="s">"Rial Omani"</span><span class="p">,</span><span class="w"> </span><span class="s">"OMR"</span><span class="p">},</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">{</span><span class="s">"Russian ruble"</span><span class="p">,</span><span class="w"> </span><span class="s">"RUB"</span><span class="p">},</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">{</span><span class="s">"Saudi Arabian riyal"</span><span class="p">,</span><span class="w"> </span><span class="s">"SAR"</span><span class="p">},</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="p">{</span><span class="s">"Singapore dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"SGD"</span><span class="p">},</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">{</span><span class="s">"South African rand"</span><span class="p">,</span><span class="w"> </span><span class="s">"ZAR"</span><span class="p">},</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">{</span><span class="s">"Sri Lanka Rupee"</span><span class="p">,</span><span class="w"> </span><span class="s">"LKR"</span><span class="p">},</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="p">{</span><span class="s">"Swedish krona"</span><span class="p">,</span><span class="w"> </span><span class="s">"SEK"</span><span class="p">},</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">{</span><span class="s">"Swiss franc"</span><span class="p">,</span><span class="w"> </span><span class="s">"CHF"</span><span class="p">},</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="p">{</span><span class="s">"Thai baht"</span><span class="p">,</span><span class="w"> </span><span class="s">"THB"</span><span class="p">},</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">{</span><span class="s">"Trinidadian dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"TTD"</span><span class="p">},</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">{</span><span class="s">"Tunisian Dinar"</span><span class="p">,</span><span class="w"> </span><span class="s">"TND"</span><span class="p">},</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">{</span><span class="s">"U.A.E. dirham"</span><span class="p">,</span><span class="w"> </span><span class="s">"AED"</span><span class="p">},</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="p">{</span><span class="s">"U.K. pound"</span><span class="p">,</span><span class="w"> </span><span class="s">"GBP"</span><span class="p">},</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="p">{</span><span class="s">"Uruguayan peso"</span><span class="p">,</span><span class="w"> </span><span class="s">"UYU"</span><span class="p">},</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="p">{</span><span class="s">"U.S. dollar"</span><span class="p">,</span><span class="w"> </span><span class="s">"USD"</span><span class="p">},</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="p">};</span> +<a id="line-339" name="line-339"></a> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_imf_rate_filepath</span><span class="p">();</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_file_get_contents</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">length</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="p">{</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Failed to read exchange rates: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">}</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">lines</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-352" name="line-352"></a> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">lines</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">line</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">tokens</span><span class="p">;</span> +<a id="line-355" name="line-355"></a> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">line</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strchug</span><span class="p">(</span><span class="n">lines</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-357" name="line-357"></a> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="cm">/* Start after first blank line, stop on next */</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">line</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">in_data</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">in_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">else</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="p">}</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">in_data</span><span class="p">)</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-369" name="line-369"></a> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">tokens</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="p">(</span><span class="n">line</span><span class="p">,</span><span class="w"> </span><span class="s">"</span><span class="se">\t</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="s">"Currency"</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">value_index</span><span class="p">,</span><span class="w"> </span><span class="n">name_index</span><span class="p">;</span> +<a id="line-373" name="line-373"></a> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">value_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">tokens</span><span class="p">[</span><span class="n">value_index</span><span class="p">];</span><span class="w"> </span><span class="n">value_index</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-375" name="line-375"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strchug</span><span class="w"> </span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="n">value_index</span><span class="p">]);</span><span class="error2"><--- Variable 'value' can be declared as pointer to const</span> +</span><a id="line-376" name="line-376"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="p">}</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="n">value_index</span><span class="p">])</span><span class="w"> </span><span class="p">{</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">name_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">name_map</span><span class="p">[</span><span class="n">name_index</span><span class="p">].</span><span class="n">name</span><span class="p">;</span><span class="w"> </span><span class="n">name_index</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name_map</span><span class="p">[</span><span class="n">name_index</span><span class="p">].</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="p">}</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name_map</span><span class="p">[</span><span class="n">name_index</span><span class="p">].</span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_manager_get_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">name_map</span><span class="p">[</span><span class="n">name_index</span><span class="p">].</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">c</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">"Using IMF rate of %s for %s"</span><span class="p">,</span><span class="w"> </span><span class="n">tokens</span><span class="p">[</span><span class="n">value_index</span><span class="p">],</span><span class="w"> </span><span class="n">name_map</span><span class="p">[</span><span class="n">name_index</span><span class="p">].</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">name_map</span><span class="p">[</span><span class="n">name_index</span><span class="p">].</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">}</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="n">value_index</span><span class="p">],</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">mp_reciprocal</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">currency_set_value</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="p">}</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">else</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Unknown currency '%s'"</span><span class="p">,</span><span class="w"> </span><span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">}</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="p">}</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="p">(</span><span class="n">tokens</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="p">}</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="p">(</span><span class="n">lines</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="p">}</span> +<a id="line-405" name="line-405"></a> +<a id="line-406" name="line-406"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-407" name="line-407"></a><span class="nf">set_ecb_rate</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">xmlNodePtr</span><span class="w"> </span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">eur_rate</span><span class="p">)</span> +<a id="line-408" name="line-408"></a><span class="p">{</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">xmlAttrPtr</span><span class="w"> </span><span class="n">attribute</span><span class="p">;</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">attribute</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">properties</span><span class="p">;</span><span class="w"> </span><span class="n">attribute</span><span class="p">;</span><span class="w"> </span><span class="n">attribute</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">attribute</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">((</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">attribute</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"currency"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">)</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">xmlFree</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">xmlNodeGetContent</span><span class="p">((</span><span class="n">xmlNodePtr</span><span class="p">)</span><span class="n">attribute</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">((</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">attribute</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"rate"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">xmlFree</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">xmlNodeGetContent</span><span class="p">((</span><span class="n">xmlNodePtr</span><span class="p">)</span><span class="n">attribute</span><span class="p">);</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="p">}</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">}</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="cm">/* Use data if value and no rate currently defined */</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">currency_manager_get_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-429" name="line-429"></a> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">"Using ECB rate of %s for %s"</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">r</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">currency_get_value</span><span class="p">(</span><span class="n">eur_rate</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">v</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">currency_set_value</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">r</span><span class="p">);</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="p">}</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">)</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">xmlFree</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">xmlFree</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-444" name="line-444"></a><span class="p">}</span> +<a id="line-445" name="line-445"></a> +<a id="line-446" name="line-446"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-447" name="line-447"></a><span class="nf">set_ecb_fixed_rate</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">eur_rate</span><span class="p">)</span> +<a id="line-448" name="line-448"></a><span class="p">{</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">v</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-452" name="line-452"></a> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">g_debug</span><span class="w"> </span><span class="p">(</span><span class="s">"Using ECB fixed rate of %s for %s"</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">r</span><span class="p">);</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">currency_get_value</span><span class="p">(</span><span class="n">eur_rate</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">v</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">currency_set_value</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">r</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">v</span><span class="p">);</span> +<a id="line-461" name="line-461"></a><span class="p">}</span> +<a id="line-462" name="line-462"></a> +<a id="line-463" name="line-463"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-464" name="line-464"></a><span class="nf">load_ecb_rates</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-465" name="line-465"></a><span class="p">{</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">eur_rate</span><span class="p">;</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">filename</span><span class="p">;</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">xmlDocPtr</span><span class="w"> </span><span class="n">document</span><span class="p">;</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">xmlXPathContextPtr</span><span class="w"> </span><span class="n">xpath_ctx</span><span class="p">;</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">xmlXPathObjectPtr</span><span class="w"> </span><span class="n">xpath_obj</span><span class="p">;</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-472" name="line-472"></a> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="cm">/* Scale rates to the EUR value */</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">eur_rate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_manager_get_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="s">"EUR"</span><span class="p">);</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eur_rate</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Cannot use ECB rates as don't have EUR rate"</span><span class="p">);</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">}</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="cm">/* Set some fixed rates */</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">set_ecb_fixed_rate</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="s">"EEK"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.06391"</span><span class="p">,</span><span class="w"> </span><span class="n">eur_rate</span><span class="p">);</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">set_ecb_fixed_rate</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="s">"CFA"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.152449"</span><span class="p">,</span><span class="w"> </span><span class="n">eur_rate</span><span class="p">);</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">xmlInitParser</span><span class="p">();</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">filename</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_ecb_rate_filepath</span><span class="p">();</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">document</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlReadFile</span><span class="p">(</span><span class="n">filename</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">document</span><span class="p">)</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Couldn't parse ECB rate file %s"</span><span class="p">,</span><span class="w"> </span><span class="n">filename</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">filename</span><span class="p">);</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">document</span><span class="p">)</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-492" name="line-492"></a> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">xpath_ctx</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlXPathNewContext</span><span class="p">(</span><span class="n">document</span><span class="p">);</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xpath_ctx</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">xmlFreeDoc</span><span class="p">(</span><span class="n">document</span><span class="p">);</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Couldn't create XPath context"</span><span class="p">);</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="p">}</span> +<a id="line-499" name="line-499"></a> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">xmlXPathRegisterNs</span><span class="p">(</span><span class="n">xpath_ctx</span><span class="p">,</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">BAD_CAST</span><span class="p">(</span><span class="s">"xref"</span><span class="p">),</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">BAD_CAST</span><span class="p">(</span><span class="s">"http://www.ecb.int/vocabulary/2002-08-01/eurofxref"</span><span class="p">));</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">xpath_obj</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">xmlXPathEvalExpression</span><span class="p">(</span><span class="n">BAD_CAST</span><span class="p">(</span><span class="s">"//xref:Cube[@currency][@rate]"</span><span class="p">),</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">xpath_ctx</span><span class="p">);</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xpath_obj</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">xmlXPathFreeContext</span><span class="p">(</span><span class="n">xpath_ctx</span><span class="p">);</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">xmlFreeDoc</span><span class="p">(</span><span class="n">document</span><span class="p">);</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Couldn't create XPath object"</span><span class="p">);</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="p">}</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">xpath_obj</span><span class="o">-></span><span class="n">nodesetval</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">xpath_obj</span><span class="o">-></span><span class="n">nodesetval</span><span class="o">-></span><span class="n">nodeNr</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xpath_obj</span><span class="o">-></span><span class="n">nodesetval</span><span class="o">-></span><span class="n">nodeTab</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">XML_ELEMENT_NODE</span><span class="p">)</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">set_ecb_rate</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">xpath_obj</span><span class="o">-></span><span class="n">nodesetval</span><span class="o">-></span><span class="n">nodeTab</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">eur_rate</span><span class="p">);</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="cm">/* Avoid accessing removed elements */</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">xpath_obj</span><span class="o">-></span><span class="n">nodesetval</span><span class="o">-></span><span class="n">nodeTab</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="o">-></span><span class="n">type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">XML_NAMESPACE_DECL</span><span class="p">)</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">xpath_obj</span><span class="o">-></span><span class="n">nodesetval</span><span class="o">-></span><span class="n">nodeTab</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="p">}</span> +<a id="line-520" name="line-520"></a> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">xmlXPathFreeObject</span><span class="p">(</span><span class="n">xpath_obj</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">xmlXPathFreeContext</span><span class="p">(</span><span class="n">xpath_ctx</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">xmlFreeDoc</span><span class="p">(</span><span class="n">document</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">xmlCleanupParser</span><span class="p">();</span> +<a id="line-525" name="line-525"></a><span class="p">}</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-528" name="line-528"></a><span class="nf">load_rates</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-529" name="line-529"></a><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-531" name="line-531"></a> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="cm">/* Already loaded */</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">loaded_rates</span><span class="p">)</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-535" name="line-535"></a> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="cm">/* In process */</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">downloading_imf_rates</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">downloading_ecb_rates</span><span class="p">)</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-539" name="line-539"></a> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="cm">/* Use the IMF provided values and top up with currencies tracked by the ECB and not the IMF */</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">load_imf_rates</span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">load_ecb_rates</span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-543" name="line-543"></a> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">short_name</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">link</span><span class="p">;</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">currencies</span><span class="p">;</span><span class="w"> </span><span class="n">link</span><span class="p">;</span><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">currency_get_name</span><span class="p">(</span><span class="n">c</span><span class="p">),</span><span class="w"> </span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">short_name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="p">}</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">link</span><span class="p">)</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Currency %s is not provided by IMF or ECB"</span><span class="p">,</span><span class="w"> </span><span class="n">currency_info</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">short_name</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="p">}</span> +<a id="line-554" name="line-554"></a> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">g_debug</span><span class="p">(</span><span class="s">"Rates loaded"</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">loaded_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-557" name="line-557"></a> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">UPDATED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-561" name="line-561"></a><span class="p">}</span> +<a id="line-562" name="line-562"></a> +<a id="line-563" name="line-563"></a><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span> +<a id="line-564" name="line-564"></a><span class="nf">currency_manager_get_value</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-565" name="line-565"></a><span class="p">{</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-571" name="line-571"></a> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="cm">/* Update rates if necessary */</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_imf_rate_filepath</span><span class="p">();</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">downloading_imf_rates</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">file_needs_update</span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">60</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">60</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">24</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">7</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">downloading_imf_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">g_debug</span><span class="p">(</span><span class="s">"Downloading rates from the IMF..."</span><span class="p">);</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">download_file</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="s">"http://www.imf.org/external/np/fin/data/rms_five.aspx?tsvflag=Y"</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">download_imf_cb</span><span class="p">);</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="p">}</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_ecb_rate_filepath</span><span class="p">();</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">downloading_ecb_rates</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">file_needs_update</span><span class="p">(</span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="mi">60</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">60</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">24</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">7</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">downloading_ecb_rates</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">g_debug</span><span class="p">(</span><span class="s">"Downloading rates from the ECB..."</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">download_file</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="s">"http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">download_ecb_cb</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="p">}</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">path</span><span class="p">);</span> +<a id="line-587" name="line-587"></a> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">load_rates</span><span class="p">(</span><span class="n">manager</span><span class="p">))</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-590" name="line-590"></a> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_manager_get_currency</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">currency</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="p">)</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">currency_get_value</span><span class="p">(</span><span class="n">c</span><span class="p">);</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="k">else</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-596" name="line-596"></a><span class="p">}</span> +<a id="line-597" name="line-597"></a> +<a id="line-598" name="line-598"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-599" name="line-599"></a><span class="nf">currency_manager_class_init</span><span class="p">(</span><span class="n">CurrencyManagerClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-600" name="line-600"></a><span class="p">{</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">UPDATED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="p">(</span><span class="s">"updated"</span><span class="p">,</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">),</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">CurrencyManagerClass</span><span class="p">,</span><span class="w"> </span><span class="n">updated</span><span class="p">),</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-609" name="line-609"></a><span class="p">}</span> +<a id="line-610" name="line-610"></a> +<a id="line-611" name="line-611"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-612" name="line-612"></a><span class="nf">currency_manager_init</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-613" name="line-613"></a><span class="p">{</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_manager_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-615" name="line-615"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/1.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/1.html new file mode 100644 index 0000000..7476e26 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/1.html @@ -0,0 +1,345 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/currency.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> currency.h</p> +<a href="1.html#line-14"> missingIncludeSystem 14</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef CURRENCY_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define CURRENCY_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cp">#define CURRENCY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), currency_get_type(), Currency))</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">CurrencyPrivate</span><span class="w"> </span><span class="n">CurrencyPrivate</span><span class="p">;</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-24" name="line-24"></a><span class="p">{</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">CurrencyPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="p">}</span><span class="w"> </span><span class="n">Currency</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-30" name="line-30"></a><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="p">}</span><span class="w"> </span><span class="n">CurrencyClass</span><span class="p">;</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="n">GType</span><span class="w"> </span><span class="nf">currency_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="nf">currency_new</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">currency_get_name</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">currency_get_short_display_name</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">currency_get_display_name</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">currency_get_symbol</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="kt">void</span><span class="w"> </span><span class="nf">currency_set_value</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="nf">currency_get_value</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">G_END_DECLS</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="cp">#endif </span><span class="cm">/* CURRENCY_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/10.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/10.html new file mode 100644 index 0000000..da84e94 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/10.html @@ -0,0 +1,395 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/parser.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> parser.h</p> +<a href="10.html#line-4"> missingIncludeSystem 4</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span> +<span class="normal">61</span> +<span class="normal">62</span> +<span class="normal">63</span> +<span class="normal">64</span> +<span class="normal">65</span> +<span class="normal">66</span> +<span class="normal">67</span> +<span class="normal">68</span> +<span class="normal">69</span> +<span class="normal">70</span> +<span class="normal">71</span> +<span class="normal">72</span> +<span class="normal">73</span> +<span class="normal">74</span> +<span class="normal">75</span> +<span class="normal">76</span> +<span class="normal">77</span> +<span class="normal">78</span> +<span class="normal">79</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifndef PARSER_H</span> +<a id="line-2" name="line-2"></a><span class="cp">#define PARSER_H</span> +<a id="line-3" name="line-3"></a> +<a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><lexer.h></span><span class="error2"><--- Include file: <lexer.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-5" name="line-5"></a> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="cm">/* Operator Associativity. */</span> +<a id="line-10" name="line-10"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span> +<a id="line-11" name="line-11"></a><span class="p">{</span> +<a id="line-12" name="line-12"></a><span class="w"> </span><span class="n">LEFT_ASSOCIATIVE</span><span class="p">,</span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="n">RIGHT_ASSOCIATIVE</span> +<a id="line-14" name="line-14"></a><span class="p">}</span><span class="w"> </span><span class="n">Associativity</span><span class="p">;</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="cm">/* Operator Precedence. */</span> +<a id="line-17" name="line-17"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span> +<a id="line-18" name="line-18"></a><span class="p">{</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">P_Unknown</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">P_AddSubtract</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">P_Multiply</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">P_Mod</span><span class="o">=</span><span class="mi">3</span><span class="p">,</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">P_Divide</span><span class="o">=</span><span class="mi">4</span><span class="p">,</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">P_Not</span><span class="o">=</span><span class="mi">5</span><span class="p">,</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">P_Root</span><span class="o">=</span><span class="mi">6</span><span class="p">,</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">P_Function</span><span class="o">=</span><span class="mi">7</span><span class="p">,</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">P_Boolean</span><span class="o">=</span><span class="mi">8</span><span class="p">,</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">P_Percentage</span><span class="o">=</span><span class="mi">9</span><span class="p">,</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="cm">/* UnaryMinus and Power must have same precedence. */</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">P_UnaryMinus</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">P_Power</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">P_Factorial</span><span class="o">=</span><span class="mi">11</span><span class="p">,</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">P_NumberVariable</span><span class="o">=</span><span class="mi">12</span><span class="p">,</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="cm">/* P_Depth should be always at the bottom. It stops node jumping off the current depth level. */</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">P_Depth</span> +<a id="line-36" name="line-36"></a><span class="p">}</span><span class="w"> </span><span class="n">Precedence</span><span class="p">;</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="cm">/* ParseNode structure for parse tree. */</span> +<a id="line-39" name="line-39"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">parse_node</span> +<a id="line-40" name="line-40"></a><span class="p">{</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">parse_node</span><span class="w"> </span><span class="o">*</span><span class="n">parent</span><span class="p">;</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">parse_node</span><span class="w"> </span><span class="o">*</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">right</span><span class="p">;</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">LexerToken</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">precedence</span><span class="p">;</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">Associativity</span><span class="w"> </span><span class="n">associativity</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="kt">void</span><span class="o">*</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="kt">void</span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">evaluate</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parse_node</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="p">}</span><span class="w"> </span><span class="n">ParseNode</span><span class="p">;</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="cm">/* ParserState structure. Stores parser state. */</span> +<a id="line-52" name="line-52"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span> +<a id="line-53" name="line-53"></a><span class="p">{</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">ParseNode</span><span class="w"> </span><span class="o">*</span><span class="n">root</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">ParseNode</span><span class="w"> </span><span class="o">*</span><span class="n">right_most</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">LexerState</span><span class="w"> </span><span class="o">*</span><span class="n">lexer</span><span class="p">;</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">depth_level</span><span class="p">;</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="o">*</span><span class="n">options</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">error</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">error_token</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">variable_is_defined</span><span class="p">)(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">get_variable</span><span class="p">)(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">set_variable</span><span class="p">)(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">function_is_defined</span><span class="p">)(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">get_function</span><span class="p">)(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">convert</span><span class="p">)(</span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="p">}</span><span class="w"> </span><span class="n">ParserState</span><span class="p">;</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="cm">/* Create ParserState object. */</span> +<a id="line-71" name="line-71"></a><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="nf">p_create_parser</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">MPEquationOptions</span><span class="o">*</span><span class="p">);</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="cm">/* Destroy ParserState object. */</span> +<a id="line-74" name="line-74"></a><span class="kt">void</span><span class="w"> </span><span class="nf">p_destroy_parser</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="p">);</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="cm">/* Parse string from ParserState. */</span> +<a id="line-77" name="line-77"></a><span class="n">guint</span><span class="w"> </span><span class="nf">p_parse</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="p">);</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="cp">#endif </span><span class="cm">/* PARSER_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/11.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/11.html new file mode 100644 index 0000000..a70eeed --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/11.html @@ -0,0 +1,441 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mate-calc-cmd.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mate-calc-cmd.c</p> +<a href="11.html#line-11"> missingIncludeSystem 11</a><a href="11.html#line-12"> missingIncludeSystem 12</a><a href="11.html#line-13"> missingIncludeSystem 13</a><a href="11.html#line-14"> missingIncludeSystem 14</a><a href="11.html#line-15"> missingIncludeSystem 15</a><a href="11.html#line-16"> missingIncludeSystem 16</a><a href="11.html#line-71"> variableScope 71</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span> +<span class="normal">61</span> +<span class="normal">62</span> +<span class="normal">63</span> +<span class="normal">64</span> +<span class="normal">65</span> +<span class="normal">66</span> +<span class="normal">67</span> +<span class="normal">68</span> +<span class="normal">69</span> +<span class="normal">70</span> +<span class="normal">71</span> +<span class="normal">72</span> +<span class="normal">73</span> +<span class="normal">74</span> +<span class="normal">75</span> +<span class="normal">76</span> +<span class="normal">77</span> +<span class="normal">78</span> +<span class="normal">79</span> +<span class="normal">80</span> +<span class="normal">81</span> +<span class="normal">82</span> +<span class="normal">83</span> +<span class="normal">84</span> +<span class="normal">85</span> +<span class="normal">86</span> +<span class="normal">87</span> +<span class="normal">88</span> +<span class="normal">89</span> +<span class="normal">90</span> +<span class="normal">91</span> +<span class="normal">92</span> +<span class="normal">93</span> +<span class="normal">94</span> +<span class="normal">95</span> +<span class="normal">96</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2009 Rich Burridge</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><sys/types.h></span><span class="error2"><--- Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><time.h></span><span class="error2"><--- Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><locale.h></span><span class="error2"><--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cp">#define MAXLINE 1024</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">static</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">result_serializer</span><span class="p">;</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-26" name="line-26"></a><span class="nf">solve</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-27" name="line-27"></a><span class="p">{</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">result_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">memset</span><span class="p">(</span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">options</span><span class="p">));</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_equation_parse</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">)</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"Error %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_get_error</span><span class="p">());</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="p">)</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"Error %d</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">ret</span><span class="p">);</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">result_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">result_serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"%s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">result_str</span><span class="p">);</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="p">}</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">result_str</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="p">}</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="cm">/* Adjust user input equation string before solving it. */</span> +<a id="line-53" name="line-53"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-54" name="line-54"></a><span class="nf">str_adjust</span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">)</span> +<a id="line-55" name="line-55"></a><span class="p">{</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">strlen</span><span class="p">(</span><span class="n">str</span><span class="p">)</span><span class="mi">-1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Remove newline at end of string. */</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Remove whitespace. */</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">str</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">' '</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\t'</span><span class="p">)</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">j</span><span class="o">++</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">}</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">j</span><span class="mi">-1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'='</span><span class="p">)</span><span class="w"> </span><span class="cm">/* Remove trailing '=' (if present). */</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">str</span><span class="p">[</span><span class="n">j</span><span class="mi">-1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-66" name="line-66"></a><span class="p">}</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="kt">int</span> +<a id="line-69" name="line-69"></a><span class="nf">main</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-70" name="line-70"></a><span class="p">{</span> +<a id="line-71" name="line-71"></a><span class="hll"><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">line</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'line' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'line' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="cm">/* Seed random number generator. */</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">srand48</span><span class="p">((</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">time</span><span class="p">((</span><span class="kt">time_t</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="mi">0</span><span class="p">));</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">setlocale</span><span class="p">(</span><span class="n">LC_ALL</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">result_serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">9</span><span class="p">);</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="n">MAXLINE</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="kt">char</span><span class="p">));</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"> "</span><span class="p">);</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">line</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fgets</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MAXLINE</span><span class="p">,</span><span class="w"> </span><span class="n">stdin</span><span class="p">);</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">line</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">str_adjust</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">line</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"exit"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"quit"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">solve</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">}</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/12.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/12.html new file mode 100644 index 0000000..f6f73d9 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/12.html @@ -0,0 +1,2519 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mate-calc-resources.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mate-calc-resources.c</p> +<a href="12.html#line-1"> missingIncludeSystem 1</a><a href="12.html#line-9"> unusedStructMember 9</a><a href="12.html#line-9"> unusedStructMember 9</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gio/gio.h></span><span class="error2"><--- Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-2" name="line-2"></a> +<a id="line-3" name="line-3"></a><span class="cp">#if defined (__ELF__) && ( __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 6))</span> +<a id="line-4" name="line-4"></a><span class="cp"># define SECTION __attribute__ ((section (".gresource.calculator"), aligned (8)))</span> +<a id="line-5" name="line-5"></a><span class="cp">#else</span> +<a id="line-6" name="line-6"></a><span class="cp"># define SECTION</span> +<a id="line-7" name="line-7"></a><span class="cp">#endif</span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="hll"><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">SECTION</span><span class="w"> </span><span class="k">union</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="n">data</span><span class="p">[</span><span class="mi">14931</span><span class="p">];</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">double</span><span class="w"> </span><span class="n">alignment</span><span class="p">;</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">ptr</span><span class="p">;}</span><span class="w"> </span><span class="n">calculator_resource_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">{</span><span class="error2"><--- union member 'Anonymous0::alignment' is never used.</span><span class="error2"><--- union member 'Anonymous0::ptr' is never used.</span> +</span><a id="line-10" name="line-10"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-11" name="line-11"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-12" name="line-12"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0172</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span> +<a id="line-844" name="line-844"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0031</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0140</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0151</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0254</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0320</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0104</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0135</span><span class="p">,</span><span class="w"> </span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0014</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0311</span><span class="p">,</span><span class="w"> </span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0242</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0347</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0266</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0215</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0321</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0226</span><span class="p">,</span><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span><span class="mo">0057</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0056</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0122</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0100</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0312</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0061</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0071</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0072</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0335</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0350</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0132</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0004</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0101</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0341</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0024</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0262</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0355</span><span class="p">,</span><span class="w"> </span><span class="mo">0126</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0133</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0175</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0263</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0144</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0306</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0037</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0264</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0016</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0047</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0303</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0324</span><span class="p">,</span><span class="w"> </span><span class="mo">0276</span><span class="p">,</span><span class="w"> </span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="mo">0011</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0214</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0166</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0075</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="mo">0103</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span><span class="mo">0227</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0251</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span><span class="mo">0163</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="mo">0236</span><span class="p">,</span><span class="w"> </span><span class="mo">0020</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0371</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0006</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0156</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0340</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0043</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0123</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0077</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0267</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0265</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0164</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0026</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0015</span><span class="p">,</span><span class="w"> </span><span class="mo">0027</span><span class="p">,</span><span class="w"> </span><span class="mo">0274</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0035</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0243</span><span class="p">,</span><span class="w"> </span><span class="mo">0336</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0167</span><span class="p">,</span><span class="w"> </span><span class="mo">0316</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0313</span><span class="p">,</span><span class="w"> </span><span class="mo">0055</span><span class="p">,</span><span class="w"> </span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="mo">0364</span><span class="p">,</span><span class="w"> </span><span class="mo">0272</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0250</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0070</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0240</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0044</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0034</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0367</span><span class="p">,</span><span class="w"> </span><span class="mo">0300</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span><span class="mo">0010</span><span class="p">,</span><span class="w"> </span><span class="mo">0116</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0162</span><span class="p">,</span><span class="w"> </span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0115</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0025</span><span class="p">,</span><span class="w"> </span><span class="mo">0045</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0206</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0150</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0054</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0331</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0222</span><span class="p">,</span><span class="w"> </span><span class="mo">0207</span><span class="p">,</span><span class="w"> </span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0253</span><span class="p">,</span><span class="w"> </span><span class="mo">0271</span><span class="p">,</span><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0237</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0134</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0041</span><span class="p">,</span><span class="w"> </span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="mo">0221</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span><span class="mo">0117</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0073</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0216</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0361</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0105</span><span class="p">,</span><span class="w"> </span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0244</span><span class="p">,</span><span class="w"> </span><span class="mo">0273</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0252</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0017</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0314</span><span class="p">,</span><span class="w"> </span><span class="mo">0373</span><span class="p">,</span><span class="w"> </span><span class="mo">0111</span><span class="p">,</span><span class="w"> </span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0113</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0202</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0137</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0365</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0152</span><span class="p">,</span><span class="w"> </span><span class="mo">0362</span><span class="p">,</span><span class="w"> </span><span class="mo">0352</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0161</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0357</span><span class="p">,</span><span class="w"> </span><span class="mo">0327</span><span class="p">,</span><span class="w"> </span><span class="mo">0315</span><span class="p">,</span><span class="w"> </span><span class="mo">0003</span><span class="p">,</span><span class="w"> </span> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0225</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0046</span><span class="p">,</span><span class="w"> </span><span class="mo">0235</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0332</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0330</span><span class="p">,</span><span class="w"> </span><span class="mo">0005</span><span class="p">,</span><span class="w"> </span><span class="mo">0130</span><span class="p">,</span><span class="w"> </span><span class="mo">0217</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="mo">0106</span><span class="p">,</span><span class="w"> </span><span class="mo">0346</span><span class="p">,</span><span class="w"> </span><span class="mo">0304</span><span class="p">,</span><span class="w"> </span><span class="mo">0146</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0277</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0325</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span><span class="mo">0353</span><span class="p">,</span><span class="w"> </span><span class="mo">0033</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0270</span><span class="p">,</span><span class="w"> </span><span class="mo">0375</span><span class="p">,</span><span class="w"> </span><span class="mo">0136</span><span class="p">,</span><span class="w"> </span><span class="mo">0334</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0366</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0120</span><span class="p">,</span><span class="w"> </span><span class="mo">0143</span><span class="p">,</span><span class="w"> </span><span class="mo">0205</span><span class="p">,</span><span class="w"> </span><span class="mo">0052</span><span class="p">,</span><span class="w"> </span><span class="mo">0125</span><span class="p">,</span><span class="w"> </span><span class="mo">0310</span><span class="p">,</span><span class="w"> </span><span class="mo">0201</span><span class="p">,</span><span class="w"> </span><span class="mo">0067</span><span class="p">,</span><span class="w"> </span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span><span class="p">,</span><span class="w"> </span><span class="mo">0210</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0040</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0305</span><span class="p">,</span><span class="w"> </span><span class="mo">0062</span><span class="p">,</span><span class="w"> </span><span class="mo">0074</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0063</span><span class="p">,</span><span class="w"> </span><span class="mo">0110</span><span class="p">,</span><span class="w"> </span><span class="mo">0363</span><span class="p">,</span><span class="w"> </span> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0220</span><span class="p">,</span><span class="w"> </span><span class="mo">0127</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0013</span><span class="p">,</span><span class="w"> </span><span class="mo">0002</span><span class="p">,</span><span class="w"> </span><span class="mo">0176</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0230</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0376</span><span class="p">,</span><span class="w"> </span><span class="mo">0170</span><span class="p">,</span><span class="w"> </span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="mo">0053</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0154</span><span class="p">,</span><span class="w"> </span><span class="mo">0064</span><span class="p">,</span><span class="w"> </span><span class="mo">0317</span><span class="p">,</span><span class="w"> </span><span class="mo">0224</span><span class="p">,</span><span class="w"> </span><span class="mo">0065</span><span class="p">,</span><span class="w"> </span><span class="mo">0212</span><span class="p">,</span><span class="w"> </span><span class="mo">0157</span><span class="p">,</span><span class="w"> </span><span class="mo">0030</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0261</span><span class="p">,</span><span class="w"> </span><span class="mo">0372</span><span class="p">,</span><span class="w"> </span><span class="mo">0131</span><span class="p">,</span><span class="w"> </span><span class="mo">0343</span><span class="p">,</span><span class="w"> </span><span class="mo">0256</span><span class="p">,</span><span class="w"> </span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="mo">0234</span><span class="p">,</span><span class="w"> </span><span class="mo">0337</span><span class="p">,</span><span class="w"> </span><span class="mo">0036</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0275</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0155</span><span class="p">,</span><span class="w"> </span><span class="mo">0012</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0042</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0326</span><span class="p">,</span><span class="w"> </span><span class="mo">0246</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0231</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0173</span><span class="p">,</span><span class="w"> </span><span class="mo">0147</span><span class="p">,</span><span class="w"> </span><span class="mo">0241</span><span class="p">,</span><span class="w"> </span><span class="mo">0023</span><span class="p">,</span><span class="w"> </span><span class="mo">0177</span><span class="p">,</span><span class="w"> </span><span class="mo">0223</span><span class="p">,</span><span class="w"> </span><span class="mo">0255</span><span class="p">,</span><span class="w"> </span><span class="mo">0323</span><span class="p">,</span><span class="w"> </span><span class="mo">0021</span><span class="p">,</span><span class="w"> </span><span class="mo">0174</span><span class="p">,</span><span class="w"> </span><span class="mo">0114</span><span class="p">,</span><span class="w"> </span><span class="mo">0160</span><span class="p">,</span><span class="w"> </span><span class="mo">0260</span><span class="p">,</span><span class="w"> </span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="mo">0204</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0211</span><span class="p">,</span><span class="w"> </span><span class="mo">0007</span><span class="p">,</span><span class="w"> </span><span class="mo">0360</span><span class="p">,</span><span class="w"> </span><span class="mo">0203</span><span class="p">,</span><span class="w"> </span><span class="mo">0370</span><span class="p">,</span><span class="w"> </span><span class="mo">0307</span><span class="p">,</span><span class="w"> </span><span class="mo">0066</span><span class="p">,</span><span class="w"> </span><span class="mo">0245</span><span class="p">,</span><span class="w"> </span><span class="mo">0153</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0200</span><span class="p">,</span><span class="w"> </span><span class="mo">0022</span><span class="p">,</span><span class="w"> </span><span class="mo">0112</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="mo">0232</span><span class="p">,</span><span class="w"> </span><span class="mo">0351</span><span class="p">,</span><span class="w"> </span><span class="mo">0124</span><span class="p">,</span><span class="w"> </span><span class="mo">0107</span><span class="p">,</span><span class="w"> </span><span class="mo">0354</span><span class="p">,</span><span class="w"> </span><span class="mo">0076</span><span class="p">,</span><span class="w"> </span><span class="mo">0213</span><span class="p">,</span><span class="w"> </span><span class="mo">0257</span><span class="p">,</span><span class="w"> </span><span class="mo">0032</span><span class="p">,</span><span class="w"> </span><span class="mo">0102</span><span class="p">,</span><span class="w"> </span><span class="mo">0322</span><span class="p">,</span><span class="w"> </span><span class="mo">0345</span><span class="p">,</span><span class="w"> </span><span class="mo">0301</span><span class="p">,</span><span class="w"> </span><span class="mo">0333</span><span class="p">,</span><span class="w"> </span><span class="mo">0142</span><span class="p">,</span><span class="w"> </span><span class="mo">0342</span><span class="p">,</span><span class="w"> </span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="mo">0247</span><span class="p">,</span><span class="w"> </span><span class="mo">0344</span><span class="p">,</span><span class="w"> </span><span class="mo">0060</span><span class="p">,</span><span class="w"> </span><span class="mo">0374</span><span class="p">,</span><span class="w"> </span><span class="mo">0233</span><span class="p">,</span><span class="w"> </span><span class="mo">0377</span><span class="p">,</span><span class="w"> </span><span class="mo">0001</span><span class="p">,</span><span class="w"> </span><span class="mo">0302</span><span class="p">,</span><span class="w"> </span><span class="mo">0121</span><span class="p">,</span><span class="w"> </span><span class="mo">0356</span><span class="p">,</span><span class="w"> </span><span class="mo">0145</span><span class="p">,</span><span class="w"> </span><span class="mo">0000</span><span class="p">,</span><span class="w"> </span><span class="mo">0050</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0165</span><span class="p">,</span><span class="w"> </span><span class="mo">0141</span><span class="p">,</span><span class="w"> </span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="mo">0171</span><span class="p">,</span><span class="w"> </span><span class="mo">0051</span> +<a id="line-944" name="line-944"></a><span class="p">}</span><span class="w"> </span><span class="p">};</span> +<a id="line-945" name="line-945"></a> +<a id="line-946" name="line-946"></a><span class="k">static</span><span class="w"> </span><span class="n">GStaticResource</span><span class="w"> </span><span class="n">static_resource</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">calculator_resource_data</span><span class="p">.</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="w"> </span><span class="p">(</span><span class="n">calculator_resource_data</span><span class="p">.</span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="cm">/* nul terminator */</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span> +<a id="line-947" name="line-947"></a> +<a id="line-948" name="line-948"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-949" name="line-949"></a><span class="n">GResource</span><span class="w"> </span><span class="o">*</span><span class="n">calculator_get_resource</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-950" name="line-950"></a><span class="n">GResource</span><span class="w"> </span><span class="o">*</span><span class="nf">calculator_get_resource</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-951" name="line-951"></a><span class="p">{</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_static_resource_get_resource</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">static_resource</span><span class="p">);</span> +<a id="line-953" name="line-953"></a><span class="p">}</span> +<a id="line-954" name="line-954"></a><span class="cm">/* GLIB - Library of useful routines for C programming</span> +<a id="line-955" name="line-955"></a><span class="cm"> * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald</span> +<a id="line-956" name="line-956"></a><span class="cm"> *</span> +<a id="line-957" name="line-957"></a><span class="cm"> * SPDX-License-Identifier: LGPL-2.1-or-later</span> +<a id="line-958" name="line-958"></a><span class="cm"> *</span> +<a id="line-959" name="line-959"></a><span class="cm"> * This library is free software; you can redistribute it and/or</span> +<a id="line-960" name="line-960"></a><span class="cm"> * modify it under the terms of the GNU Lesser General Public</span> +<a id="line-961" name="line-961"></a><span class="cm"> * License as published by the Free Software Foundation; either</span> +<a id="line-962" name="line-962"></a><span class="cm"> * version 2.1 of the License, or (at your option) any later version.</span> +<a id="line-963" name="line-963"></a><span class="cm"> *</span> +<a id="line-964" name="line-964"></a><span class="cm"> * This library is distributed in the hope that it will be useful,</span> +<a id="line-965" name="line-965"></a><span class="cm"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> +<a id="line-966" name="line-966"></a><span class="cm"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> +<a id="line-967" name="line-967"></a><span class="cm"> * Lesser General Public License for more details.</span> +<a id="line-968" name="line-968"></a><span class="cm"> *</span> +<a id="line-969" name="line-969"></a><span class="cm"> * You should have received a copy of the GNU Lesser General Public</span> +<a id="line-970" name="line-970"></a><span class="cm"> * License along with this library; if not, see <http://www.gnu.org/licenses/>.</span> +<a id="line-971" name="line-971"></a><span class="cm"> */</span> +<a id="line-972" name="line-972"></a> +<a id="line-973" name="line-973"></a><span class="cm">/*</span> +<a id="line-974" name="line-974"></a><span class="cm"> * Modified by the GLib Team and others 1997-2000. See the AUTHORS</span> +<a id="line-975" name="line-975"></a><span class="cm"> * file for a list of people on the GLib Team. See the ChangeLog</span> +<a id="line-976" name="line-976"></a><span class="cm"> * files for a list of changes. These files are distributed with</span> +<a id="line-977" name="line-977"></a><span class="cm"> * GLib at ftp://ftp.gtk.org/pub/gtk/.</span> +<a id="line-978" name="line-978"></a><span class="cm"> */</span> +<a id="line-979" name="line-979"></a> +<a id="line-980" name="line-980"></a><span class="cp">#ifndef __G_CONSTRUCTOR_H__</span> +<a id="line-981" name="line-981"></a><span class="cp">#define __G_CONSTRUCTOR_H__</span> +<a id="line-982" name="line-982"></a> +<a id="line-983" name="line-983"></a><span class="cm">/*</span> +<a id="line-984" name="line-984"></a><span class="cm"> If G_HAS_CONSTRUCTORS is true then the compiler support *both* constructors and</span> +<a id="line-985" name="line-985"></a><span class="cm"> destructors, in a usable way, including e.g. on library unload. If not you're on</span> +<a id="line-986" name="line-986"></a><span class="cm"> your own.</span> +<a id="line-987" name="line-987"></a> +<a id="line-988" name="line-988"></a><span class="cm"> Some compilers need #pragma to handle this, which does not work with macros,</span> +<a id="line-989" name="line-989"></a><span class="cm"> so the way you need to use this is (for constructors):</span> +<a id="line-990" name="line-990"></a> +<a id="line-991" name="line-991"></a><span class="cm"> #ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA</span> +<a id="line-992" name="line-992"></a><span class="cm"> #pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(my_constructor)</span> +<a id="line-993" name="line-993"></a><span class="cm"> #endif</span> +<a id="line-994" name="line-994"></a><span class="cm"> G_DEFINE_CONSTRUCTOR(my_constructor)</span> +<a id="line-995" name="line-995"></a><span class="cm"> static void my_constructor(void) {</span> +<a id="line-996" name="line-996"></a><span class="cm"> ...</span> +<a id="line-997" name="line-997"></a><span class="cm"> }</span> +<a id="line-998" name="line-998"></a> +<a id="line-999" name="line-999"></a><span class="cm">*/</span> +<a id="line-1000" name="line-1000"></a> +<a id="line-1001" name="line-1001"></a><span class="cp">#ifndef __GTK_DOC_IGNORE__</span> +<a id="line-1002" name="line-1002"></a> +<a id="line-1003" name="line-1003"></a><span class="cp">#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)</span> +<a id="line-1004" name="line-1004"></a> +<a id="line-1005" name="line-1005"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-1006" name="line-1006"></a> +<a id="line-1007" name="line-1007"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) static void __attribute__((constructor)) _func (void);</span> +<a id="line-1008" name="line-1008"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) static void __attribute__((destructor)) _func (void);</span> +<a id="line-1009" name="line-1009"></a> +<a id="line-1010" name="line-1010"></a><span class="cp">#elif defined (_MSC_VER) && (_MSC_VER >= 1500)</span> +<a id="line-1011" name="line-1011"></a><span class="cm">/* Visual studio 2008 and later has _Pragma */</span> +<a id="line-1012" name="line-1012"></a> +<a id="line-1013" name="line-1013"></a><span class="cm">/*</span> +<a id="line-1014" name="line-1014"></a><span class="cm"> * Only try to include gslist.h if not already included via glib.h,</span> +<a id="line-1015" name="line-1015"></a><span class="cm"> * so that items using gconstructor.h outside of GLib (such as</span> +<a id="line-1016" name="line-1016"></a><span class="cm"> * GResources) continue to build properly.</span> +<a id="line-1017" name="line-1017"></a><span class="cm"> */</span> +<a id="line-1018" name="line-1018"></a><span class="cp">#ifndef __G_LIB_H__</span> +<a id="line-1019" name="line-1019"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"gslist.h"</span> +<a id="line-1020" name="line-1020"></a><span class="cp">#endif</span> +<a id="line-1021" name="line-1021"></a> +<a id="line-1022" name="line-1022"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span> +<a id="line-1023" name="line-1023"></a> +<a id="line-1024" name="line-1024"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-1025" name="line-1025"></a> +<a id="line-1026" name="line-1026"></a><span class="cm">/* We do some weird things to avoid the constructors being optimized</span> +<a id="line-1027" name="line-1027"></a><span class="cm"> * away on VS2015 if WholeProgramOptimization is enabled. First we</span> +<a id="line-1028" name="line-1028"></a><span class="cm"> * make a reference to the array from the wrapper to make sure its</span> +<a id="line-1029" name="line-1029"></a><span class="cm"> * references. Then we use a pragma to make sure the wrapper function</span> +<a id="line-1030" name="line-1030"></a><span class="cm"> * symbol is always included at the link stage. Also, the symbols</span> +<a id="line-1031" name="line-1031"></a><span class="cm"> * need to be extern (but not dllexport), even though they are not</span> +<a id="line-1032" name="line-1032"></a><span class="cm"> * really used from another object file.</span> +<a id="line-1033" name="line-1033"></a><span class="cm"> */</span> +<a id="line-1034" name="line-1034"></a> +<a id="line-1035" name="line-1035"></a><span class="cm">/* We need to account for differences between the mangling of symbols</span> +<a id="line-1036" name="line-1036"></a><span class="cm"> * for x86 and x64/ARM/ARM64 programs, as symbols on x86 are prefixed</span> +<a id="line-1037" name="line-1037"></a><span class="cm"> * with an underscore but symbols on x64/ARM/ARM64 are not.</span> +<a id="line-1038" name="line-1038"></a><span class="cm"> */</span> +<a id="line-1039" name="line-1039"></a><span class="cp">#ifdef _M_IX86</span> +<a id="line-1040" name="line-1040"></a><span class="cp">#define G_MSVC_SYMBOL_PREFIX "_"</span> +<a id="line-1041" name="line-1041"></a><span class="cp">#else</span> +<a id="line-1042" name="line-1042"></a><span class="cp">#define G_MSVC_SYMBOL_PREFIX ""</span> +<a id="line-1043" name="line-1043"></a><span class="cp">#endif</span> +<a id="line-1044" name="line-1044"></a> +<a id="line-1045" name="line-1045"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) G_MSVC_CTOR (_func, G_MSVC_SYMBOL_PREFIX)</span> +<a id="line-1046" name="line-1046"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) G_MSVC_DTOR (_func, G_MSVC_SYMBOL_PREFIX)</span> +<a id="line-1047" name="line-1047"></a> +<a id="line-1048" name="line-1048"></a><span class="cp">#define G_MSVC_CTOR(_func,_sym_prefix) \</span> +<a id="line-1049" name="line-1049"></a><span class="cp"> static void _func(void); \</span> +<a id="line-1050" name="line-1050"></a><span class="cp"> extern int (* _array ## _func)(void); \</span> +<a id="line-1051" name="line-1051"></a><span class="cp"> int _func ## _wrapper(void); \</span> +<a id="line-1052" name="line-1052"></a><span class="cp"> int _func ## _wrapper(void) { _func(); g_slist_find (NULL, _array ## _func); return 0; } \</span> +<a id="line-1053" name="line-1053"></a><span class="cp"> __pragma(comment(linker,"/include:" _sym_prefix # _func "_wrapper")) \</span> +<a id="line-1054" name="line-1054"></a><span class="cp"> __pragma(section(".CRT$XCU",read)) \</span> +<a id="line-1055" name="line-1055"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _wrapper;</span> +<a id="line-1056" name="line-1056"></a> +<a id="line-1057" name="line-1057"></a><span class="cp">#define G_MSVC_DTOR(_func,_sym_prefix) \</span> +<a id="line-1058" name="line-1058"></a><span class="cp"> static void _func(void); \</span> +<a id="line-1059" name="line-1059"></a><span class="cp"> extern int (* _array ## _func)(void); \</span> +<a id="line-1060" name="line-1060"></a><span class="cp"> int _func ## _constructor(void); \</span> +<a id="line-1061" name="line-1061"></a><span class="cp"> int _func ## _constructor(void) { atexit (_func); g_slist_find (NULL, _array ## _func); return 0; } \</span> +<a id="line-1062" name="line-1062"></a><span class="cp"> __pragma(comment(linker,"/include:" _sym_prefix # _func "_constructor")) \</span> +<a id="line-1063" name="line-1063"></a><span class="cp"> __pragma(section(".CRT$XCU",read)) \</span> +<a id="line-1064" name="line-1064"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) int (* _array ## _func)(void) = _func ## _constructor;</span> +<a id="line-1065" name="line-1065"></a> +<a id="line-1066" name="line-1066"></a><span class="cp">#elif defined (_MSC_VER)</span> +<a id="line-1067" name="line-1067"></a> +<a id="line-1068" name="line-1068"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-1069" name="line-1069"></a> +<a id="line-1070" name="line-1070"></a><span class="cm">/* Pre Visual studio 2008 must use #pragma section */</span> +<a id="line-1071" name="line-1071"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-1072" name="line-1072"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-1073" name="line-1073"></a> +<a id="line-1074" name="line-1074"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-1075" name="line-1075"></a><span class="cp"> section(".CRT$XCU",read)</span> +<a id="line-1076" name="line-1076"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) \</span> +<a id="line-1077" name="line-1077"></a><span class="cp"> static void _func(void); \</span> +<a id="line-1078" name="line-1078"></a><span class="cp"> static int _func ## _wrapper(void) { _func(); return 0; } \</span> +<a id="line-1079" name="line-1079"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) static int (*p)(void) = _func ## _wrapper;</span> +<a id="line-1080" name="line-1080"></a> +<a id="line-1081" name="line-1081"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-1082" name="line-1082"></a><span class="cp"> section(".CRT$XCU",read)</span> +<a id="line-1083" name="line-1083"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) \</span> +<a id="line-1084" name="line-1084"></a><span class="cp"> static void _func(void); \</span> +<a id="line-1085" name="line-1085"></a><span class="cp"> static int _func ## _constructor(void) { atexit (_func); return 0; } \</span> +<a id="line-1086" name="line-1086"></a><span class="cp"> __declspec(allocate(".CRT$XCU")) static int (* _array ## _func)(void) = _func ## _constructor;</span> +<a id="line-1087" name="line-1087"></a> +<a id="line-1088" name="line-1088"></a><span class="cp">#elif defined(__SUNPRO_C)</span> +<a id="line-1089" name="line-1089"></a> +<a id="line-1090" name="line-1090"></a><span class="cm">/* This is not tested, but i believe it should work, based on:</span> +<a id="line-1091" name="line-1091"></a><span class="cm"> * http://opensource.apple.com/source/OpenSSL098/OpenSSL098-35/src/fips/fips_premain.c</span> +<a id="line-1092" name="line-1092"></a><span class="cm"> */</span> +<a id="line-1093" name="line-1093"></a> +<a id="line-1094" name="line-1094"></a><span class="cp">#define G_HAS_CONSTRUCTORS 1</span> +<a id="line-1095" name="line-1095"></a> +<a id="line-1096" name="line-1096"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-1097" name="line-1097"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA 1</span> +<a id="line-1098" name="line-1098"></a> +<a id="line-1099" name="line-1099"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-1100" name="line-1100"></a><span class="cp"> init(_func)</span> +<a id="line-1101" name="line-1101"></a><span class="cp">#define G_DEFINE_CONSTRUCTOR(_func) \</span> +<a id="line-1102" name="line-1102"></a><span class="cp"> static void _func(void);</span> +<a id="line-1103" name="line-1103"></a> +<a id="line-1104" name="line-1104"></a><span class="cp">#define G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(_func) \</span> +<a id="line-1105" name="line-1105"></a><span class="cp"> fini(_func)</span> +<a id="line-1106" name="line-1106"></a><span class="cp">#define G_DEFINE_DESTRUCTOR(_func) \</span> +<a id="line-1107" name="line-1107"></a><span class="cp"> static void _func(void);</span> +<a id="line-1108" name="line-1108"></a> +<a id="line-1109" name="line-1109"></a><span class="cp">#else</span> +<a id="line-1110" name="line-1110"></a> +<a id="line-1111" name="line-1111"></a><span class="cm">/* constructors not supported for this compiler */</span> +<a id="line-1112" name="line-1112"></a> +<a id="line-1113" name="line-1113"></a><span class="cp">#endif</span> +<a id="line-1114" name="line-1114"></a> +<a id="line-1115" name="line-1115"></a><span class="cp">#endif </span><span class="cm">/* __GTK_DOC_IGNORE__ */</span> +<a id="line-1116" name="line-1116"></a><span class="cp">#endif </span><span class="cm">/* __G_CONSTRUCTOR_H__ */</span> +<a id="line-1117" name="line-1117"></a> +<a id="line-1118" name="line-1118"></a><span class="cp">#ifdef G_HAS_CONSTRUCTORS</span> +<a id="line-1119" name="line-1119"></a> +<a id="line-1120" name="line-1120"></a><span class="cp">#ifdef G_DEFINE_CONSTRUCTOR_NEEDS_PRAGMA</span> +<a id="line-1121" name="line-1121"></a><span class="cp">#pragma G_DEFINE_CONSTRUCTOR_PRAGMA_ARGS(calculatorresource_constructor)</span> +<a id="line-1122" name="line-1122"></a><span class="cp">#endif</span> +<a id="line-1123" name="line-1123"></a><span class="n">G_DEFINE_CONSTRUCTOR</span><span class="p">(</span><span class="n">calculatorresource_constructor</span><span class="p">)</span> +<a id="line-1124" name="line-1124"></a><span class="cp">#ifdef G_DEFINE_DESTRUCTOR_NEEDS_PRAGMA</span> +<a id="line-1125" name="line-1125"></a><span class="cp">#pragma G_DEFINE_DESTRUCTOR_PRAGMA_ARGS(calculatorresource_destructor)</span> +<a id="line-1126" name="line-1126"></a><span class="cp">#endif</span> +<a id="line-1127" name="line-1127"></a><span class="n">G_DEFINE_DESTRUCTOR</span><span class="p">(</span><span class="n">calculatorresource_destructor</span><span class="p">)</span> +<a id="line-1128" name="line-1128"></a> +<a id="line-1129" name="line-1129"></a><span class="cp">#else</span> +<a id="line-1130" name="line-1130"></a><span class="cp">#warning "Constructor not supported on this compiler, linking in resources will not work"</span> +<a id="line-1131" name="line-1131"></a><span class="cp">#endif</span> +<a id="line-1132" name="line-1132"></a> +<a id="line-1133" name="line-1133"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">calculatorresource_constructor</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-1134" name="line-1134"></a><span class="p">{</span> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="n">g_static_resource_init</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">static_resource</span><span class="p">);</span> +<a id="line-1136" name="line-1136"></a><span class="p">}</span> +<a id="line-1137" name="line-1137"></a> +<a id="line-1138" name="line-1138"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="n">calculatorresource_destructor</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-1139" name="line-1139"></a><span class="p">{</span> +<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">g_static_resource_fini</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">static_resource</span><span class="p">);</span> +<a id="line-1141" name="line-1141"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/13.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/13.html new file mode 100644 index 0000000..c84d8d2 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/13.html @@ -0,0 +1,767 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mate-calc.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mate-calc.c</p> +<a href="13.html#line-13"> missingIncludeSystem 13</a><a href="13.html#line-16"> missingIncludeSystem 16</a><a href="13.html#line-17"> missingIncludeSystem 17</a><a href="13.html#line-18"> missingIncludeSystem 18</a><a href="13.html#line-19"> missingIncludeSystem 19</a><a href="13.html#line-20"> missingIncludeSystem 20</a><a href="13.html#line-127"> variableScope 127</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span><span class="error2"><--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="cp">#endif</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-19" name="line-19"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><locale.h></span><span class="error2"><--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-20" name="line-20"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-window.h"</span> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-preferences.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-manager.h"</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"utility.h"</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">g_settings_var</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">static</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">;</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-33" name="line-33"></a><span class="nf">version</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">progname</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* NOTE: Is not translated so can be easily parsed */</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"%1$s %2$s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="n">VERSION</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="p">}</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-40" name="line-40"></a><span class="nf">do_convert</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-41" name="line-41"></a><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit_manager_convert_by_symbol</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-43" name="line-43"></a><span class="p">}</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-46" name="line-46"></a><span class="nf">solve</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-47" name="line-47"></a><span class="p">{</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">MPErrorCode</span><span class="w"> </span><span class="n">error</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">result_str</span><span class="p">;</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">memset</span><span class="p">(</span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">options</span><span class="p">));</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">convert</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">do_convert</span><span class="p">;</span> +<a id="line-58" name="line-58"></a> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_equation_parse</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"Error: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_get_error</span><span class="p">());</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">}</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"Error: %s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_error_code_to_string</span><span class="p">(</span><span class="n">error</span><span class="p">));</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="p">}</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">result_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">9</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"%s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">result_str</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">}</span> +<a id="line-76" name="line-76"></a><span class="p">}</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-79" name="line-79"></a><span class="nf">usage</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">show_application</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">show_gtk</span><span class="p">)</span> +<a id="line-80" name="line-80"></a><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="cm">/* Description on how to use mate-calc displayed on command-line */</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Usage:</span><span class="se">\n</span><span class="s">"</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="s">" %s — Perform mathematical calculations"</span><span class="p">),</span><span class="w"> </span><span class="n">progname</span><span class="p">);</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="s">"</span><span class="se">\n\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="cm">/* Description on mate-calc command-line help options displayed on command-line */</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Help Options:</span><span class="se">\n</span><span class="s">"</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="s">" -v, --version Show release version</span><span class="se">\n</span><span class="s">"</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="s">" -h, -?, --help Show help options</span><span class="se">\n</span><span class="s">"</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="s">" --help-all Show all help options</span><span class="se">\n</span><span class="s">"</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="s">" --help-gtk Show GTK+ options"</span><span class="p">));</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="s">"</span><span class="se">\n\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show_gtk</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="cm">/* Description on mate-calc command-line GTK+ options displayed on command-line */</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"GTK+ Options:</span><span class="se">\n</span><span class="s">"</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="s">" --class=CLASS Program class as used by the window manager</span><span class="se">\n</span><span class="s">"</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="s">" --name=NAME Program name as used by the window manager</span><span class="se">\n</span><span class="s">"</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="s">" --screen=SCREEN X screen to use</span><span class="se">\n</span><span class="s">"</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="s">" --sync Make X calls synchronous</span><span class="se">\n</span><span class="s">"</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="s">" --gtk-module=MODULES Load additional GTK+ modules</span><span class="se">\n</span><span class="s">"</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="s">" --g-fatal-warnings Make all warnings fatal"</span><span class="p">));</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="s">"</span><span class="se">\n\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">}</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">show_application</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="cm">/* Description on mate-calc application options displayed on command-line */</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Application Options:</span><span class="se">\n</span><span class="s">"</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="s">" -s, --solve <equation> Solve the given equation"</span><span class="p">));</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="s">"</span><span class="se">\n\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span> +<a id="line-121" name="line-121"></a><span class="p">}</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-124" name="line-124"></a><span class="nf">get_options</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">argv</span><span class="p">[])</span> +<a id="line-125" name="line-125"></a><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-127" name="line-127"></a><span class="hll"><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">arg</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'arg' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'arg' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">progname</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_basename</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">argc</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">arg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">argv</span><span class="p">[</span><span class="n">i</span><span class="p">];</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"-v"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"--version"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">version</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"-h"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"-?"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"--help"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">usage</span><span class="p">(</span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">}</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"--help-all"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">usage</span><span class="p">(</span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">}</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"--help-gtk"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">usage</span><span class="p">(</span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="p">}</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"-s"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">arg</span><span class="p">,</span><span class="w"> </span><span class="s">"--solve"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">argc</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="cm">/* Error printed to stderr when user uses --solve argument without an equation */</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Argument --solve requires an equation to solve"</span><span class="p">));</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">}</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">else</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">solve</span><span class="p">(</span><span class="n">argv</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">}</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="cm">/* Error printed to stderr when user provides an unknown command-line argument */</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Unknown argument '%s'"</span><span class="p">),</span><span class="w"> </span><span class="n">arg</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">stderr</span><span class="p">,</span><span class="w"> </span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">usage</span><span class="p">(</span><span class="n">progname</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="p">}</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">progname</span><span class="p">);</span> +<a id="line-183" name="line-183"></a><span class="p">}</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-186" name="line-186"></a><span class="nf">quit_cb</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">win</span><span class="p">)</span> +<a id="line-187" name="line-187"></a><span class="p">{</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">gtk_main_quit</span><span class="p">();</span> +<a id="line-189" name="line-189"></a><span class="p">}</span> +<a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">argv</span><span class="p">)</span> +<a id="line-192" name="line-192"></a><span class="p">{</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">accuracy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">9</span><span class="p">,</span><span class="w"> </span><span class="n">word_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">show_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">show_zeroes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">show_hist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">number_format</span><span class="p">;</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">angle_units</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">ButtonMode</span><span class="w"> </span><span class="n">button_mode</span><span class="p">;</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">source_currency</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">target_currency</span><span class="p">;</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">source_units</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">target_units</span><span class="p">;</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">setlocale</span><span class="p">(</span><span class="n">LC_ALL</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">bindtextdomain</span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="n">LOCALE_DIR</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">bind_textdomain_codeset</span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">,</span><span class="w"> </span><span class="s">"UTF-8"</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">textdomain</span><span class="p">(</span><span class="n">GETTEXT_PACKAGE</span><span class="p">);</span> +<a id="line-207" name="line-207"></a> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="cm">/* Seed random number generator. */</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">srand48</span><span class="p">((</span><span class="kt">long</span><span class="p">)</span><span class="w"> </span><span class="n">time</span><span class="p">((</span><span class="kt">time_t</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="mi">0</span><span class="p">));</span> +<a id="line-210" name="line-210"></a> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">gtk_init</span><span class="p">(</span><span class="o">&</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">argv</span><span class="p">);</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_settings_var</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_new</span><span class="w"> </span><span class="p">(</span><span class="s">"org.mate.calc"</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">accuracy</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_int</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"accuracy"</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">word_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_int</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"word-size"</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_int</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"base"</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">show_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"show-thousands"</span><span class="p">);</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">show_zeroes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"show-zeroes"</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">show_hist</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_boolean</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"show-history"</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">number_format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_enum</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"number-format"</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_enum</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"angle-units"</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">button_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_enum</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"button-mode"</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">source_currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"source-currency"</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">target_currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"target-currency"</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">source_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"source-units"</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">target_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_settings_get_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"target-units"</span><span class="p">);</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_new</span><span class="p">();</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">math_equation_set_accuracy</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">accuracy</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">math_equation_set_word_size</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">word_size</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">math_equation_set_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">show_tsep</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">math_equation_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">show_zeroes</span><span class="p">);</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">math_equation_set_number_format</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">number_format</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">math_equation_set_angle_units</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">angle_units</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">math_equation_set_source_currency</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">source_currency</span><span class="p">);</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">math_equation_set_target_currency</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">target_currency</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">math_equation_set_source_units</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">source_units</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">math_equation_set_target_units</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">target_units</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">source_currency</span><span class="p">);</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">target_currency</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">source_units</span><span class="p">);</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">target_units</span><span class="p">);</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">get_options</span><span class="p">(</span><span class="n">argc</span><span class="p">,</span><span class="w"> </span><span class="n">argv</span><span class="p">);</span> +<a id="line-245" name="line-245"></a> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="c1">//gtk_window_set_default_icon_name("accessories-calculator");</span> +<a id="line-247" name="line-247"></a> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_window_new</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">buttons</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_window_get_buttons</span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">"quit"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">quit_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">math_window_set_show_history</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">show_hist</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">math_buttons_set_programming_base</span><span class="p">(</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">math_buttons_set_mode</span><span class="p">(</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">button_mode</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: We load the basic buttons even if we immediately switch to the next type</span> +<a id="line-254" name="line-254"></a> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">gtk_main</span><span class="p">();</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-259" name="line-259"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/14.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/14.html new file mode 100644 index 0000000..ce3cc1c --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/14.html @@ -0,0 +1,357 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-window.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-window.h</p> +<a href="14.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifndef MATH_WINDOW_H</span> +<a id="line-13" name="line-13"></a><span class="cp">#define MATH_WINDOW_H</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-display.h"</span> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-buttons.h"</span> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-preferences.h"</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="cp">#define MATH_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_window_get_type(), MathWindow))</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathWindowPrivate</span><span class="w"> </span><span class="n">MathWindowPrivate</span><span class="p">;</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-28" name="line-28"></a><span class="p">{</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">MathWindowPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-31" name="line-31"></a><span class="p">}</span><span class="w"> </span><span class="n">MathWindow</span><span class="p">;</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">GtkWindowClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">quit</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="p">}</span><span class="w"> </span><span class="n">MathWindowClass</span><span class="p">;</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_window_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="nf">math_window_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">math_window_get_menu_bar</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="nf">math_window_get_equation</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="nf">math_window_get_display</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="nf">math_window_get_buttons</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_window_get_show_history</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_window_set_show_history</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_window_critical_error</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">title</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">contents</span><span class="p">);</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="n">G_END_DECLS</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="cp">#endif </span><span class="cm">/* MATH_WINDOW_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/15.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/15.html new file mode 100644 index 0000000..4199df3 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/15.html @@ -0,0 +1,329 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-display.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-display.h</p> +<a href="15.html#line-14"> missingIncludeSystem 14</a><a href="15.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef MATH_DISPLAY_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define MATH_DISPLAY_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cp">#define MATH_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_display_get_type(), MathDisplay))</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathDisplayPrivate</span><span class="w"> </span><span class="n">MathDisplayPrivate</span><span class="p">;</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-26" name="line-26"></a><span class="p">{</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">GtkViewport</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">MathDisplayPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="p">}</span><span class="w"> </span><span class="n">MathDisplay</span><span class="p">;</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-32" name="line-32"></a><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GtkViewportClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-34" name="line-34"></a><span class="p">}</span><span class="w"> </span><span class="n">MathDisplayClass</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_display_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="nf">math_display_new</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="nf">math_display_new_with_equation</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="nf">math_display_get_equation</span><span class="p">(</span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">G_END_DECLS</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="cp">#endif </span><span class="cm">/* MATH_DISPLAY_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/16.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/16.html new file mode 100644 index 0000000..87c9125 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/16.html @@ -0,0 +1,349 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-buttons.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-buttons.h</p> +<a href="16.html#line-14"> missingIncludeSystem 14</a><a href="16.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef MATH_BUTTONS_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define MATH_BUTTONS_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="cp">#define MATH_BUTTONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_buttons_get_type(), MathButtons))</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathButtonsPrivate</span><span class="w"> </span><span class="n">MathButtonsPrivate</span><span class="p">;</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-25" name="line-25"></a><span class="p">{</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">GtkVBox</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">MathButtonsPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="p">}</span><span class="w"> </span><span class="n">MathButtons</span><span class="p">;</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-31" name="line-31"></a><span class="p">{</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">GtkVBoxClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="p">}</span><span class="w"> </span><span class="n">MathButtonsClass</span><span class="p">;</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">BASIC</span><span class="p">,</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">ADVANCED</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">FINANCIAL</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">PROGRAMMING</span> +<a id="line-40" name="line-40"></a><span class="p">}</span><span class="w"> </span><span class="n">ButtonMode</span><span class="p">;</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_buttons_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="nf">math_buttons_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_buttons_set_mode</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">ButtonMode</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="n">ButtonMode</span><span class="w"> </span><span class="nf">math_buttons_get_mode</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_buttons_set_programming_base</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">gint</span><span class="w"> </span><span class="nf">math_buttons_get_programming_base</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="n">G_END_DECLS</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="cp">#endif </span><span class="cm">/* MATH_BUTTONS_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/17.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/17.html new file mode 100644 index 0000000..5e4a28a --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/17.html @@ -0,0 +1,319 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-preferences.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-preferences.h</p> +<a href="17.html#line-14"> missingIncludeSystem 14</a><a href="17.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef MATH_PREFERENCES_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define MATH_PREFERENCES_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="cp">#define MATH_PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_preferences_get_type(), MathPreferencesDialog))</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathPreferencesDialogPrivate</span><span class="w"> </span><span class="n">MathPreferencesDialogPrivate</span><span class="p">;</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-25" name="line-25"></a><span class="p">{</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">GtkDialog</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">MathPreferencesDialogPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="p">}</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="p">;</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-31" name="line-31"></a><span class="p">{</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">GtkDialogClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="p">}</span><span class="w"> </span><span class="n">MathPreferencesDialogClass</span><span class="p">;</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_preferences_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="nf">math_preferences_dialog_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="n">G_END_DECLS</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="cp">#endif </span><span class="cm">/* MATH_PREFERENCES_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/18.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/18.html new file mode 100644 index 0000000..79e3de7 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/18.html @@ -0,0 +1,345 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/unit-manager.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> unit-manager.h</p> +<a href="18.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifndef UNIT_MANAGER_H</span> +<a id="line-13" name="line-13"></a><span class="cp">#define UNIT_MANAGER_H</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-category.h"</span> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cp">#define UNIT_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), unit_manager_get_type(), UnitManager))</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">UnitManagerPrivate</span><span class="w"> </span><span class="n">UnitManagerPrivate</span><span class="p">;</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-26" name="line-26"></a><span class="p">{</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">UnitManagerPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="p">}</span><span class="w"> </span><span class="n">UnitManager</span><span class="p">;</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-32" name="line-32"></a><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-34" name="line-34"></a><span class="p">}</span><span class="w"> </span><span class="n">UnitManagerClass</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">GType</span><span class="w"> </span><span class="nf">unit_manager_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_manager_get_default</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_manager_add_category</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_manager_get_categories</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_manager_get_category</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_manager_get_unit_by_name</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_manager_get_unit_by_symbol</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">unit_manager_convert_by_symbol</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_symbol</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_symbol</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">G_END_DECLS</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="cp">#endif </span><span class="cm">/* UNIT_MANAGER_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/19.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/19.html new file mode 100644 index 0000000..0550891 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/19.html @@ -0,0 +1,349 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/unit-category.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> unit-category.h</p> +<a href="19.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifndef UNIT_CATEGORY_H</span> +<a id="line-13" name="line-13"></a><span class="cp">#define UNIT_CATEGORY_H</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit.h"</span> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cp">#define UNIT_CATEGORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), unit_category_get_type(), UnitCategory))</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">UnitCategoryPrivate</span><span class="w"> </span><span class="n">UnitCategoryPrivate</span><span class="p">;</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-26" name="line-26"></a><span class="p">{</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">UnitCategoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="p">}</span><span class="w"> </span><span class="n">UnitCategory</span><span class="p">;</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-32" name="line-32"></a><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-34" name="line-34"></a><span class="p">}</span><span class="w"> </span><span class="n">UnitCategoryClass</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">GType</span><span class="w"> </span><span class="nf">unit_category_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_category_new</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_category_get_name</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_category_get_display_name</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_category_get_unit_by_name</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_category_get_unit_by_symbol</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="kt">void</span><span class="w"> </span><span class="nf">unit_category_add_unit</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_category_get_units</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">unit_category_convert</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="n">G_END_DECLS</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="cp">#endif </span><span class="cm">/* UNIT_CATEGORY_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/2.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/2.html new file mode 100644 index 0000000..d6e21e4 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/2.html @@ -0,0 +1,923 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp.h</p> +<a href="2.html#line-33"> missingIncludeSystem 33</a><a href="2.html#line-34"> missingIncludeSystem 34</a><a href="2.html#line-35"> missingIncludeSystem 35</a><a href="2.html#line-36"> missingIncludeSystem 36</a><a href="2.html#line-37"> missingIncludeSystem 37</a><a href="2.html#line-38"> missingIncludeSystem 38</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cm">/* This maths library is based on the MP multi-precision floating-point</span> +<a id="line-13" name="line-13"></a><span class="cm"> * arithmetic package originally written in FORTRAN by Richard Brent,</span> +<a id="line-14" name="line-14"></a><span class="cm"> * Computer Centre, Australian National University in the 1970's.</span> +<a id="line-15" name="line-15"></a><span class="cm"> *</span> +<a id="line-16" name="line-16"></a><span class="cm"> * It has been converted from FORTRAN into C using the freely available</span> +<a id="line-17" name="line-17"></a><span class="cm"> * f2c translator, available via netlib on research.att.com.</span> +<a id="line-18" name="line-18"></a><span class="cm"> *</span> +<a id="line-19" name="line-19"></a><span class="cm"> * The subsequently converted C code has then been tidied up, mainly to</span> +<a id="line-20" name="line-20"></a><span class="cm"> * remove any dependencies on the libI77 and libF77 support libraries.</span> +<a id="line-21" name="line-21"></a><span class="cm"> *</span> +<a id="line-22" name="line-22"></a><span class="cm"> * FOR A GENERAL DESCRIPTION OF THE PHILOSOPHY AND DESIGN OF MP,</span> +<a id="line-23" name="line-23"></a><span class="cm"> * SEE - R. P. BRENT, A FORTRAN MULTIPLE-PRECISION ARITHMETIC</span> +<a id="line-24" name="line-24"></a><span class="cm"> * PACKAGE, ACM TRANS. MATH. SOFTWARE 4 (MARCH 1978), 57-70.</span> +<a id="line-25" name="line-25"></a><span class="cm"> * SOME ADDITIONAL DETAILS ARE GIVEN IN THE SAME ISSUE, 71-81.</span> +<a id="line-26" name="line-26"></a><span class="cm"> * FOR DETAILS OF THE IMPLEMENTATION, CALLING SEQUENCES ETC. SEE</span> +<a id="line-27" name="line-27"></a><span class="cm"> * THE MP USERS GUIDE.</span> +<a id="line-28" name="line-28"></a><span class="cm"> */</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="cp">#ifndef MP_H</span> +<a id="line-31" name="line-31"></a><span class="cp">#define MP_H</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdbool.h></span><span class="error2"><--- Include file: <stdbool.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-34" name="line-34"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdint.h></span><span class="error2"><--- Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-35" name="line-35"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-36" name="line-36"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-37" name="line-37"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><mpfr.h></span><span class="error2"><--- Include file: <mpfr.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-38" name="line-38"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><mpc.h></span><span class="error2"><--- Include file: <mpc.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cm">/* If we're not using GNU C, elide __attribute__ */</span> +<a id="line-41" name="line-41"></a><span class="cp">#ifndef __GNUC__</span> +<a id="line-42" name="line-42"></a><span class="cp"># define __attribute__(x) </span><span class="cm">/*NOTHING*/</span> +<a id="line-43" name="line-43"></a><span class="cp">#endif</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="cm">/* Precision of mpfr_t and mpc_t type objects */</span> +<a id="line-46" name="line-46"></a><span class="cp">#define PRECISION 1000</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-49" name="line-49"></a><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">mpc_t</span><span class="w"> </span><span class="n">num</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="p">}</span><span class="w"> </span><span class="n">MPNumber</span><span class="p">;</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span> +<a id="line-54" name="line-54"></a><span class="p">{</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">MP_RADIANS</span><span class="p">,</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">,</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">MP_GRADIANS</span> +<a id="line-58" name="line-58"></a><span class="p">}</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="p">;</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="cm">/* Returns error string or NULL if no error */</span> +<a id="line-61" name="line-61"></a><span class="c1">// FIXME: Global variable</span> +<a id="line-62" name="line-62"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="nf">mp_get_error</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="cm">/* Clear any current error */</span> +<a id="line-65" name="line-65"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_clear_error</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mperr</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span><span class="w"> </span><span class="n">__attribute__</span><span class="p">((</span><span class="n">format</span><span class="p">(</span><span class="n">printf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">)));</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="cm">/* Returns initialized MPNumber object */</span> +<a id="line-70" name="line-70"></a><span class="n">MPNumber</span><span class="w"> </span><span class="nf">mp_new</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="n">MPNumber</span><span class="w"> </span><span class="nf">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="n">ulong</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="nf">mp_new_ptr</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_clear</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_free</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="cm">/* Returns:</span> +<a id="line-81" name="line-81"></a><span class="cm"> * 0 if x == y</span> +<a id="line-82" name="line-82"></a><span class="cm"> * <0 if x < y</span> +<a id="line-83" name="line-83"></a><span class="cm"> * >0 if x > y</span> +<a id="line-84" name="line-84"></a><span class="cm"> */</span> +<a id="line-85" name="line-85"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mp_compare</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="cm">/* Return true if the value is x == 0 */</span> +<a id="line-88" name="line-88"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_zero</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="cm">/* Return true if x < 0 */</span> +<a id="line-91" name="line-91"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_negative</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="cm">/* Return true if x is integer */</span> +<a id="line-94" name="line-94"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="cm">/* Return true if x is a positive integer */</span> +<a id="line-97" name="line-97"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_positive_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="cm">/* Return true if x is a natural number (an integer ≥ 0) */</span> +<a id="line-100" name="line-100"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_natural</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="cm">/* Return true if x has an imaginary component */</span> +<a id="line-103" name="line-103"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_complex</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="cm">/* Return true if x == y */</span> +<a id="line-106" name="line-106"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_equal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="cm">/* Return true if x ≥ y */</span> +<a id="line-109" name="line-109"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_greater_equal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="cm">/* Return true if x > y */</span> +<a id="line-112" name="line-112"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_greater_than</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="cm">/* Return true if x ≤ y */</span> +<a id="line-115" name="line-115"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_less_equal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="cm">/* Return true if x < y */</span> +<a id="line-118" name="line-118"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_less_than</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">);</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="cm">/* Sets z = |x| */</span> +<a id="line-121" name="line-121"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_abs</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="cm">/* Sets z = Arg(x) */</span> +<a id="line-124" name="line-124"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_arg</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="cm">/* Sets z = ‾̅x */</span> +<a id="line-127" name="line-127"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_conjugate</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="cm">/* Sets z = Re(x) */</span> +<a id="line-130" name="line-130"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_real_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="cm">/* Sets z = Im(x) */</span> +<a id="line-133" name="line-133"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_imaginary_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="cm">/* Sets z = −x */</span> +<a id="line-136" name="line-136"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_invert_sign</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="cm">/* Sets z = x + y */</span> +<a id="line-139" name="line-139"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_add</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-140" name="line-140"></a> +<a id="line-141" name="line-141"></a><span class="cm">/* Sets z = x + y */</span> +<a id="line-142" name="line-142"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_add_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="cm">/* Sets z = x − y */</span> +<a id="line-145" name="line-145"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_subtract</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="cm">/* Sets z = x × y */</span> +<a id="line-148" name="line-148"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_multiply</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="cm">/* Sets z = x × y */</span> +<a id="line-151" name="line-151"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_multiply_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="cm">/* Sets z = x ÷ y */</span> +<a id="line-154" name="line-154"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_divide</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="cm">/* Sets z = x ÷ y */</span> +<a id="line-157" name="line-157"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_divide_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="cm">/* Sets z = 1 ÷ x */</span> +<a id="line-160" name="line-160"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_reciprocal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="p">);</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="cm">/* Sets z = sgn(x) */</span> +<a id="line-163" name="line-163"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_sgn</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_integer_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-166" name="line-166"></a> +<a id="line-167" name="line-167"></a><span class="cm">/* Sets z = x mod 1 */</span> +<a id="line-168" name="line-168"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_fractional_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-169" name="line-169"></a> +<a id="line-170" name="line-170"></a><span class="cm">/* Sets z = {x} */</span> +<a id="line-171" name="line-171"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_fractional_part</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="cm">/* Sets z = ⌊x⌋ */</span> +<a id="line-174" name="line-174"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_floor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="cm">/* Sets z = ⌈x⌉ */</span> +<a id="line-177" name="line-177"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_ceiling</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="cm">/* Sets z = [x] */</span> +<a id="line-180" name="line-180"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_round</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="cm">/* Sets z = ln x */</span> +<a id="line-183" name="line-183"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_ln</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="cm">/* Sets z = log_n x */</span> +<a id="line-186" name="line-186"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_logarithm</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="cm">/* Sets z = π */</span> +<a id="line-189" name="line-189"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_get_pi</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="cm">/* Sets z = e */</span> +<a id="line-192" name="line-192"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_get_eulers</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="cm">/* Sets z = i (√−1) */</span> +<a id="line-195" name="line-195"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_get_i</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-196" name="line-196"></a> +<a id="line-197" name="line-197"></a><span class="cm">/* Sets z = n√x */</span> +<a id="line-198" name="line-198"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_root</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="cm">/* Sets z = √x */</span> +<a id="line-201" name="line-201"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_sqrt</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="cm">/* Sets z = x! */</span> +<a id="line-204" name="line-204"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_factorial</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="cm">/* Sets z = x mod y */</span> +<a id="line-207" name="line-207"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_modulus_divide</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="cm">/* Sets z = x ^ y mod p */</span> +<a id="line-210" name="line-210"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_modular_exponentiation</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="cm">/* Sets z = x^y */</span> +<a id="line-213" name="line-213"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_xpowy</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-214" name="line-214"></a> +<a id="line-215" name="line-215"></a><span class="cm">/* Sets z = x^y */</span> +<a id="line-216" name="line-216"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_xpowy_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="cm">/* Sets z = e^x */</span> +<a id="line-219" name="line-219"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_epowy</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-220" name="line-220"></a> +<a id="line-221" name="line-221"></a><span class="cm">/* Returns a list of all prime factors in x as MPNumbers */</span> +<a id="line-222" name="line-222"></a><span class="n">GList</span><span class="o">*</span><span class="w"> </span><span class="nf">mp_factorize</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="n">GList</span><span class="o">*</span><span class="w"> </span><span class="nf">mp_factorize_unit64</span><span class="w"> </span><span class="p">(</span><span class="kt">uint64_t</span><span class="w"> </span><span class="n">n</span><span class="p">);</span> +<a id="line-225" name="line-225"></a> +<a id="line-226" name="line-226"></a><span class="cm">/* Sets z = x */</span> +<a id="line-227" name="line-227"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_mp</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-228" name="line-228"></a> +<a id="line-229" name="line-229"></a><span class="cm">/* Sets z = x */</span> +<a id="line-230" name="line-230"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_float</span><span class="p">(</span><span class="kt">float</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="cm">/* Sets z = x */</span> +<a id="line-233" name="line-233"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_double</span><span class="p">(</span><span class="kt">double</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="cm">/* Sets z = x */</span> +<a id="line-236" name="line-236"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_integer</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-237" name="line-237"></a> +<a id="line-238" name="line-238"></a><span class="cm">/* Sets z = x */</span> +<a id="line-239" name="line-239"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">ulong</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="cm">/* Sets z = numerator ÷ denominator */</span> +<a id="line-242" name="line-242"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_fraction</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">denominator</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="cm">/* Sets z = r(cos theta + i sin theta) */</span> +<a id="line-245" name="line-245"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_polar</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">theta</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="cm">/* Sets z = x + iy */</span> +<a id="line-248" name="line-248"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_complex</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-249" name="line-249"></a> +<a id="line-250" name="line-250"></a><span class="cm">/* Sets z to be a uniform random number in the range [0, 1] */</span> +<a id="line-251" name="line-251"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_set_from_random</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="cm">/* Sets z from a string representation in 'text'.</span> +<a id="line-254" name="line-254"></a><span class="cm"> * Returns true on success.</span> +<a id="line-255" name="line-255"></a><span class="cm"> */</span> +<a id="line-256" name="line-256"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_set_from_string</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">default_base</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="cm">/* Returns x as a native single-precision floating point number */</span> +<a id="line-259" name="line-259"></a><span class="kt">float</span><span class="w"> </span><span class="nf">mp_to_float</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-260" name="line-260"></a> +<a id="line-261" name="line-261"></a><span class="cm">/* Returns x as a native double-precision floating point number */</span> +<a id="line-262" name="line-262"></a><span class="kt">double</span><span class="w"> </span><span class="nf">mp_to_double</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-263" name="line-263"></a> +<a id="line-264" name="line-264"></a><span class="cm">/* Returns x as a native integer */</span> +<a id="line-265" name="line-265"></a><span class="kt">long</span><span class="w"> </span><span class="nf">mp_to_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="cm">/* Returns x as a native unsigned integer */</span> +<a id="line-268" name="line-268"></a><span class="n">ulong</span><span class="w"> </span><span class="nf">mp_to_unsigned_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-269" name="line-269"></a> +<a id="line-270" name="line-270"></a><span class="cm">/* Sets z = sin x */</span> +<a id="line-271" name="line-271"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_sin</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-272" name="line-272"></a> +<a id="line-273" name="line-273"></a><span class="cm">/* Sets z = cos x */</span> +<a id="line-274" name="line-274"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_cos</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="cm">/* Sets z = tan x */</span> +<a id="line-277" name="line-277"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_tan</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="cm">/* Sets z = sin⁻¹ x */</span> +<a id="line-280" name="line-280"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_asin</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="cm">/* Sets z = cos⁻¹ x */</span> +<a id="line-283" name="line-283"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_acos</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></a><span class="cm">/* Sets z = tan⁻¹ x */</span> +<a id="line-286" name="line-286"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_atan</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="cm">/* Sets z = sinh x */</span> +<a id="line-289" name="line-289"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_sinh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="cm">/* Sets z = cosh x */</span> +<a id="line-292" name="line-292"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_cosh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="cm">/* Sets z = tanh x */</span> +<a id="line-295" name="line-295"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_tanh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="cm">/* Sets z = sinh⁻¹ x */</span> +<a id="line-298" name="line-298"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_asinh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="cm">/* Sets z = cosh⁻¹ x */</span> +<a id="line-301" name="line-301"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_acosh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="cm">/* Sets z = tanh⁻¹ x */</span> +<a id="line-304" name="line-304"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_atanh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="cm">/* Sets z to the value of the error function of x */</span> +<a id="line-307" name="line-307"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_erf</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-308" name="line-308"></a> +<a id="line-309" name="line-309"></a><span class="cm">/* Sets z to the value of the Riemann Zeta function of x */</span> +<a id="line-310" name="line-310"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_zeta</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="cm">/* Returns true if x is cannot be represented in a binary word of length 'wordlen' */</span> +<a id="line-313" name="line-313"></a><span class="kt">bool</span><span class="w"> </span><span class="nf">mp_is_overflow</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">);</span> +<a id="line-314" name="line-314"></a> +<a id="line-315" name="line-315"></a><span class="cm">/* Sets z = boolean AND for each bit in x and z */</span> +<a id="line-316" name="line-316"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_and</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="cm">/* Sets z = boolean OR for each bit in x and z */</span> +<a id="line-319" name="line-319"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_or</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="cm">/* Sets z = boolean XOR for each bit in x and z */</span> +<a id="line-322" name="line-322"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_xor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="cm">/* Sets z = boolean XNOR for each bit in x and z for word of length 'wordlen' */</span> +<a id="line-325" name="line-325"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_xnor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></a><span class="cm">/* Sets z = boolean NOT for each bit in x and z for word of length 'wordlen' */</span> +<a id="line-328" name="line-328"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_not</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="cm">/* Sets z = x shifted by 'count' bits. Positive shift increases the value, negative decreases */</span> +<a id="line-331" name="line-331"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_shift</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">count</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="cm">/* Sets z to be the ones complement of x for word of length 'wordlen' */</span> +<a id="line-334" name="line-334"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_ones_complement</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="cm">/* Sets z to be the twos complement of x for word of length 'wordlen' */</span> +<a id="line-337" name="line-337"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_twos_complement</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="kt">void</span><span class="w"> </span><span class="nf">convert_to_radians</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="kt">void</span><span class="w"> </span><span class="nf">convert_from_radians</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-342" name="line-342"></a> +<a id="line-343" name="line-343"></a><span class="cp">#endif </span><span class="cm">/* MP_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/20.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/20.html new file mode 100644 index 0000000..c9048b0 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/20.html @@ -0,0 +1,357 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/unit.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> unit.h</p> +<a href="20.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifndef UNIT_H</span> +<a id="line-13" name="line-13"></a><span class="cp">#define UNIT_H</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="cp">#define UNIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), unit_get_type(), Unit))</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">UnitPrivate</span><span class="w"> </span><span class="n">UnitPrivate</span><span class="p">;</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-25" name="line-25"></a><span class="p">{</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">UnitPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="p">}</span><span class="w"> </span><span class="n">Unit</span><span class="p">;</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-31" name="line-31"></a><span class="p">{</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="p">}</span><span class="w"> </span><span class="n">UnitClass</span><span class="p">;</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="n">GType</span><span class="w"> </span><span class="nf">unit_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_new</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">from_function</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">to_function</span><span class="p">,</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbols</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_get_name</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_get_display_name</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">unit_matches_symbol</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_get_symbols</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">unit_convert_from</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">unit_convert_to</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">unit_format</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="n">G_END_DECLS</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="cp">#endif </span><span class="cm">/* UNIT_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/21.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/21.html new file mode 100644 index 0000000..fb3da8c --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/21.html @@ -0,0 +1,255 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/utility.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> utility.h</p> +<a href="21.html#line-4"> missingIncludeSystem 4</a><a href="21.html#line-5"> missingInclude 5</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span> +<span class="normal">2</span> +<span class="normal">3</span> +<span class="normal">4</span> +<span class="normal">5</span> +<span class="normal">6</span> +<span class="normal">7</span> +<span class="normal">8</span> +<span class="normal">9</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifndef UTILITY_H</span> +<a id="line-2" name="line-2"></a><span class="cp">#define UTILITY_H</span> +<a id="line-3" name="line-3"></a> +<a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-5" name="line-5"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf">"config.h"</span><span class="error2"><--- Include file: "config.h" not found.</span> +</span><a id="line-6" name="line-6"></a> +<a id="line-7" name="line-7"></a><span class="k">extern</span><span class="w"> </span><span class="n">GSettings</span><span class="w"> </span><span class="o">*</span><span class="n">g_settings_var</span><span class="p">;</span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="cp">#endif</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/22.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/22.html new file mode 100644 index 0000000..9fc9352 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/22.html @@ -0,0 +1,3021 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-buttons.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-buttons.c</p> +<a href="22.html#line-11"> missingIncludeSystem 11</a><a href="22.html#line-86"> unusedStructMember 86</a><a href="22.html#line-472"> unreadVariable 472</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span> +<span class="normal">1233</span> +<span class="normal">1234</span> +<span class="normal">1235</span> +<span class="normal">1236</span> +<span class="normal">1237</span> +<span class="normal">1238</span> +<span class="normal">1239</span> +<span class="normal">1240</span> +<span class="normal">1241</span> +<span class="normal">1242</span> +<span class="normal">1243</span> +<span class="normal">1244</span> +<span class="normal">1245</span> +<span class="normal">1246</span> +<span class="normal">1247</span> +<span class="normal">1248</span> +<span class="normal">1249</span> +<span class="normal">1250</span> +<span class="normal">1251</span> +<span class="normal">1252</span> +<span class="normal">1253</span> +<span class="normal">1254</span> +<span class="normal">1255</span> +<span class="normal">1256</span> +<span class="normal">1257</span> +<span class="normal">1258</span> +<span class="normal">1259</span> +<span class="normal">1260</span> +<span class="normal">1261</span> +<span class="normal">1262</span> +<span class="normal">1263</span> +<span class="normal">1264</span> +<span class="normal">1265</span> +<span class="normal">1266</span> +<span class="normal">1267</span> +<span class="normal">1268</span> +<span class="normal">1269</span> +<span class="normal">1270</span> +<span class="normal">1271</span> +<span class="normal">1272</span> +<span class="normal">1273</span> +<span class="normal">1274</span> +<span class="normal">1275</span> +<span class="normal">1276</span> +<span class="normal">1277</span> +<span class="normal">1278</span> +<span class="normal">1279</span> +<span class="normal">1280</span> +<span class="normal">1281</span> +<span class="normal">1282</span> +<span class="normal">1283</span> +<span class="normal">1284</span> +<span class="normal">1285</span> +<span class="normal">1286</span> +<span class="normal">1287</span> +<span class="normal">1288</span> +<span class="normal">1289</span> +<span class="normal">1290</span> +<span class="normal">1291</span> +<span class="normal">1292</span> +<span class="normal">1293</span> +<span class="normal">1294</span> +<span class="normal">1295</span> +<span class="normal">1296</span> +<span class="normal">1297</span> +<span class="normal">1298</span> +<span class="normal">1299</span> +<span class="normal">1300</span> +<span class="normal">1301</span> +<span class="normal">1302</span> +<span class="normal">1303</span> +<span class="normal">1304</span> +<span class="normal">1305</span> +<span class="normal">1306</span> +<span class="normal">1307</span> +<span class="normal">1308</span> +<span class="normal">1309</span> +<span class="normal">1310</span> +<span class="normal">1311</span> +<span class="normal">1312</span> +<span class="normal">1313</span> +<span class="normal">1314</span> +<span class="normal">1315</span> +<span class="normal">1316</span> +<span class="normal">1317</span> +<span class="normal">1318</span> +<span class="normal">1319</span> +<span class="normal">1320</span> +<span class="normal">1321</span> +<span class="normal">1322</span> +<span class="normal">1323</span> +<span class="normal">1324</span> +<span class="normal">1325</span> +<span class="normal">1326</span> +<span class="normal">1327</span> +<span class="normal">1328</span> +<span class="normal">1329</span> +<span class="normal">1330</span> +<span class="normal">1331</span> +<span class="normal">1332</span> +<span class="normal">1333</span> +<span class="normal">1334</span> +<span class="normal">1335</span> +<span class="normal">1336</span> +<span class="normal">1337</span> +<span class="normal">1338</span> +<span class="normal">1339</span> +<span class="normal">1340</span> +<span class="normal">1341</span> +<span class="normal">1342</span> +<span class="normal">1343</span> +<span class="normal">1344</span> +<span class="normal">1345</span> +<span class="normal">1346</span> +<span class="normal">1347</span> +<span class="normal">1348</span> +<span class="normal">1349</span> +<span class="normal">1350</span> +<span class="normal">1351</span> +<span class="normal">1352</span> +<span class="normal">1353</span> +<span class="normal">1354</span> +<span class="normal">1355</span> +<span class="normal">1356</span> +<span class="normal">1357</span> +<span class="normal">1358</span> +<span class="normal">1359</span> +<span class="normal">1360</span> +<span class="normal">1361</span> +<span class="normal">1362</span> +<span class="normal">1363</span> +<span class="normal">1364</span> +<span class="normal">1365</span> +<span class="normal">1366</span> +<span class="normal">1367</span> +<span class="normal">1368</span> +<span class="normal">1369</span> +<span class="normal">1370</span> +<span class="normal">1371</span> +<span class="normal">1372</span> +<span class="normal">1373</span> +<span class="normal">1374</span> +<span class="normal">1375</span> +<span class="normal">1376</span> +<span class="normal">1377</span> +<span class="normal">1378</span> +<span class="normal">1379</span> +<span class="normal">1380</span> +<span class="normal">1381</span> +<span class="normal">1382</span> +<span class="normal">1383</span> +<span class="normal">1384</span> +<span class="normal">1385</span> +<span class="normal">1386</span> +<span class="normal">1387</span> +<span class="normal">1388</span> +<span class="normal">1389</span> +<span class="normal">1390</span> +<span class="normal">1391</span> +<span class="normal">1392</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-buttons.h"</span> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-converter.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-variable-popup.h"</span> +<a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"financial.h"</span> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"utility.h"</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">PROP_MODE</span><span class="p">,</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">PROP_PROGRAMMING_BASE</span> +<a id="line-25" name="line-25"></a><span class="p">};</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="k">static</span><span class="w"> </span><span class="n">GType</span><span class="w"> </span><span class="n">button_mode_type</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="cp">#define MAXBITS 64 </span><span class="cm">/* Bit panel: number of bit fields. */</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathButtonsPrivate</span> +<a id="line-32" name="line-32"></a><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">ButtonMode</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">programming_base</span><span class="p">;</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">;</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">basic_ui</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">advanced_ui</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">programming_ui</span><span class="p">;</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bas_panel</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">adv_panel</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">fin_panel</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">prog_panel</span><span class="p">;</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">active_panel</span><span class="p">;</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">shift_left_menu</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">shift_right_menu</span><span class="p">;</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">function_menu</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">const_menu</span><span class="p">;</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">superscript_toggles</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">subscript_toggles</span><span class="p">;</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">base_combo</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">base_label</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bit_panel</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">bit_labels</span><span class="p">[</span><span class="n">MAXBITS</span><span class="p">];</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">character_code_dialog</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">character_code_entry</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="p">};</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathButtons</span><span class="p">,</span><span class="w"> </span><span class="n">math_buttons</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_BOX</span><span class="p">);</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="cp">#define UI_BASIC_RESOURCE_PATH "/org/mate/calculator/ui/buttons-basic.ui"</span> +<a id="line-65" name="line-65"></a><span class="cp">#define UI_ADVANCED_RESOURCE_PATH "/org/mate/calculator/ui/buttons-advanced.ui"</span> +<a id="line-66" name="line-66"></a><span class="cp">#define UI_FINANCIAL_RESOURCE_PATH "/org/mate/calculator/ui/buttons-financial.ui"</span> +<a id="line-67" name="line-67"></a><span class="cp">#define UI_PROGRAMMING_RESOURCE_PATH "/org/mate/calculator/ui/buttons-programming.ui"</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="cp">#define GET_WIDGET(ui, name) \</span> +<a id="line-70" name="line-70"></a><span class="cp"> GTK_WIDGET(gtk_builder_get_object((ui), (name)))</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span> +<a id="line-73" name="line-73"></a><span class="p">{</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">NUMBER</span><span class="p">,</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">NUMBER_BOLD</span><span class="p">,</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">MEMORY</span><span class="p">,</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">GROUP</span><span class="p">,</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">ACTION</span> +<a id="line-81" name="line-81"></a><span class="p">}</span><span class="w"> </span><span class="n">ButtonClass</span><span class="p">;</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">widget_name</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="hll"><span class="w"> </span><span class="n">ButtonClass</span><span class="w"> </span><span class="n">class</span><span class="p">;</span><span class="error2"><--- struct member 'ButtonData::class' is never used.</span> +</span><a id="line-87" name="line-87"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="p">}</span><span class="w"> </span><span class="n">ButtonData</span><span class="p">;</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="k">static</span><span class="w"> </span><span class="n">ButtonData</span><span class="w"> </span><span class="n">button_data</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">{</span><span class="s">"pi"</span><span class="p">,</span><span class="w"> </span><span class="s">"π"</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER</span><span class="p">,</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="cm">/* Tooltip for the Pi button */</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pi [Ctrl+P]"</span><span class="p">)},</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">{</span><span class="s">"eulers_number"</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER</span><span class="p">,</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="cm">/* Tooltip for the Euler's Number button */</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Euler’s Number"</span><span class="p">)},</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">{</span><span class="s">"imaginary"</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER</span><span class="p">,</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="cm">/* Tooltip for the imaginary number button */</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Imaginary unit"</span><span class="p">)},</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">{</span><span class="s">"numeric_point"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER</span><span class="p">,</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="cm">/* Tooltip for the numeric point button */</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Decimal point"</span><span class="p">)},</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="p">{</span><span class="s">"subscript"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER_BOLD</span><span class="p">,</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="cm">/* Tooltip for the subscript button */</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Subscript mode [Alt]"</span><span class="p">)},</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="p">{</span><span class="s">"superscript"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER_BOLD</span><span class="p">,</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="cm">/* Tooltip for the superscript button */</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Superscript mode [Ctrl]"</span><span class="p">)},</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">{</span><span class="s">"exponential"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER_BOLD</span><span class="p">,</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="cm">/* Tooltip for the scientific exponent button */</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Scientific exponent [Ctrl+E]"</span><span class="p">)},</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">{</span><span class="s">"add"</span><span class="p">,</span><span class="w"> </span><span class="s">"+"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="cm">/* Tooltip for the add button */</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Add [+]"</span><span class="p">)},</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">{</span><span class="s">"subtract"</span><span class="p">,</span><span class="w"> </span><span class="s">"−"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="cm">/* Tooltip for the subtract button */</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Subtract [-]"</span><span class="p">)},</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="p">{</span><span class="s">"multiply"</span><span class="p">,</span><span class="w"> </span><span class="s">"×"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="cm">/* Tooltip for the multiply button */</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Multiply [*]"</span><span class="p">)},</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span><span class="s">"divide"</span><span class="p">,</span><span class="w"> </span><span class="s">"÷"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="cm">/* Tooltip for the divide button */</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Divide [/]"</span><span class="p">)},</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">{</span><span class="s">"modulus_divide"</span><span class="p">,</span><span class="w"> </span><span class="s">" mod "</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="cm">/* Tooltip for the modulus divide button */</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Modulus divide"</span><span class="p">)},</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">{</span><span class="s">"function"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="cm">/* Tooltip for the additional functions button */</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Additional Functions"</span><span class="p">)},</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">{</span><span class="s">"const"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="cm">/* Tooltip for the additional constant button */</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Additional constants"</span><span class="p">)},</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">{</span><span class="s">"x_pow_y"</span><span class="p">,</span><span class="w"> </span><span class="s">"^"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="cm">/* Tooltip for the exponent button */</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Exponent [^ or **]"</span><span class="p">)},</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">{</span><span class="s">"x_squared"</span><span class="p">,</span><span class="w"> </span><span class="s">"²"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="cm">/* Tooltip for the square button */</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Square [Ctrl+2]"</span><span class="p">)},</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span><span class="s">"percentage"</span><span class="p">,</span><span class="w"> </span><span class="s">"%"</span><span class="p">,</span><span class="w"> </span><span class="n">NUMBER</span><span class="p">,</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="cm">/* Tooltip for the percentage button */</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Percentage [%]"</span><span class="p">)},</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">{</span><span class="s">"factorial"</span><span class="p">,</span><span class="w"> </span><span class="s">"!"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="cm">/* Tooltip for the factorial button */</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Factorial [!]"</span><span class="p">)},</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">{</span><span class="s">"abs"</span><span class="p">,</span><span class="w"> </span><span class="s">"|"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="cm">/* Tooltip for the absolute value button */</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Absolute value [|]"</span><span class="p">)},</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">{</span><span class="s">"arg"</span><span class="p">,</span><span class="w"> </span><span class="s">"Arg "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="cm">/* Tooltip for the complex argument component button */</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Complex argument"</span><span class="p">)},</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">{</span><span class="s">"conjugate"</span><span class="p">,</span><span class="w"> </span><span class="s">"conj "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="cm">/* Tooltip for the complex conjugate button */</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Complex conjugate"</span><span class="p">)},</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span><span class="s">"root"</span><span class="p">,</span><span class="w"> </span><span class="s">"√"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="cm">/* Tooltip for the root button */</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Root [Ctrl+R]"</span><span class="p">)},</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">{</span><span class="s">"square_root"</span><span class="p">,</span><span class="w"> </span><span class="s">"√"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="cm">/* Tooltip for the square root button */</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Square root [Ctrl+R]"</span><span class="p">)},</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">{</span><span class="s">"logarithm"</span><span class="p">,</span><span class="w"> </span><span class="s">"log "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="cm">/* Tooltip for the logarithm button */</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Logarithm"</span><span class="p">)},</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="p">{</span><span class="s">"natural_logarithm"</span><span class="p">,</span><span class="w"> </span><span class="s">"ln "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="cm">/* Tooltip for the natural logarithm button */</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Natural Logarithm"</span><span class="p">)},</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">{</span><span class="s">"sine"</span><span class="p">,</span><span class="w"> </span><span class="s">"sin "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="cm">/* Tooltip for the sine button */</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Sine"</span><span class="p">)},</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="p">{</span><span class="s">"cosine"</span><span class="p">,</span><span class="w"> </span><span class="s">"cos "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="cm">/* Tooltip for the cosine button */</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Cosine"</span><span class="p">)},</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">{</span><span class="s">"tangent"</span><span class="p">,</span><span class="w"> </span><span class="s">"tan "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="cm">/* Tooltip for the tangent button */</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Tangent"</span><span class="p">)},</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="p">{</span><span class="s">"hyperbolic_sine"</span><span class="p">,</span><span class="w"> </span><span class="s">"sinh "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="cm">/* Tooltip for the hyperbolic sine button */</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hyperbolic Sine"</span><span class="p">)},</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">{</span><span class="s">"hyperbolic_cosine"</span><span class="p">,</span><span class="w"> </span><span class="s">"cosh "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="cm">/* Tooltip for the hyperbolic cosine button */</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hyperbolic Cosine"</span><span class="p">)},</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="p">{</span><span class="s">"hyperbolic_tangent"</span><span class="p">,</span><span class="w"> </span><span class="s">"tanh "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="cm">/* Tooltip for the hyperbolic tangent button */</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hyperbolic Tangent"</span><span class="p">)},</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">{</span><span class="s">"inverse_sine"</span><span class="p">,</span><span class="w"> </span><span class="s">"asin "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="cm">/* Tooltip for the inverse sine button */</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Inverse Sine"</span><span class="p">)},</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="p">{</span><span class="s">"inverse_cosine"</span><span class="p">,</span><span class="w"> </span><span class="s">"acos "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="cm">/* Tooltip for the inverse cosine button */</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Inverse Cosine"</span><span class="p">)},</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">{</span><span class="s">"inverse_tangent"</span><span class="p">,</span><span class="w"> </span><span class="s">"atan "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="cm">/* Tooltip for the inverse tangent button */</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Inverse Tangent"</span><span class="p">)},</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="p">{</span><span class="s">"inverse"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻¹"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="cm">/* Tooltip for the inverse button */</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Inverse [Ctrl+I]"</span><span class="p">)},</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="p">{</span><span class="s">"and"</span><span class="p">,</span><span class="w"> </span><span class="s">"∧"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="cm">/* Tooltip for the boolean AND button */</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Boolean AND"</span><span class="p">)},</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">{</span><span class="s">"or"</span><span class="p">,</span><span class="w"> </span><span class="s">"∨"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="cm">/* Tooltip for the boolean OR button */</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Boolean OR"</span><span class="p">)},</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">{</span><span class="s">"xor"</span><span class="p">,</span><span class="w"> </span><span class="s">"⊻"</span><span class="p">,</span><span class="w"> </span><span class="n">OPERATOR</span><span class="p">,</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="cm">/* Tooltip for the exclusive OR button */</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Boolean Exclusive OR"</span><span class="p">)},</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span><span class="s">"not"</span><span class="p">,</span><span class="w"> </span><span class="s">"¬"</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* Tooltip for the boolean NOT button */</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Boolean NOT"</span><span class="p">)},</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="p">{</span><span class="s">"integer_portion"</span><span class="p">,</span><span class="w"> </span><span class="s">"int "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="cm">/* Tooltip for the integer component button */</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Integer Component"</span><span class="p">)},</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="p">{</span><span class="s">"fractional_portion"</span><span class="p">,</span><span class="w"> </span><span class="s">"frac "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="cm">/* Tooltip for the fractional component button */</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Fractional Component"</span><span class="p">)},</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">{</span><span class="s">"real_portion"</span><span class="p">,</span><span class="w"> </span><span class="s">"Re "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="cm">/* Tooltip for the real component button */</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Real Component"</span><span class="p">)},</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">{</span><span class="s">"imaginary_portion"</span><span class="p">,</span><span class="w"> </span><span class="s">"Im "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="cm">/* Tooltip for the imaginary component button */</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Imaginary Component"</span><span class="p">)},</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="p">{</span><span class="s">"ones_complement"</span><span class="p">,</span><span class="w"> </span><span class="s">"ones "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="cm">/* Tooltip for the ones' complement button */</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Ones' Complement"</span><span class="p">)},</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">{</span><span class="s">"twos_complement"</span><span class="p">,</span><span class="w"> </span><span class="s">"twos "</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="cm">/* Tooltip for the two's complement button */</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Two's Complement"</span><span class="p">)},</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="p">{</span><span class="s">"start_group"</span><span class="p">,</span><span class="w"> </span><span class="s">"("</span><span class="p">,</span><span class="w"> </span><span class="n">GROUP</span><span class="p">,</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="cm">/* Tooltip for the start group button */</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Start Group [(]"</span><span class="p">)},</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">{</span><span class="s">"end_group"</span><span class="p">,</span><span class="w"> </span><span class="s">")"</span><span class="p">,</span><span class="w"> </span><span class="n">GROUP</span><span class="p">,</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="cm">/* Tooltip for the end group button */</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"End Group [)]"</span><span class="p">)},</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="p">{</span><span class="s">"memory"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">MEMORY</span><span class="p">,</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="cm">/* Tooltip for the memory button */</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Memory"</span><span class="p">)},</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="p">{</span><span class="s">"character"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">MEMORY</span><span class="p">,</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="cm">/* Tooltip for the insert character code button */</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Insert Character Code"</span><span class="p">)},</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="p">{</span><span class="s">"result"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">ACTION</span><span class="p">,</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="cm">/* Tooltip for the solve button */</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Calculate Result"</span><span class="p">)},</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="p">{</span><span class="s">"factor"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">ACTION</span><span class="p">,</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="cm">/* Tooltip for the factor button */</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Factorize [Ctrl+F]"</span><span class="p">)},</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">{</span><span class="s">"clear"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">GROUP</span><span class="p">,</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="cm">/* Tooltip for the clear button */</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Clear Display [Escape]"</span><span class="p">)},</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">{</span><span class="s">"undo"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">GROUP</span><span class="p">,</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="cm">/* Tooltip for the undo button */</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Undo [Ctrl+Z]"</span><span class="p">)},</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="p">{</span><span class="s">"shift_left"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">ACTION</span><span class="p">,</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="cm">/* Tooltip for the shift left button */</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Shift Left [<<]"</span><span class="p">)},</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="p">{</span><span class="s">"shift_right"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">ACTION</span><span class="p">,</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="cm">/* Tooltip for the shift right button */</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Shift Right [>>]"</span><span class="p">)},</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_compounding_term"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="cm">/* Tooltip for the compounding term button */</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Compounding Term"</span><span class="p">)},</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_double_declining_depreciation"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="cm">/* Tooltip for the double declining depreciation button */</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Double Declining Depreciation"</span><span class="p">)},</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_future_value"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* Tooltip for the future value button */</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Future Value"</span><span class="p">)},</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_term"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="cm">/* Tooltip for the financial term button */</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Financial Term"</span><span class="p">)},</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_sum_of_the_years_digits_depreciation"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="cm">/* Tooltip for the sum of the years digits depreciation button */</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Sum of the Years Digits Depreciation"</span><span class="p">)},</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_straight_line_depreciation"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="cm">/* Tooltip for the straight line depreciation button */</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Straight Line Depreciation"</span><span class="p">)},</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_periodic_interest_rate"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="cm">/* Tooltip for the periodic interest rate button */</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Periodic Interest Rate"</span><span class="p">)},</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_present_value"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="cm">/* Tooltip for the present value button */</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Present Value"</span><span class="p">)},</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_periodic_payment"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="cm">/* Tooltip for the periodic payment button */</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Periodic Payment"</span><span class="p">)},</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">{</span><span class="s">"finc_gross_profit_margin"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FUNCTION</span><span class="p">,</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="cm">/* Tooltip for the gross profit margin button */</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Gross Profit Margin"</span><span class="p">)},</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-287" name="line-287"></a><span class="p">};</span> +<a id="line-288" name="line-288"></a> +<a id="line-289" name="line-289"></a><span class="cm">/* The names of each field in the dialogs for the financial functions */</span> +<a id="line-290" name="line-290"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">finc_dialog_fields</span><span class="p">[][</span><span class="mi">5</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="p">{</span><span class="s">"ctrm_pint"</span><span class="p">,</span><span class="w"> </span><span class="s">"ctrm_fv"</span><span class="p">,</span><span class="w"> </span><span class="s">"ctrm_pv"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span><span class="s">"ddb_cost"</span><span class="p">,</span><span class="w"> </span><span class="s">"ddb_life"</span><span class="p">,</span><span class="w"> </span><span class="s">"ddb_period"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">{</span><span class="s">"fv_pmt"</span><span class="p">,</span><span class="w"> </span><span class="s">"fv_pint"</span><span class="p">,</span><span class="w"> </span><span class="s">"fv_n"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">{</span><span class="s">"gpm_cost"</span><span class="p">,</span><span class="w"> </span><span class="s">"gpm_margin"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">{</span><span class="s">"pmt_prin"</span><span class="p">,</span><span class="w"> </span><span class="s">"pmt_pint"</span><span class="p">,</span><span class="w"> </span><span class="s">"pmt_n"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span><span class="s">"pv_pmt"</span><span class="p">,</span><span class="w"> </span><span class="s">"pv_pint"</span><span class="p">,</span><span class="w"> </span><span class="s">"pv_n"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">{</span><span class="s">"rate_fv"</span><span class="p">,</span><span class="w"> </span><span class="s">"rate_pv"</span><span class="p">,</span><span class="w"> </span><span class="s">"rate_n"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">{</span><span class="s">"sln_cost"</span><span class="p">,</span><span class="w"> </span><span class="s">"sln_salvage"</span><span class="p">,</span><span class="w"> </span><span class="s">"sln_life"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="p">{</span><span class="s">"syd_cost"</span><span class="p">,</span><span class="w"> </span><span class="s">"syd_salvage"</span><span class="p">,</span><span class="w"> </span><span class="s">"syd_life"</span><span class="p">,</span><span class="w"> </span><span class="s">"syd_period"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">{</span><span class="s">"term_pmt"</span><span class="p">,</span><span class="w"> </span><span class="s">"term_fv"</span><span class="p">,</span><span class="w"> </span><span class="s">"term_pint"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">},</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-302" name="line-302"></a><span class="p">};</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span> +<a id="line-305" name="line-305"></a><span class="nf">math_buttons_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-306" name="line-306"></a><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_buttons_get_type</span><span class="p">(),</span><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="p">}</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-311" name="line-311"></a><span class="nf">set_data</span><span class="p">(</span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">object_name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span> +<a id="line-312" name="line-312"></a><span class="p">{</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">;</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_get_object</span><span class="p">(</span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="n">object_name</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-317" name="line-317"></a><span class="p">}</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-320" name="line-320"></a><span class="nf">set_int_data</span><span class="p">(</span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">object_name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">value</span><span class="p">)</span> +<a id="line-321" name="line-321"></a><span class="p">{</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">;</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_get_object</span><span class="p">(</span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="n">object_name</span><span class="p">);</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">)</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-326" name="line-326"></a><span class="p">}</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-329" name="line-329"></a><span class="nf">load_finc_dialogs</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-330" name="line-330"></a><span class="p">{</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">;</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"ctrm_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_CTRM_DIALOG</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"ddb_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_DDB_DIALOG</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"fv_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_FV_DIALOG</span><span class="p">);</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"gpm_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_GPM_DIALOG</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"pmt_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_PMT_DIALOG</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"pv_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_PV_DIALOG</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"rate_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_RATE_DIALOG</span><span class="p">);</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"sln_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_SLN_DIALOG</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"syd_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_SYD_DIALOG</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="s">"term_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">FINC_TERM_DIALOG</span><span class="p">);</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">];</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">o</span><span class="p">;</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">o</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_get_object</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]);</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">o</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_field"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">j</span><span class="p">));</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">o</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">i</span><span class="p">));</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="p">}</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">}</span> +<a id="line-352" name="line-352"></a><span class="p">}</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-355" name="line-355"></a><span class="nf">update_bit_panel</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-356" name="line-356"></a><span class="p">{</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="p">;</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">enabled</span><span class="p">;</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">guint64</span><span class="w"> </span><span class="n">bits</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">;</span> +<a id="line-363" name="line-363"></a> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bit_panel</span><span class="p">)</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">enabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-369" name="line-369"></a> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">enabled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">fraction</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-373" name="line-373"></a> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">G_MAXUINT64</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">max</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">mp_fractional_part</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">fraction</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">max</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">fraction</span><span class="p">))</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">enabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">else</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_unsigned_integer</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">max</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">fraction</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="p">}</span> +<a id="line-383" name="line-383"></a> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bit_panel</span><span class="p">,</span><span class="w"> </span><span class="n">enabled</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_label</span><span class="p">,</span><span class="w"> </span><span class="n">enabled</span><span class="p">);</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">enabled</span><span class="p">)</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="p">{</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">}</span> +<a id="line-392" name="line-392"></a> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">MAXBITS</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">bin_label</span><span class="p">;</span> +<a id="line-395" name="line-395"></a> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">bits</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="mf">1L</span><span class="n">LU</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="p">(</span><span class="n">MAXBITS</span><span class="o">-</span><span class="n">i</span><span class="mi">-1</span><span class="p">)))</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">bin_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">" 1"</span><span class="p">;</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">else</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">bin_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">" 0"</span><span class="p">;</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bit_labels</span><span class="p">[</span><span class="n">i</span><span class="p">]),</span><span class="w"> </span><span class="n">bin_label</span><span class="p">);</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="p">}</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_base</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">8</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">" = "</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"%"</span><span class="w"> </span><span class="n">G_GINT64_MODIFIER</span><span class="w"> </span><span class="s">"o"</span><span class="p">,</span><span class="w"> </span><span class="n">bits</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"₈"</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="p">}</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">10</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">" = "</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"%"</span><span class="w"> </span><span class="n">G_GINT64_MODIFIER</span><span class="w"> </span><span class="s">"u"</span><span class="p">,</span><span class="w"> </span><span class="n">bits</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"₁₀"</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="p">}</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">16</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">" = "</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"%"</span><span class="w"> </span><span class="n">G_GINT64_MODIFIER</span><span class="w"> </span><span class="s">"X"</span><span class="p">,</span><span class="w"> </span><span class="n">bits</span><span class="p">);</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="s">"₁₆"</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">}</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_label</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="o">-></span><span class="n">str</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-427" name="line-427"></a><span class="p">}</span> +<a id="line-428" name="line-428"></a> +<a id="line-429" name="line-429"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-430" name="line-430"></a><span class="nf">display_changed_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-431" name="line-431"></a><span class="p">{</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">update_bit_panel</span><span class="p">(</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="p">}</span> +<a id="line-434" name="line-434"></a> +<a id="line-435" name="line-435"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-436" name="line-436"></a><span class="nf">base_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-437" name="line-437"></a><span class="p">{</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-441" name="line-441"></a> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">));</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-445" name="line-445"></a> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">math_buttons_set_programming_base</span><span class="p">(</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="p">}</span> +<a id="line-448" name="line-448"></a> +<a id="line-449" name="line-449"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-450" name="line-450"></a><span class="nf">base_changed_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-451" name="line-451"></a><span class="p">{</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PROGRAMMING</span><span class="p">)</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-458" name="line-458"></a> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="p">));</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_base</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-462" name="line-462"></a> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">v</span><span class="p">;</span> +<a id="line-465" name="line-465"></a> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">v</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="p">)</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">}</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">valid</span><span class="p">)</span> +<a id="line-472" name="line-472"></a><span class="hll"><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span><span class="error2"><--- Variable 'valid' is assigned a value that is never used.</span> +</span><a id="line-473" name="line-473"></a> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-475" name="line-475"></a><span class="p">}</span> +<a id="line-476" name="line-476"></a> +<a id="line-477" name="line-477"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-478" name="line-478"></a><span class="nf">load_mode</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">ButtonMode</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-479" name="line-479"></a><span class="p">{</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">builder_ptr</span><span class="p">;</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">path</span><span class="p">;</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">objects</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"button_panel"</span><span class="p">,</span><span class="w"> </span><span class="s">"character_code_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"currency_dialog"</span><span class="p">,</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="s">"ctrm_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"ddb_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"fv_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"gpm_dialog"</span><span class="p">,</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="s">"pmt_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"pv_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"rate_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"sln_dialog"</span><span class="p">,</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="s">"syd_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"term_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"adjustment1"</span><span class="p">,</span><span class="w"> </span><span class="s">"adjustment2"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">panel</span><span class="p">;</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-490" name="line-490"></a> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">BASIC</span><span class="p">:</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">builder_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">basic_ui</span><span class="p">;</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">UI_BASIC_RESOURCE_PATH</span><span class="p">;</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bas_panel</span><span class="p">;</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ADVANCED</span><span class="p">:</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">builder_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">advanced_ui</span><span class="p">;</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">UI_ADVANCED_RESOURCE_PATH</span><span class="p">;</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">adv_panel</span><span class="p">;</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINANCIAL</span><span class="p">:</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">builder_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">;</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">UI_FINANCIAL_RESOURCE_PATH</span><span class="p">;</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">fin_panel</span><span class="p">;</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROGRAMMING</span><span class="p">:</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">builder_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_ui</span><span class="p">;</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">path</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">UI_PROGRAMMING_RESOURCE_PATH</span><span class="p">;</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">&</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">prog_panel</span><span class="p">;</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="p">}</span> +<a id="line-514" name="line-514"></a> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">panel</span><span class="p">)</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">out</span><span class="p">;</span> +<a id="line-517" name="line-517"></a> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">builder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">builder_ptr</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_new</span><span class="p">();</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="c1">// FIXME: Show dialog if failed to load</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">gtk_builder_add_objects_from_resource</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">path</span><span class="p">,</span><span class="w"> </span><span class="n">objects</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Error loading button UI: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="p">}</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="o">*</span><span class="n">panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"button_panel"</span><span class="p">);</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">buttons</span><span class="p">),</span><span class="w"> </span><span class="o">*</span><span class="n">panel</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-527" name="line-527"></a> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="cm">/* Configure buttons */</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">button_data</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">widget_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">;</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">;</span> +<a id="line-532" name="line-532"></a> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"calc_%s_button"</span><span class="p">,</span><span class="w"> </span><span class="n">button_data</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">widget_name</span><span class="p">);</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">object</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_get_object</span><span class="p">(</span><span class="o">*</span><span class="n">builder_ptr</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-536" name="line-536"></a> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">object</span><span class="p">)</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">button_data</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">data</span><span class="p">)</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_text"</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gpointer</span><span class="p">)</span><span class="w"> </span><span class="n">button_data</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">data</span><span class="p">);</span> +<a id="line-542" name="line-542"></a> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">button_data</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">tooltip</span><span class="p">)</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="p">(</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">button_data</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">tooltip</span><span class="p">));</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="p">}</span> +<a id="line-546" name="line-546"></a> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="cm">/* Set special button data */</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">;</span> +<a id="line-550" name="line-550"></a> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"calc_%d_button"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">button</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">7</span><span class="p">];</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-556" name="line-556"></a> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"calc_digit"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">i</span><span class="p">));</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_to_utf8</span><span class="p">(</span><span class="n">math_equation_get_digit_text</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">len</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">gtk_button_set_label</span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="p">}</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="p">}</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_numeric_point_button"</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_serializer</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">7</span><span class="p">];</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_to_utf8</span><span class="p">(</span><span class="n">mp_serializer_get_radix</span><span class="p">(</span><span class="n">serializer</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">len</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">gtk_button_set_label</span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="p">}</span> +<a id="line-573" name="line-573"></a> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_superscript_button"</span><span class="p">);</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">superscript_toggles</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">superscript_toggles</span><span class="p">,</span><span class="w"> </span><span class="n">widget</span><span class="p">);</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">)</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="p">}</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_subscript_button"</span><span class="p">);</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">subscript_toggles</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">subscript_toggles</span><span class="p">,</span><span class="w"> </span><span class="n">widget</span><span class="p">);</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUBSCRIPT</span><span class="p">)</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="p">}</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="cm">/* put the icon name "process-stop" in the buttons</span> +<a id="line-588" name="line-588"></a><span class="cm"> button1, button3, button5, button7, button9,</span> +<a id="line-589" name="line-589"></a><span class="cm"> button11, button13, button15, button17, button19</span> +<a id="line-590" name="line-590"></a><span class="cm"> taken from buttons-financial.ui */</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">20</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"button%d"</span><span class="p">,</span><span class="n">i</span><span class="p">));</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_IS_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">))</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">gtk_button_set_image</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="s">"process-stop"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">));</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="p">}</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">}</span> +<a id="line-599" name="line-599"></a> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PROGRAMMING</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">GtkListStore</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">renderer</span><span class="p">;</span> +<a id="line-604" name="line-604"></a> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"base_label"</span><span class="p">);</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">character_code_dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"character_code_dialog"</span><span class="p">);</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">character_code_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"character_code_entry"</span><span class="p">);</span> +<a id="line-608" name="line-608"></a> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bit_panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"bit_table"</span><span class="p">);</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">MAXBITS</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"bit_label_%d"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">bit_labels</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"bit_eventbox_%d"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">set_int_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"bit_index"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="p">}</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"base_combo"</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_list_store_new</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_INT</span><span class="p">);</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="p">(</span><span class="n">model</span><span class="p">));</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Binary, e.g. 10011010010₂ */</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Binary"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Octal, e.g. 2322₈ */</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Octal"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Decimal, e.g. 1234 */</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Decimal"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Hexadecimal, e.g. 4D2₁₆ */</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Hexadecimal"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="p">();</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">gtk_cell_layout_add_attribute</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-640" name="line-640"></a> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base_combo</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">base_combobox_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::base"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">base_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">base_changed_cb</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="p">}</span> +<a id="line-645" name="line-645"></a> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="cm">/* Setup financial functions */</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FINANCIAL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">load_finc_dialogs</span><span class="p">(</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-649" name="line-649"></a> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_compounding_term_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"ctrm_dialog"</span><span class="p">);</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_double_declining_depreciation_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"ddb_dialog"</span><span class="p">);</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_future_value_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"fv_dialog"</span><span class="p">);</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_gross_profit_margin_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"gpm_dialog"</span><span class="p">);</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_periodic_payment_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"pmt_dialog"</span><span class="p">);</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_present_value_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"pv_dialog"</span><span class="p">);</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_periodic_interest_rate_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"rate_dialog"</span><span class="p">);</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_straight_line_depreciation_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"sln_dialog"</span><span class="p">);</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_sum_of_the_years_digits_depreciation_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"syd_dialog"</span><span class="p">);</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">set_data</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="s">"calc_finc_term_button"</span><span class="p">,</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">,</span><span class="w"> </span><span class="s">"term_dialog"</span><span class="p">);</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="p">}</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">gtk_builder_connect_signals</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">display_changed_cb</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-665" name="line-665"></a> +<a id="line-666" name="line-666"></a><span class="nl">out</span><span class="p">:</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">*</span><span class="n">panel</span><span class="p">;</span> +<a id="line-668" name="line-668"></a><span class="p">}</span> +<a id="line-669" name="line-669"></a> +<a id="line-670" name="line-670"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-671" name="line-671"></a><span class="nf">converter_changed_cb</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-672" name="line-672"></a><span class="p">{</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">to_unit</span><span class="p">;</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">math_converter_get_conversion</span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">to_unit</span><span class="p">);</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FINANCIAL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">math_equation_set_source_currency</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_name</span><span class="p">(</span><span class="n">from_unit</span><span class="p">));</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">math_equation_set_target_currency</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_name</span><span class="p">(</span><span class="n">to_unit</span><span class="p">));</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="p">}</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">math_equation_set_source_units</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_name</span><span class="p">(</span><span class="n">from_unit</span><span class="p">));</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">math_equation_set_target_units</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_name</span><span class="p">(</span><span class="n">to_unit</span><span class="p">));</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="p">}</span> +<a id="line-684" name="line-684"></a> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">from_unit</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">to_unit</span><span class="p">);</span> +<a id="line-687" name="line-687"></a><span class="p">}</span> +<a id="line-688" name="line-688"></a> +<a id="line-689" name="line-689"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-690" name="line-690"></a><span class="nf">load_buttons</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-691" name="line-691"></a><span class="p">{</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">panel</span><span class="p">;</span> +<a id="line-693" name="line-693"></a> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="p">)))</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-696" name="line-696"></a> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_converter_new</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">converter_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">buttons</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="p">}</span> +<a id="line-702" name="line-702"></a> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">load_mode</span><span class="p">(</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="p">);</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">active_panel</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">panel</span><span class="p">)</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-706" name="line-706"></a> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="cm">/* Hide old buttons */</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">active_panel</span><span class="p">)</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">active_panel</span><span class="p">);</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="cm">/* Load and display new buttons */</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">active_panel</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">panel</span><span class="p">;</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">panel</span><span class="p">)</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">panel</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="p">}</span> +<a id="line-716" name="line-716"></a> +<a id="line-717" name="line-717"></a><span class="kt">void</span> +<a id="line-718" name="line-718"></a><span class="nf">math_buttons_set_mode</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">ButtonMode</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-719" name="line-719"></a><span class="p">{</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">buttons</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-721" name="line-721"></a> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-724" name="line-724"></a> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-726" name="line-726"></a> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PROGRAMMING</span><span class="p">)</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="p">);</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">else</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-731" name="line-731"></a> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">load_buttons</span><span class="p">(</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-733" name="line-733"></a> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">gtk_widget_set_visible</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ADVANCED</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FINANCIAL</span><span class="p">);</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ADVANCED</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">math_converter_set_category</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">math_converter_set_conversion</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">,</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">math_equation_get_source_units</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">math_equation_get_target_units</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="p">}</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FINANCIAL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">math_converter_set_category</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="s">"currency"</span><span class="p">);</span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">math_converter_set_conversion</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">converter</span><span class="p">,</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">math_equation_get_source_currency</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">math_equation_get_target_currency</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="p">}</span> +<a id="line-747" name="line-747"></a> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">buttons</span><span class="p">),</span><span class="w"> </span><span class="s">"mode"</span><span class="p">);</span> +<a id="line-749" name="line-749"></a><span class="p">}</span> +<a id="line-750" name="line-750"></a> +<a id="line-751" name="line-751"></a><span class="n">ButtonMode</span> +<a id="line-752" name="line-752"></a><span class="nf">math_buttons_get_mode</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-753" name="line-753"></a><span class="p">{</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="p">;</span> +<a id="line-755" name="line-755"></a><span class="p">}</span> +<a id="line-756" name="line-756"></a> +<a id="line-757" name="line-757"></a><span class="kt">void</span> +<a id="line-758" name="line-758"></a><span class="nf">math_buttons_set_programming_base</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-759" name="line-759"></a><span class="p">{</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">buttons</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-761" name="line-761"></a> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="p">)</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-764" name="line-764"></a> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">base</span><span class="p">;</span> +<a id="line-766" name="line-766"></a> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">g_settings_set_int</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"base"</span><span class="p">,</span><span class="w"> </span><span class="n">math_buttons_get_programming_base</span><span class="p">(</span><span class="n">buttons</span><span class="p">));</span> +<a id="line-768" name="line-768"></a> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PROGRAMMING</span><span class="p">)</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-771" name="line-771"></a><span class="p">}</span> +<a id="line-772" name="line-772"></a> +<a id="line-773" name="line-773"></a><span class="n">gint</span> +<a id="line-774" name="line-774"></a><span class="nf">math_buttons_get_programming_base</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-775" name="line-775"></a><span class="p">{</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">buttons</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="p">;</span> +<a id="line-778" name="line-778"></a><span class="p">}</span> +<a id="line-779" name="line-779"></a> +<a id="line-780" name="line-780"></a><span class="kt">void</span><span class="w"> </span><span class="nf">exponent_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-781" name="line-781"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-782" name="line-782"></a><span class="kt">void</span> +<a id="line-783" name="line-783"></a><span class="n">exponent_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-784" name="line-784"></a><span class="p">{</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">math_equation_insert_exponent</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-786" name="line-786"></a><span class="p">}</span> +<a id="line-787" name="line-787"></a> +<a id="line-788" name="line-788"></a><span class="kt">void</span><span class="w"> </span><span class="n">subtract_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-789" name="line-789"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-790" name="line-790"></a><span class="kt">void</span> +<a id="line-791" name="line-791"></a><span class="n">subtract_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-792" name="line-792"></a><span class="p">{</span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">math_equation_insert_subtract</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-794" name="line-794"></a><span class="p">}</span> +<a id="line-795" name="line-795"></a> +<a id="line-796" name="line-796"></a><span class="kt">void</span><span class="w"> </span><span class="n">button_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-797" name="line-797"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-798" name="line-798"></a><span class="kt">void</span> +<a id="line-799" name="line-799"></a><span class="n">button_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-800" name="line-800"></a><span class="p">{</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"calc_text"</span><span class="p">));</span> +<a id="line-802" name="line-802"></a><span class="p">}</span> +<a id="line-803" name="line-803"></a> +<a id="line-804" name="line-804"></a><span class="kt">void</span><span class="w"> </span><span class="n">solve_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-805" name="line-805"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-806" name="line-806"></a><span class="kt">void</span> +<a id="line-807" name="line-807"></a><span class="n">solve_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-808" name="line-808"></a><span class="p">{</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">math_equation_solve</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-810" name="line-810"></a><span class="p">}</span> +<a id="line-811" name="line-811"></a> +<a id="line-812" name="line-812"></a><span class="kt">void</span><span class="w"> </span><span class="n">clear_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-813" name="line-813"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-814" name="line-814"></a><span class="kt">void</span> +<a id="line-815" name="line-815"></a><span class="n">clear_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-816" name="line-816"></a><span class="p">{</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">math_equation_clear</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-818" name="line-818"></a><span class="p">}</span> +<a id="line-819" name="line-819"></a> +<a id="line-820" name="line-820"></a><span class="kt">void</span><span class="w"> </span><span class="n">delete_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-821" name="line-821"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-822" name="line-822"></a><span class="kt">void</span> +<a id="line-823" name="line-823"></a><span class="n">delete_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-824" name="line-824"></a><span class="p">{</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">math_equation_delete</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-826" name="line-826"></a><span class="p">}</span> +<a id="line-827" name="line-827"></a> +<a id="line-828" name="line-828"></a><span class="kt">void</span><span class="w"> </span><span class="n">undo_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-829" name="line-829"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-830" name="line-830"></a><span class="kt">void</span> +<a id="line-831" name="line-831"></a><span class="n">undo_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-832" name="line-832"></a><span class="p">{</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="n">math_equation_undo</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-834" name="line-834"></a><span class="p">}</span> +<a id="line-835" name="line-835"></a> +<a id="line-836" name="line-836"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-837" name="line-837"></a><span class="n">shift_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-838" name="line-838"></a><span class="p">{</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">math_equation_shift</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"shiftcount"</span><span class="p">)));</span> +<a id="line-840" name="line-840"></a><span class="p">}</span> +<a id="line-841" name="line-841"></a> +<a id="line-842" name="line-842"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-843" name="line-843"></a><span class="n">popup_button_menu</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GtkMenu</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">)</span> +<a id="line-844" name="line-844"></a><span class="p">{</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">gtk_menu_popup_at_widget</span><span class="w"> </span><span class="p">(</span><span class="n">menu</span><span class="p">,</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">widget</span><span class="p">,</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">GDK_GRAVITY_SOUTH_WEST</span><span class="p">,</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">GDK_GRAVITY_NORTH_WEST</span><span class="p">,</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="p">}</span> +<a id="line-851" name="line-851"></a> +<a id="line-852" name="line-852"></a><span class="kt">void</span><span class="w"> </span><span class="n">memory_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-853" name="line-853"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-854" name="line-854"></a><span class="kt">void</span> +<a id="line-855" name="line-855"></a><span class="n">memory_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-856" name="line-856"></a><span class="p">{</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">;</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="n">GtkAllocation</span><span class="w"> </span><span class="n">allocation</span><span class="p">;</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">;</span> +<a id="line-860" name="line-860"></a> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">popup</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variable_popup_new</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="n">gtk_window_set_transient_for</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">gtk_widget_get_toplevel</span><span class="p">(</span><span class="n">widget</span><span class="p">)));</span> +<a id="line-863" name="line-863"></a> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">gtk_widget_get_allocation</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">allocation</span><span class="p">);</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">gdk_window_get_root_coords</span><span class="p">(</span><span class="n">gtk_widget_get_window</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">allocation</span><span class="p">.</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">gtk_window_move</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">);</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">popup</span><span class="p">));</span> +<a id="line-868" name="line-868"></a><span class="p">}</span> +<a id="line-869" name="line-869"></a> +<a id="line-870" name="line-870"></a><span class="kt">void</span><span class="w"> </span><span class="n">shift_left_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-871" name="line-871"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-872" name="line-872"></a><span class="kt">void</span> +<a id="line-873" name="line-873"></a><span class="n">shift_left_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-874" name="line-874"></a><span class="p">{</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">shift_left_menu</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-878" name="line-878"></a> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">shift_left_menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="p">();</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">gtk_menu_set_reserve_toggle_size</span><span class="p">(</span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-881" name="line-881"></a> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-885" name="line-885"></a> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">10</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="cm">/* Left Shift Popup: Menu item to shift left by n places (n < 10) */</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"_%d place"</span><span class="p">,</span><span class="w"> </span><span class="s">"_%d places"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="p">}</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="cm">/* Left Shift Popup: Menu item to shift left by n places (n >= 10) */</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"%d place"</span><span class="p">,</span><span class="w"> </span><span class="s">"%d places"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="p">}</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new</span><span class="p">();</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="s">"shiftcount"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">i</span><span class="p">));</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">shift_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-901" name="line-901"></a> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="p">}</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="p">}</span> +<a id="line-907" name="line-907"></a> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">popup_button_menu</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">shift_left_menu</span><span class="p">));</span> +<a id="line-909" name="line-909"></a><span class="p">}</span> +<a id="line-910" name="line-910"></a> +<a id="line-911" name="line-911"></a><span class="kt">void</span><span class="w"> </span><span class="n">shift_right_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-912" name="line-912"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-913" name="line-913"></a><span class="kt">void</span> +<a id="line-914" name="line-914"></a><span class="n">shift_right_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-915" name="line-915"></a><span class="p">{</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">shift_right_menu</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-919" name="line-919"></a> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">shift_right_menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="p">();</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="n">gtk_menu_set_reserve_toggle_size</span><span class="p">(</span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-922" name="line-922"></a> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-926" name="line-926"></a> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">10</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="cm">/* Right Shift Popup: Menu item to shift right by n places (n < 10) */</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"_%d place"</span><span class="p">,</span><span class="w"> </span><span class="s">"_%d places"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="p">}</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="cm">/* Right Shift Popup: Menu item to shift right by n places (n >= 10) */</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">ngettext</span><span class="p">(</span><span class="s">"%d place"</span><span class="p">,</span><span class="w"> </span><span class="s">"%d places"</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">),</span><span class="w"> </span><span class="n">i</span><span class="p">);</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="p">}</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new_with_mnemonic</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-936" name="line-936"></a> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new</span><span class="p">();</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="s">"shiftcount"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="o">-</span><span class="n">i</span><span class="p">));</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">shift_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-942" name="line-942"></a> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="p">}</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="p">}</span> +<a id="line-948" name="line-948"></a> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">popup_button_menu</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">shift_right_menu</span><span class="p">));</span> +<a id="line-950" name="line-950"></a><span class="p">}</span> +<a id="line-951" name="line-951"></a> +<a id="line-952" name="line-952"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-953" name="line-953"></a><span class="n">insert_function_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-954" name="line-954"></a><span class="p">{</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"function"</span><span class="p">));</span> +<a id="line-956" name="line-956"></a><span class="p">}</span> +<a id="line-957" name="line-957"></a> +<a id="line-958" name="line-958"></a><span class="kt">void</span><span class="w"> </span><span class="n">function_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-959" name="line-959"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-960" name="line-960"></a><span class="kt">void</span> +<a id="line-961" name="line-961"></a><span class="n">function_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-962" name="line-962"></a><span class="p">{</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">function_menu</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="k">struct</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="p">{</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">function</span><span class="p">;</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="n">functions</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="p">{</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the integer component button */</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Integer Component"</span><span class="p">),</span><span class="w"> </span><span class="s">"int "</span><span class="w"> </span><span class="p">},</span> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the fractional component button */</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Fractional Component"</span><span class="p">),</span><span class="w"> </span><span class="s">"frac "</span><span class="w"> </span><span class="p">},</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the round button */</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Round"</span><span class="p">),</span><span class="w"> </span><span class="s">"round "</span><span class="w"> </span><span class="p">},</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the floor button */</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Floor"</span><span class="p">),</span><span class="w"> </span><span class="s">"floor "</span><span class="w"> </span><span class="p">},</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the ceiling button */</span> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Ceiling"</span><span class="p">),</span><span class="w"> </span><span class="s">"ceil "</span><span class="w"> </span><span class="p">},</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the ceiling button */</span> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Sign"</span><span class="p">),</span><span class="w"> </span><span class="s">"sgn "</span><span class="w"> </span><span class="p">},</span> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">}</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="p">};</span> +<a id="line-985" name="line-985"></a> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">function_menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="p">();</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="n">gtk_menu_set_reserve_toggle_size</span><span class="p">(</span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-988" name="line-988"></a> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">functions</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-991" name="line-991"></a> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new_with_label</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="n">functions</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">name</span><span class="p">));</span> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="s">"function"</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">functions</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">function</span><span class="p">));</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span> +<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">insert_function_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="p">}</span> +<a id="line-998" name="line-998"></a><span class="w"> </span><span class="p">}</span> +<a id="line-999" name="line-999"></a> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="n">popup_button_menu</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">function_menu</span><span class="p">));</span> +<a id="line-1001" name="line-1001"></a><span class="p">}</span> +<a id="line-1002" name="line-1002"></a> +<a id="line-1003" name="line-1003"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1004" name="line-1004"></a><span class="n">insert_const_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1005" name="line-1005"></a><span class="p">{</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"const"</span><span class="p">));</span> +<a id="line-1007" name="line-1007"></a><span class="p">}</span> +<a id="line-1008" name="line-1008"></a> +<a id="line-1009" name="line-1009"></a><span class="kt">void</span><span class="w"> </span><span class="n">const_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1010" name="line-1010"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1011" name="line-1011"></a><span class="kt">void</span> +<a id="line-1012" name="line-1012"></a><span class="n">const_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1013" name="line-1013"></a><span class="p">{</span> +<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">const_menu</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="k">struct</span> +<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">constant</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">tooltip</span><span class="p">;</span> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="n">constants</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the c₀ component button */</span> +<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Velocity of Light"</span><span class="p">),</span><span class="w"> </span><span class="s">"c₀"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"299,792,458 m/s"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the μ₀ component button */</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Magnetic constant"</span><span class="p">),</span><span class="w"> </span><span class="s">"μ₀"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"1.2566370614×10⁻⁶ N/A²"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the ε₀ button */</span> +<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Electric constant"</span><span class="p">),</span><span class="w"> </span><span class="s">"ε₀"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"8.85418782×10⁻¹² s⁴A²/m³kg"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the G button */</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Newtonian constant of gravitation"</span><span class="p">),</span><span class="w"> </span><span class="s">"G"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"6.67408×10⁻¹¹ m³/(s²kg)"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the h button */</span> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Planck constant"</span><span class="p">),</span><span class="w"> </span><span class="s">"h"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"6.62607004×10⁻³⁴ m²kg/s"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the e button */</span> +<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Elementary charge"</span><span class="p">),</span><span class="w"> </span><span class="s">"e"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"1.6021766208(98)×10⁻¹⁹ C"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the mₑ button */</span> +<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Electron mass"</span><span class="p">),</span><span class="w"> </span><span class="s">"mₑ"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"9.10938356×10⁻³¹ kg"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the mₚ button */</span> +<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Proton mass"</span><span class="p">),</span><span class="w"> </span><span class="s">"mₚ"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"1.672621898(21)×10⁻²⁷ kg"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Tooltip for the Nₐ button */</span> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Avogadro constant"</span><span class="p">),</span><span class="w"> </span><span class="s">"Nₐ"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"6.02214086×10²³ mol⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="p">},</span> +<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">}</span> +<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="p">};</span> +<a id="line-1042" name="line-1042"></a> +<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">const_menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="p">();</span> +<a id="line-1044" name="line-1044"></a><span class="w"> </span><span class="n">gtk_menu_set_reserve_toggle_size</span><span class="p">(</span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1045" name="line-1045"></a> +<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">constants</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">item</span><span class="p">;</span> +<a id="line-1048" name="line-1048"></a> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new_with_label</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="n">constants</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">name</span><span class="p">));</span> +<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">constants</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">tooltip</span><span class="p">));</span> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">item</span><span class="p">),</span><span class="w"> </span><span class="s">"const"</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">constants</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">constant</span><span class="p">));</span> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">item</span><span class="p">);</span> +<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">insert_const_cb</span><span class="p">),</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">item</span><span class="p">);</span> +<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1057" name="line-1057"></a> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="n">popup_button_menu</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">const_menu</span><span class="p">));</span> +<a id="line-1059" name="line-1059"></a><span class="p">}</span> +<a id="line-1060" name="line-1060"></a> +<a id="line-1061" name="line-1061"></a><span class="kt">void</span><span class="w"> </span><span class="n">factorize_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1062" name="line-1062"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1063" name="line-1063"></a><span class="kt">void</span> +<a id="line-1064" name="line-1064"></a><span class="n">factorize_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1065" name="line-1065"></a><span class="p">{</span> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="n">math_equation_factorize</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-1067" name="line-1067"></a><span class="p">}</span> +<a id="line-1068" name="line-1068"></a> +<a id="line-1069" name="line-1069"></a><span class="kt">void</span><span class="w"> </span><span class="n">digit_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1070" name="line-1070"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1071" name="line-1071"></a><span class="kt">void</span> +<a id="line-1072" name="line-1072"></a><span class="n">digit_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1073" name="line-1073"></a><span class="p">{</span> +<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="n">math_equation_insert_digit</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"calc_digit"</span><span class="p">)));</span> +<a id="line-1075" name="line-1075"></a><span class="p">}</span> +<a id="line-1076" name="line-1076"></a> +<a id="line-1077" name="line-1077"></a><span class="kt">void</span><span class="w"> </span><span class="n">numeric_point_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1078" name="line-1078"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1079" name="line-1079"></a><span class="kt">void</span> +<a id="line-1080" name="line-1080"></a><span class="n">numeric_point_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1081" name="line-1081"></a><span class="p">{</span> +<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="n">math_equation_insert_numeric_point</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-1083" name="line-1083"></a><span class="p">}</span> +<a id="line-1084" name="line-1084"></a> +<a id="line-1085" name="line-1085"></a><span class="kt">void</span><span class="w"> </span><span class="n">finc_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1086" name="line-1086"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1087" name="line-1087"></a><span class="kt">void</span> +<a id="line-1088" name="line-1088"></a><span class="n">finc_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1089" name="line-1089"></a><span class="p">{</span> +<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-1091" name="line-1091"></a> +<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">);</span> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="n">gtk_dialog_run</span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="p">(</span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)));</span> +<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)));</span> +<a id="line-1095" name="line-1095"></a><span class="p">}</span> +<a id="line-1096" name="line-1096"></a> +<a id="line-1097" name="line-1097"></a><span class="kt">void</span><span class="w"> </span><span class="n">insert_character_code_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1098" name="line-1098"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1099" name="line-1099"></a><span class="kt">void</span> +<a id="line-1100" name="line-1100"></a><span class="n">insert_character_code_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1101" name="line-1101"></a><span class="p">{</span> +<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">gtk_window_present</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">character_code_dialog</span><span class="p">));</span> +<a id="line-1103" name="line-1103"></a><span class="p">}</span> +<a id="line-1104" name="line-1104"></a> +<a id="line-1105" name="line-1105"></a><span class="kt">void</span><span class="w"> </span><span class="n">finc_activate_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1106" name="line-1106"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1107" name="line-1107"></a><span class="kt">void</span> +<a id="line-1108" name="line-1108"></a><span class="n">finc_activate_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1109" name="line-1109"></a><span class="p">{</span> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">field</span><span class="p">;</span> +<a id="line-1111" name="line-1111"></a> +<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">));</span> +<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="n">field</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"finc_field"</span><span class="p">));</span> +<a id="line-1114" name="line-1114"></a> +<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">dialog</span><span class="p">][</span><span class="n">field</span><span class="o">+</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1116" name="line-1116"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog_widget</span><span class="p">;</span> +<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">dialog_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_toplevel</span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_is_toplevel</span><span class="p">(</span><span class="n">dialog_widget</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">gtk_dialog_response</span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="p">(</span><span class="n">dialog_widget</span><span class="p">),</span> +<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">);</span> +<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">next_widget</span><span class="p">;</span> +<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="n">next_widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">dialog</span><span class="p">][</span><span class="n">field</span><span class="o">+</span><span class="mi">1</span><span class="p">]);</span> +<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="p">(</span><span class="n">next_widget</span><span class="p">);</span> +<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1129" name="line-1129"></a><span class="p">}</span> +<a id="line-1130" name="line-1130"></a> +<a id="line-1131" name="line-1131"></a><span class="kt">void</span><span class="w"> </span><span class="n">finc_response_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1132" name="line-1132"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1133" name="line-1133"></a><span class="kt">void</span> +<a id="line-1134" name="line-1134"></a><span class="n">finc_response_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1135" name="line-1135"></a><span class="p">{</span> +<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dialog</span><span class="p">;</span> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">arg</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span> +<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">;</span> +<a id="line-1140" name="line-1140"></a> +<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response_id</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span> +<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1143" name="line-1143"></a> +<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"finc_dialog"</span><span class="p">));</span> +<a id="line-1145" name="line-1145"></a> +<a id="line-1146" name="line-1146"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="n">arg</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">dialog</span><span class="p">][</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">dialog</span><span class="p">][</span><span class="n">i</span><span class="p">]);</span> +<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">gtk_entry_get_text</span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="p">(</span><span class="n">entry</span><span class="p">)),</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">arg</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="n">gtk_entry_set_text</span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="p">(</span><span class="n">entry</span><span class="p">),</span><span class="w"> </span><span class="s">"0"</span><span class="p">);</span> +<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="n">gtk_widget_grab_focus</span><span class="p">(</span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">financial_ui</span><span class="p">,</span><span class="w"> </span><span class="n">finc_dialog_fields</span><span class="p">[</span><span class="n">dialog</span><span class="p">][</span><span class="mi">0</span><span class="p">]));</span> +<a id="line-1156" name="line-1156"></a> +<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="n">do_finc_expression</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">arg</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span><span class="w"> </span><span class="o">&</span><span class="n">arg</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="w"> </span><span class="o">&</span><span class="n">arg</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="w"> </span><span class="o">&</span><span class="n">arg</span><span class="p">[</span><span class="mi">3</span><span class="p">]);</span> +<a id="line-1158" name="line-1158"></a> +<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">arg</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1162" name="line-1162"></a><span class="p">}</span> +<a id="line-1163" name="line-1163"></a> +<a id="line-1164" name="line-1164"></a><span class="kt">void</span><span class="w"> </span><span class="n">character_code_dialog_response_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1165" name="line-1165"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1166" name="line-1166"></a><span class="kt">void</span> +<a id="line-1167" name="line-1167"></a><span class="n">character_code_dialog_response_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">response_id</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1168" name="line-1168"></a><span class="p">{</span> +<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-1170" name="line-1170"></a> +<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_get_text</span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">character_code_entry</span><span class="p">));</span> +<a id="line-1172" name="line-1172"></a> +<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">response_id</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1176" name="line-1176"></a> +<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">[</span><span class="n">i</span><span class="o">+</span><span class="mi">1</span><span class="p">])</span><span class="w"> </span><span class="p">{</span> +<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="n">mp_shift</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="n">math_equation_insert_number</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-1191" name="line-1191"></a><span class="p">}</span> +<a id="line-1192" name="line-1192"></a> +<a id="line-1193" name="line-1193"></a><span class="kt">void</span><span class="w"> </span><span class="n">character_code_dialog_activate_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1194" name="line-1194"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1195" name="line-1195"></a><span class="kt">void</span> +<a id="line-1196" name="line-1196"></a><span class="n">character_code_dialog_activate_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1197" name="line-1197"></a><span class="p">{</span> +<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="n">character_code_dialog_response_cb</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">character_code_dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_OK</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1199" name="line-1199"></a><span class="p">}</span> +<a id="line-1200" name="line-1200"></a> +<a id="line-1201" name="line-1201"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">character_code_dialog_delete_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1202" name="line-1202"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1203" name="line-1203"></a><span class="n">gboolean</span> +<a id="line-1204" name="line-1204"></a><span class="n">character_code_dialog_delete_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1205" name="line-1205"></a><span class="p">{</span> +<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="n">character_code_dialog_response_cb</span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CANCEL</span><span class="p">,</span><span class="w"> </span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1207" name="line-1207"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1208" name="line-1208"></a><span class="p">}</span> +<a id="line-1209" name="line-1209"></a> +<a id="line-1210" name="line-1210"></a><span class="n">gboolean</span><span class="w"> </span><span class="n">bit_toggle_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">event_box</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1211" name="line-1211"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1212" name="line-1212"></a><span class="n">gboolean</span> +<a id="line-1213" name="line-1213"></a><span class="n">bit_toggle_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">event_box</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1214" name="line-1214"></a><span class="p">{</span> +<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="n">math_equation_toggle_bit</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">event_box</span><span class="p">),</span><span class="w"> </span><span class="s">"bit_index"</span><span class="p">)));</span> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1217" name="line-1217"></a><span class="p">}</span> +<a id="line-1218" name="line-1218"></a> +<a id="line-1219" name="line-1219"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1220" name="line-1220"></a><span class="n">remove_trailing_spaces</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1221" name="line-1221"></a><span class="p">{</span> +<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="n">GtkTextMark</span><span class="w"> </span><span class="o">*</span><span class="n">insert_mark</span><span class="p">;</span> +<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-1224" name="line-1224"></a><span class="w"> </span><span class="n">insert_mark</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_get_insert</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">insert_mark</span><span class="p">);</span> +<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_text_iter_backward_char</span><span class="p">(</span><span class="o">&</span><span class="n">start</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_unichar_isspace</span><span class="p">(</span><span class="n">gtk_text_iter_get_char</span><span class="p">(</span><span class="o">&</span><span class="n">start</span><span class="p">)))</span> +<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1232" name="line-1232"></a><span class="p">}</span> +<a id="line-1233" name="line-1233"></a> +<a id="line-1234" name="line-1234"></a><span class="kt">void</span><span class="w"> </span><span class="n">set_superscript_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1235" name="line-1235"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1236" name="line-1236"></a><span class="kt">void</span> +<a id="line-1237" name="line-1237"></a><span class="n">set_superscript_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1238" name="line-1238"></a><span class="p">{</span> +<a id="line-1239" name="line-1239"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_toggle_button_get_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1240" name="line-1240"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">);</span> +<a id="line-1241" name="line-1241"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_text_buffer_get_has_selection</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="n">remove_trailing_spaces</span><span class="p">(</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1244" name="line-1244"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">)</span> +<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-1247" name="line-1247"></a><span class="p">}</span> +<a id="line-1248" name="line-1248"></a> +<a id="line-1249" name="line-1249"></a><span class="kt">void</span><span class="w"> </span><span class="n">set_subscript_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1250" name="line-1250"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-1251" name="line-1251"></a><span class="kt">void</span> +<a id="line-1252" name="line-1252"></a><span class="n">set_subscript_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1253" name="line-1253"></a><span class="p">{</span> +<a id="line-1254" name="line-1254"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_toggle_button_get_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">SUBSCRIPT</span><span class="p">);</span> +<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_text_buffer_get_has_selection</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="n">remove_trailing_spaces</span><span class="p">(</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUBSCRIPT</span><span class="p">)</span> +<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-1262" name="line-1262"></a><span class="p">}</span> +<a id="line-1263" name="line-1263"></a> +<a id="line-1264" name="line-1264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1265" name="line-1265"></a><span class="n">number_mode_changed_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1266" name="line-1266"></a><span class="p">{</span> +<a id="line-1267" name="line-1267"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">i</span><span class="p">;</span> +<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="n">NumberMode</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-1269" name="line-1269"></a> +<a id="line-1270" name="line-1270"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1271" name="line-1271"></a> +<a id="line-1272" name="line-1272"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">superscript_toggles</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1273" name="line-1273"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">);</span> +<a id="line-1275" name="line-1275"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">subscript_toggles</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1277" name="line-1277"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUBSCRIPT</span><span class="p">);</span> +<a id="line-1279" name="line-1279"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1280" name="line-1280"></a><span class="p">}</span> +<a id="line-1281" name="line-1281"></a> +<a id="line-1282" name="line-1282"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1283" name="line-1283"></a><span class="n">math_buttons_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1287" name="line-1287"></a><span class="p">{</span> +<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-1289" name="line-1289"></a> +<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_BUTTONS</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1291" name="line-1291"></a> +<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-1294" name="line-1294"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">math_buttons_set_mode</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="p">);</span> +<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::display"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">display_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-1297" name="line-1297"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::number-mode"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">number_mode_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-1298" name="line-1298"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::angle-units"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">display_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-1299" name="line-1299"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::number-format"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">display_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-1300" name="line-1300"></a><span class="w"> </span><span class="n">number_mode_changed_cb</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-1301" name="line-1301"></a><span class="w"> </span><span class="n">display_changed_cb</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1303" name="line-1303"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MODE</span><span class="p">:</span> +<a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">math_buttons_set_mode</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PROGRAMMING_BASE</span><span class="p">:</span> +<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="n">math_buttons_set_programming_base</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1308" name="line-1308"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1312" name="line-1312"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1313" name="line-1313"></a><span class="p">}</span> +<a id="line-1314" name="line-1314"></a> +<a id="line-1315" name="line-1315"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1316" name="line-1316"></a><span class="n">math_buttons_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-1317" name="line-1317"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1320" name="line-1320"></a><span class="p">{</span> +<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-1322" name="line-1322"></a> +<a id="line-1323" name="line-1323"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_BUTTONS</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1324" name="line-1324"></a> +<a id="line-1325" name="line-1325"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_MODE</span><span class="p">:</span> +<a id="line-1330" name="line-1330"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode</span><span class="p">);</span> +<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_PROGRAMMING_BASE</span><span class="p">:</span> +<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">math_buttons_get_programming_base</span><span class="p">(</span><span class="n">self</span><span class="p">));</span> +<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1335" name="line-1335"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1336" name="line-1336"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1338" name="line-1338"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1339" name="line-1339"></a><span class="p">}</span> +<a id="line-1340" name="line-1340"></a> +<a id="line-1341" name="line-1341"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1342" name="line-1342"></a><span class="n">math_buttons_class_init</span><span class="p">(</span><span class="n">MathButtonsClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-1343" name="line-1343"></a><span class="p">{</span> +<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GEnumValue</span><span class="w"> </span><span class="n">button_mode_values</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1346" name="line-1346"></a><span class="w"> </span><span class="p">{</span><span class="n">BASIC</span><span class="p">,</span><span class="w"> </span><span class="s">"basic"</span><span class="p">,</span><span class="w"> </span><span class="s">"basic"</span><span class="p">},</span> +<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="p">{</span><span class="n">ADVANCED</span><span class="p">,</span><span class="w"> </span><span class="s">"advanced"</span><span class="p">,</span><span class="w"> </span><span class="s">"advanced"</span><span class="p">},</span> +<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="p">{</span><span class="n">FINANCIAL</span><span class="p">,</span><span class="w"> </span><span class="s">"financial"</span><span class="p">,</span><span class="w"> </span><span class="s">"financial"</span><span class="p">},</span> +<a id="line-1349" name="line-1349"></a><span class="w"> </span><span class="p">{</span><span class="n">PROGRAMMING</span><span class="p">,</span><span class="w"> </span><span class="s">"programming"</span><span class="p">,</span><span class="w"> </span><span class="s">"programming"</span><span class="p">},</span> +<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-1351" name="line-1351"></a><span class="w"> </span><span class="p">};</span> +<a id="line-1352" name="line-1352"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-1353" name="line-1353"></a> +<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_buttons_get_property</span><span class="p">;</span> +<a id="line-1355" name="line-1355"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_buttons_set_property</span><span class="p">;</span> +<a id="line-1356" name="line-1356"></a> +<a id="line-1357" name="line-1357"></a><span class="w"> </span><span class="n">button_mode_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_enum_register_static</span><span class="p">(</span><span class="s">"ButtonMode"</span><span class="p">,</span><span class="w"> </span><span class="n">button_mode_values</span><span class="p">);</span> +<a id="line-1358" name="line-1358"></a> +<a id="line-1359" name="line-1359"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-1361" name="line-1361"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="p">(</span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-1363" name="line-1363"></a><span class="w"> </span><span class="s">"Equation being controlled"</span><span class="p">,</span> +<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="n">math_equation_get_type</span><span class="p">(),</span> +<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1367" name="line-1367"></a><span class="w"> </span><span class="n">PROP_MODE</span><span class="p">,</span> +<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="p">(</span><span class="s">"mode"</span><span class="p">,</span> +<a id="line-1369" name="line-1369"></a><span class="w"> </span><span class="s">"mode"</span><span class="p">,</span> +<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="s">"Button mode"</span><span class="p">,</span> +<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="n">button_mode_type</span><span class="p">,</span> +<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="n">BASIC</span><span class="p">,</span> +<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="n">PROP_PROGRAMMING_BASE</span><span class="p">,</span> +<a id="line-1376" name="line-1376"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="p">(</span><span class="s">"programming-base"</span><span class="p">,</span> +<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="s">"programming-base"</span><span class="p">,</span> +<a id="line-1378" name="line-1378"></a><span class="w"> </span><span class="s">"Base to use in programming mode"</span><span class="p">,</span> +<a id="line-1379" name="line-1379"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span> +<a id="line-1380" name="line-1380"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1381" name="line-1381"></a><span class="p">}</span> +<a id="line-1382" name="line-1382"></a> +<a id="line-1383" name="line-1383"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1384" name="line-1384"></a><span class="n">math_buttons_init</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">)</span> +<a id="line-1385" name="line-1385"></a><span class="p">{</span> +<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_buttons_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="p">);</span> +<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="n">gtk_box_set_spacing</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">buttons</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-1388" name="line-1388"></a><span class="w"> </span><span class="n">gtk_orientable_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">buttons</span><span class="p">),</span> +<a id="line-1389" name="line-1389"></a><span class="w"> </span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">);</span> +<a id="line-1390" name="line-1390"></a><span class="w"> </span><span class="n">buttons</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">programming_base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">buttons</span><span class="p">),</span><span class="w"> </span><span class="s">"show"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">load_buttons</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1392" name="line-1392"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/23.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/23.html new file mode 100644 index 0000000..9d47ad8 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/23.html @@ -0,0 +1,343 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-converter.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-converter.h</p> +<a href="23.html#line-14"> missingIncludeSystem 14</a><a href="23.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef MATH_CONVERTER_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define MATH_CONVERTER_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit.h"</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#define MATH_CONVERTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_converter_get_type(), MathConverter))</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathConverterPrivate</span><span class="w"> </span><span class="n">MathConverterPrivate</span><span class="p">;</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-27" name="line-27"></a><span class="p">{</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">GtkHBox</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">MathConverterPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="p">}</span><span class="w"> </span><span class="n">MathConverter</span><span class="p">;</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-33" name="line-33"></a><span class="p">{</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">GtkHBoxClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">changed</span><span class="p">)(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="p">}</span><span class="w"> </span><span class="n">MathConverterClass</span><span class="p">;</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_converter_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="nf">math_converter_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_converter_set_category</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">);</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_converter_get_category</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">);</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_converter_set_conversion</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="cm">/*const gchar *category,*/</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">unit_a</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">unit_b</span><span class="p">);</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_converter_get_conversion</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">**</span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">**</span><span class="n">to_unit</span><span class="p">);</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="n">G_END_DECLS</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="cp">#endif </span><span class="cm">/* MATH_CONVERTER_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/24.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/24.html new file mode 100644 index 0000000..d9d2a49 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/24.html @@ -0,0 +1,317 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-variable-popup.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-variable-popup.h</p> +<a href="24.html#line-14"> missingIncludeSystem 14</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef MATH_VARIABLE_POPUP_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define MATH_VARIABLE_POPUP_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cp">#define MATH_VARIABLE_POPUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_variable_popup_get_type(), MathVariablePopup))</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathVariablePopupPrivate</span><span class="w"> </span><span class="n">MathVariablePopupPrivate</span><span class="p">;</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-24" name="line-24"></a><span class="p">{</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">GtkWindow</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">MathVariablePopupPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="p">}</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-30" name="line-30"></a><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GtkWindowClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="p">}</span><span class="w"> </span><span class="n">MathVariablePopupClass</span><span class="p">;</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_variable_popup_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="nf">math_variable_popup_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="n">G_END_DECLS</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cp">#endif </span><span class="cm">/* MATH_VARIABLE_POPUP_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/25.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/25.html new file mode 100644 index 0000000..38c8c2c --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/25.html @@ -0,0 +1,1095 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-converter.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-converter.c</p> +<a href="25.html#line-11"> missingIncludeSystem 11</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-converter.h"</span> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-manager.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"currency-manager.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">CHANGED</span><span class="p">,</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span> +<a id="line-20" name="line-20"></a><span class="p">};</span> +<a id="line-21" name="line-21"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">};</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathConverterPrivate</span> +<a id="line-24" name="line-24"></a><span class="p">{</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">from_combo</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">to_combo</span><span class="p">;</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">result_label</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="p">};</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathConverter</span><span class="p">,</span><span class="w"> </span><span class="n">math_converter</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_BOX</span><span class="p">);</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">display_changed_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">update_from_model</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span> +<a id="line-41" name="line-41"></a><span class="nf">math_converter_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-42" name="line-42"></a><span class="p">{</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_converter_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::display"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">display_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="p">);</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">update_from_model</span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">converter</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="p">}</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-51" name="line-51"></a><span class="nf">convert_equation</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-52" name="line-52"></a><span class="p">{</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">from_iter</span><span class="p">,</span><span class="w"> </span><span class="n">to_iter</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">source_unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">target_unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">from_iter</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="o">!</span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">to_iter</span><span class="p">))</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">)),</span><span class="w"> </span><span class="o">&</span><span class="n">from_iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">source_unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">)),</span><span class="w"> </span><span class="o">&</span><span class="n">to_iter</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">target_unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_convert</span><span class="p">(</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">source_unit</span><span class="p">,</span><span class="w"> </span><span class="n">target_unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="p">)</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">category</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">source_unit</span><span class="p">)</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">source_unit</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">target_unit</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">target_unit</span><span class="p">);</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="p">}</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-78" name="line-78"></a><span class="nf">update_result_label</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-79" name="line-79"></a><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">enabled</span><span class="p">;</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">)</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">))</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">enabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">convert_equation</span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="k">else</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">enabled</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">,</span><span class="w"> </span><span class="n">enabled</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">enabled</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">source_text</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">target_text</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">source_unit</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">target_unit</span><span class="p">;</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">math_converter_get_conversion</span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">source_unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">target_unit</span><span class="p">);</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">source_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_format</span><span class="p">(</span><span class="n">source_unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">target_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_format</span><span class="p">(</span><span class="n">target_unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"%s = %s"</span><span class="p">,</span><span class="w"> </span><span class="n">source_text</span><span class="p">,</span><span class="w"> </span><span class="n">target_text</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">source_text</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">target_text</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">source_unit</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">target_unit</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">}</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="p">}</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-116" name="line-116"></a><span class="nf">display_changed_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-117" name="line-117"></a><span class="p">{</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">update_result_label</span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="p">}</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-122" name="line-122"></a><span class="nf">update_from_model</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-123" name="line-123"></a><span class="p">{</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">GtkTreeStore</span><span class="w"> </span><span class="o">*</span><span class="n">from_model</span><span class="p">;</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">from_model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_store_new</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">categories</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">categories</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_get_categories</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">());</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">categories</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">unit_iter</span><span class="p">;</span> +<a id="line-136" name="line-136"></a> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">gtk_tree_store_append</span><span class="p">(</span><span class="n">from_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">gtk_tree_store_set</span><span class="p">(</span><span class="n">from_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">unit_category_get_display_name</span><span class="p">(</span><span class="n">category</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">unit_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_units</span><span class="p">(</span><span class="n">category</span><span class="p">);</span><span class="w"> </span><span class="n">unit_iter</span><span class="p">;</span><span class="w"> </span><span class="n">unit_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter_new_row</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">gtk_tree_store_append</span><span class="p">(</span><span class="n">from_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter_new_row</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">parent</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">gtk_tree_store_set</span><span class="p">(</span><span class="n">from_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter_new_row</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_display_name</span><span class="p">(</span><span class="n">unit</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">}</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="p">}</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">}</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">unit_iter</span><span class="p">;</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_get_category</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">unit_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_units</span><span class="p">(</span><span class="n">category</span><span class="p">);</span><span class="w"> </span><span class="n">unit_iter</span><span class="p">;</span><span class="w"> </span><span class="n">unit_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">gtk_tree_store_append</span><span class="p">(</span><span class="n">from_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">gtk_tree_store_set</span><span class="p">(</span><span class="n">from_model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_display_name</span><span class="p">(</span><span class="n">unit</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">}</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">}</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="p">(</span><span class="n">from_model</span><span class="p">));</span> +<a id="line-164" name="line-164"></a><span class="p">}</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="kt">void</span> +<a id="line-167" name="line-167"></a><span class="nf">math_converter_set_category</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">)</span> +<a id="line-168" name="line-168"></a><span class="p">{</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">category</span><span class="p">);</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">update_from_model</span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-183" name="line-183"></a><span class="nf">math_converter_get_category</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-184" name="line-184"></a><span class="p">{</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">category</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="p">}</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-190" name="line-190"></a><span class="nf">iter_is_unit</span><span class="p">(</span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-191" name="line-191"></a><span class="p">{</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">u</span><span class="p">;</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">u</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">u</span><span class="p">)</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">u</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">u</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">unit</span><span class="p">)</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="p">}</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-207" name="line-207"></a><span class="nf">set_active_unit</span><span class="p">(</span><span class="n">GtkComboBox</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-208" name="line-208"></a><span class="p">{</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">child_iter</span><span class="p">;</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">combo</span><span class="p">);</span> +<a id="line-213" name="line-213"></a> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">iter_is_unit</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active_iter</span><span class="p">(</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_tree_model_iter_children</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">child_iter</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">))</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">set_active_unit</span><span class="p">(</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">child_iter</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">))</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_model_iter_next</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">child_iter</span><span class="p">));</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="p">}</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="kt">void</span> +<a id="line-231" name="line-231"></a><span class="nf">math_converter_set_conversion</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="cm">/*const gchar *category,*/</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">unit_a</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">unit_b</span><span class="p">)</span> +<a id="line-232" name="line-232"></a><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">ua</span><span class="p">;</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">ub</span><span class="p">;</span> +<a id="line-235" name="line-235"></a> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit_a</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit_b</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">ua</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_get_unit_by_name</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">unit_a</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">ub</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_get_unit_by_name</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">unit_b</span><span class="p">);</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">ua</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">ub</span><span class="p">)</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="p">{</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="cm">/* Select the first unit */</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">));</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_model_get_iter_first</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">child_iter</span><span class="p">;</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_tree_model_iter_children</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">child_iter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">child_iter</span><span class="p">;</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">}</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="p">}</span> +<a id="line-257" name="line-257"></a> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">set_active_unit</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">ua</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">set_active_unit</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">ub</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="p">}</span> +<a id="line-261" name="line-261"></a> +<a id="line-262" name="line-262"></a><span class="kt">void</span> +<a id="line-263" name="line-263"></a><span class="nf">math_converter_get_conversion</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">**</span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">**</span><span class="n">to_unit</span><span class="p">)</span> +<a id="line-264" name="line-264"></a><span class="p">{</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">from_iter</span><span class="p">,</span><span class="w"> </span><span class="n">to_iter</span><span class="p">;</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">from_unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">to_unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">from_iter</span><span class="p">);</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">to_iter</span><span class="p">);</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">)),</span><span class="w"> </span><span class="o">&</span><span class="n">from_iter</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">)),</span><span class="w"> </span><span class="o">&</span><span class="n">to_iter</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">to_unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-276" name="line-276"></a><span class="p">}</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-279" name="line-279"></a><span class="nf">math_converter_class_init</span><span class="p">(</span><span class="n">MathConverterClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-280" name="line-280"></a><span class="p">{</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">CHANGED</span><span class="p">]</span><span class="w"> </span><span class="o">=</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="p">(</span><span class="s">"changed"</span><span class="p">,</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">),</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">MathConverterClass</span><span class="p">,</span><span class="w"> </span><span class="n">changed</span><span class="p">),</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-289" name="line-289"></a><span class="p">}</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-292" name="line-292"></a><span class="nf">from_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-293" name="line-293"></a><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">;</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">unit_iter</span><span class="p">;</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">));</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">))</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="cm">/* Set the to combobox to be the list of units can be converted to */</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GTK_TREE_MODEL</span><span class="p">(</span><span class="n">gtk_list_store_new</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">));</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">unit_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_units</span><span class="p">(</span><span class="n">category</span><span class="p">);</span><span class="w"> </span><span class="n">unit_iter</span><span class="p">;</span><span class="w"> </span><span class="n">unit_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">u</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">u</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">unit</span><span class="p">)</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">unit_get_display_name</span><span class="p">(</span><span class="n">u</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">u</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">}</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">gtk_combo_box_set_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="n">model</span><span class="p">);</span> +<a id="line-315" name="line-315"></a> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="cm">/* Select the first possible unit */</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">category</span><span class="p">);</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">unit</span><span class="p">);</span> +<a id="line-321" name="line-321"></a><span class="p">}</span> +<a id="line-322" name="line-322"></a> +<a id="line-323" name="line-323"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-324" name="line-324"></a><span class="nf">to_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-325" name="line-325"></a><span class="p">{</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="cm">/* Conversion must have changed */</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">update_result_label</span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-328" name="line-328"></a> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">CHANGED</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-330" name="line-330"></a><span class="p">}</span> +<a id="line-331" name="line-331"></a> +<a id="line-332" name="line-332"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-333" name="line-333"></a><span class="nf">from_cell_data_func</span><span class="p">(</span><span class="n">GtkCellLayout</span><span class="w"> </span><span class="o">*</span><span class="n">cell_layout</span><span class="p">,</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">cell</span><span class="p">,</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">tree_model</span><span class="p">,</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">,</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-338" name="line-338"></a><span class="p">{</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">g_object_set</span><span class="p">(</span><span class="n">cell</span><span class="p">,</span><span class="w"> </span><span class="s">"sensitive"</span><span class="p">,</span><span class="w"> </span><span class="o">!</span><span class="n">gtk_tree_model_iter_has_child</span><span class="p">(</span><span class="n">tree_model</span><span class="p">,</span><span class="w"> </span><span class="n">iter</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-340" name="line-340"></a><span class="p">}</span> +<a id="line-341" name="line-341"></a> +<a id="line-342" name="line-342"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-343" name="line-343"></a><span class="nf">currency_updated_cb</span><span class="p">(</span><span class="n">CurrencyManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-344" name="line-344"></a><span class="p">{</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">update_result_label</span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="p">}</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-349" name="line-349"></a><span class="nf">swap_button_clicked_cb</span><span class="p">(</span><span class="n">GtkButton</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-350" name="line-350"></a><span class="p">{</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">to_unit</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">convert_equation</span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">))</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">math_equation_set_number</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">math_converter_get_conversion</span><span class="p">(</span><span class="n">converter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">from_unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">to_unit</span><span class="p">);</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">set_active_unit</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">to_unit</span><span class="p">);</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">set_active_unit</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">from_unit</span><span class="p">);</span> +<a id="line-362" name="line-362"></a> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">update_result_label</span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">from_unit</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">to_unit</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-369" name="line-369"></a><span class="p">}</span> +<a id="line-370" name="line-370"></a> +<a id="line-371" name="line-371"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-372" name="line-372"></a><span class="nf">math_converter_init</span><span class="p">(</span><span class="n">MathConverter</span><span class="w"> </span><span class="o">*</span><span class="n">converter</span><span class="p">)</span> +<a id="line-373" name="line-373"></a><span class="p">{</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">swap_button</span><span class="p">;</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">renderer</span><span class="p">;</span> +<a id="line-376" name="line-376"></a> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_converter_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">);</span> +<a id="line-378" name="line-378"></a> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">gtk_box_set_spacing</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">gtk_orientable_set_orientation</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTABLE</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="p">),</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">);</span> +<a id="line-382" name="line-382"></a> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">hbox</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-388" name="line-388"></a> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="p">();</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">gtk_cell_layout_add_attribute</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">gtk_cell_layout_set_cell_data_func</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">),</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">renderer</span><span class="p">,</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">from_cell_data_func</span><span class="p">,</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">from_combobox_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_combo</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="p">(</span><span class="cm">/* Label that is displayed between the two conversion combo boxes, e.g. "[degrees] in [radians]" */</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">" in "</span><span class="p">));</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">);</span> +<a id="line-404" name="line-404"></a> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_new</span><span class="p">();</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="p">();</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">gtk_cell_layout_add_attribute</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">,</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">to_combobox_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_combo</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">swap_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new_with_label</span><span class="w"> </span><span class="p">(</span><span class="s">"⇆"</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="w"> </span><span class="p">(</span><span class="n">swap_button</span><span class="p">,</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="cm">/* Tooltip for swap conversion button */</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Switch conversion units"</span><span class="p">));</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">gtk_button_set_relief</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="w"> </span><span class="p">(</span><span class="n">swap_button</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_RELIEF_NONE</span><span class="p">);</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="w"> </span><span class="p">(</span><span class="n">swap_button</span><span class="p">,</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="w"> </span><span class="p">(</span><span class="n">swap_button_clicked_cb</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="p">);</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">swap_button</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">swap_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">gtk_widget_set_halign</span><span class="w"> </span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_END</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">);</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">converter</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">result_label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-427" name="line-427"></a> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">currency_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="s">"updated"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">currency_updated_cb</span><span class="p">),</span><span class="w"> </span><span class="n">converter</span><span class="p">);</span> +<a id="line-429" name="line-429"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/26.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/26.html new file mode 100644 index 0000000..1045189 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/26.html @@ -0,0 +1,1185 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-display.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-display.c</p> +<a href="26.html#line-11"> missingIncludeSystem 11</a><a href="26.html#line-12"> missingIncludeSystem 12</a><a href="26.html#line-13"> missingIncludeSystem 13</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span><span class="error2"><--- Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-display.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">PROP_EQUATION</span> +<a id="line-20" name="line-20"></a><span class="p">};</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathDisplayPrivate</span> +<a id="line-23" name="line-23"></a><span class="p">{</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="cm">/* Equation being displayed */</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="cm">/* Display widget */</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">text_view</span><span class="p">;</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="cm">/* Buffer that shows errors etc */</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GtkTextBuffer</span><span class="w"> </span><span class="o">*</span><span class="n">info_buffer</span><span class="p">;</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="cm">/* Spinner widget that shows if we're calculating a response */</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">spinner</span><span class="p">;</span> +<a id="line-35" name="line-35"></a><span class="p">};</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathDisplay</span><span class="p">,</span><span class="w"> </span><span class="n">math_display</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_VIEWPORT</span><span class="p">);</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span> +<a id="line-40" name="line-40"></a><span class="nf">math_display_new</span><span class="p">()</span> +<a id="line-41" name="line-41"></a><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_display_get_type</span><span class="p">(),</span><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_new</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-43" name="line-43"></a><span class="p">}</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span> +<a id="line-46" name="line-46"></a><span class="nf">math_display_new_with_equation</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-47" name="line-47"></a><span class="p">{</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_display_get_type</span><span class="p">(),</span><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="p">}</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span> +<a id="line-52" name="line-52"></a><span class="nf">math_display_get_equation</span><span class="p">(</span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">)</span> +<a id="line-53" name="line-53"></a><span class="p">{</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="p">}</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-58" name="line-58"></a><span class="nf">display_key_press_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">)</span> +<a id="line-59" name="line-59"></a><span class="p">{</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">guint32</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="cm">/* Treat keypad keys as numbers even when numlock is off */</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">{</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Delete</span><span class="p">:</span><span class="w"> </span><span class="cm">/* Period without numlock */</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_KP_Decimal</span><span class="p">;</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Insert</span><span class="p">:</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_0</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_End</span><span class="p">:</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_1</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Down</span><span class="p">:</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_2</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Page_Down</span><span class="p">:</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_3</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Left</span><span class="p">:</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_4</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Begin</span><span class="p">:</span><span class="w"> </span><span class="cm">/* This is apparently what "5" does when numlock is off. */</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_5</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Right</span><span class="p">:</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_6</span><span class="p">;</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Home</span><span class="p">:</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_7</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Up</span><span class="p">:</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_8</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_Page_Up</span><span class="p">:</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">new_keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_9</span><span class="p">;</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="p">}</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">new_keyval</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">new_event</span><span class="p">;</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">new_event</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_event_copy</span><span class="p">((</span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">event</span><span class="p">);</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="p">((</span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">new_event</span><span class="p">)</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">new_keyval</span><span class="p">;</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">new_event</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">gdk_event_free</span><span class="p">(</span><span class="n">new_event</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">}</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="p">(</span><span class="n">GDK_CONTROL_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">);</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gdk_keyval_to_unicode</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">);</span> +<a id="line-115" name="line-115"></a> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="cm">/* Solve on enter */</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Return</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Enter</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">math_equation_solve</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="cm">/* Clear on escape */</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Escape</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_BackSpace</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Delete</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">math_equation_clear</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">}</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="cm">/* Numeric keypad will often insert '.' regardless of locale */</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Decimal</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">math_equation_insert_numeric_point</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">}</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="cm">/* Substitute */</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'*'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"×"</span><span class="p">);</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">}</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'/'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"÷"</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">}</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'-'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">math_equation_insert_subtract</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">}</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="cm">/* Shortcuts */</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">{</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_bracketleft</span><span class="p">:</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⌈"</span><span class="p">);</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_bracketright</span><span class="p">:</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⌉"</span><span class="p">);</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_e</span><span class="p">:</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">math_equation_insert_exponent</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_f</span><span class="p">:</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">math_equation_factorize</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_i</span><span class="p">:</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻¹"</span><span class="p">);</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_p</span><span class="p">:</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"π"</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_r</span><span class="p">:</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"√"</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_u</span><span class="p">:</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"µ"</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_minus</span><span class="p">:</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻"</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_apostrophe</span><span class="p">:</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"°"</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">}</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="p">}</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">{</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_bracketleft</span><span class="p">:</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⌊"</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_bracketright</span><span class="p">:</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⌋"</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">}</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="p">}</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">{</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_0</span><span class="p">:</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_0</span><span class="p">:</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁰"</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_1</span><span class="p">:</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_1</span><span class="p">:</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"¹"</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_2</span><span class="p">:</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_2</span><span class="p">:</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"²"</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_3</span><span class="p">:</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_3</span><span class="p">:</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"³"</span><span class="p">);</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_4</span><span class="p">:</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_4</span><span class="p">:</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁴"</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_5</span><span class="p">:</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_5</span><span class="p">:</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁵"</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_6</span><span class="p">:</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_6</span><span class="p">:</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁶"</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_7</span><span class="p">:</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_7</span><span class="p">:</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁷"</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_8</span><span class="p">:</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_8</span><span class="p">:</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁸"</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_9</span><span class="p">:</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_9</span><span class="p">:</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁹"</span><span class="p">);</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="p">}</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="p">}</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">math_equation_get_number_mode</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUBSCRIPT</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">{</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_0</span><span class="p">:</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_0</span><span class="p">:</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₀"</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_1</span><span class="p">:</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_1</span><span class="p">:</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₁"</span><span class="p">);</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_2</span><span class="p">:</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_2</span><span class="p">:</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₂"</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_3</span><span class="p">:</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_3</span><span class="p">:</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₃"</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_4</span><span class="p">:</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_4</span><span class="p">:</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₄"</span><span class="p">);</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_5</span><span class="p">:</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_5</span><span class="p">:</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₅"</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_6</span><span class="p">:</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_6</span><span class="p">:</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₆"</span><span class="p">);</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_7</span><span class="p">:</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_7</span><span class="p">:</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₇"</span><span class="p">);</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_8</span><span class="p">:</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_8</span><span class="p">:</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₈"</span><span class="p">);</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_9</span><span class="p">:</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_KP_9</span><span class="p">:</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"₉"</span><span class="p">);</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">}</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-292" name="line-292"></a><span class="p">}</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-295" name="line-295"></a><span class="nf">key_press_cb</span><span class="p">(</span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-296" name="line-296"></a><span class="p">{</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">,</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="p">}</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-303" name="line-303"></a><span class="nf">status_changed_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">)</span> +<a id="line-304" name="line-304"></a><span class="p">{</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">gtk_text_buffer_set_text</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">info_buffer</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_status</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_in_solve</span><span class="p">(</span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">gtk_widget_get_visible</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">gtk_spinner_start</span><span class="p">(</span><span class="n">GTK_SPINNER</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">));</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">}</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">math_equation_in_solve</span><span class="p">(</span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">gtk_widget_get_visible</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">gtk_spinner_stop</span><span class="p">(</span><span class="n">GTK_SPINNER</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">));</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">}</span> +<a id="line-314" name="line-314"></a><span class="p">}</span> +<a id="line-315" name="line-315"></a> +<a id="line-316" name="line-316"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">_text_view_override_font</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">PangoFontDescription</span><span class="w"> </span><span class="o">*</span><span class="n">font</span><span class="p">)</span> +<a id="line-317" name="line-317"></a><span class="p">{</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">GtkCssProvider</span><span class="w"> </span><span class="o">*</span><span class="n">provider</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">css</span><span class="p">;</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">family</span><span class="p">;</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">weight</span><span class="p">;</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">size</span><span class="p">;</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">style</span><span class="p">;</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">family</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"font-family: %s;"</span><span class="p">,</span><span class="w"> </span><span class="n">pango_font_description_get_family</span><span class="w"> </span><span class="p">(</span><span class="n">font</span><span class="p">));</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">weight</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"font-weight: %d;"</span><span class="p">,</span><span class="w"> </span><span class="n">pango_font_description_get_weight</span><span class="w"> </span><span class="p">(</span><span class="n">font</span><span class="p">));</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pango_font_description_get_style</span><span class="w"> </span><span class="p">(</span><span class="n">font</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PANGO_STYLE_NORMAL</span><span class="p">)</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"font-style: normal;"</span><span class="p">;</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">pango_font_description_get_style</span><span class="w"> </span><span class="p">(</span><span class="n">font</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PANGO_STYLE_ITALIC</span><span class="p">)</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"font-style: italic;"</span><span class="p">;</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">else</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">style</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"font-style: oblique;"</span><span class="p">;</span> +<a id="line-333" name="line-333"></a> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"font-size: %d%s;"</span><span class="p">,</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">pango_font_description_get_size</span><span class="w"> </span><span class="p">(</span><span class="n">font</span><span class="p">)</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">PANGO_SCALE</span><span class="p">,</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">pango_font_description_get_size_is_absolute</span><span class="w"> </span><span class="p">(</span><span class="n">font</span><span class="p">)</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"px"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"pt"</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">css</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="s">"textview { %s %s %s %s }"</span><span class="p">,</span><span class="w"> </span><span class="n">family</span><span class="p">,</span><span class="w"> </span><span class="n">weight</span><span class="p">,</span><span class="w"> </span><span class="n">style</span><span class="p">,</span><span class="w"> </span><span class="n">size</span><span class="p">);</span> +<a id="line-338" name="line-338"></a> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">provider</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_css_provider_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">gtk_css_provider_load_from_data</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">,</span><span class="w"> </span><span class="n">css</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">css</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">family</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">weight</span><span class="p">);</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">size</span><span class="p">);</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">gtk_style_context_add_provider</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">GTK_STYLE_PROVIDER</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">),</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">GTK_STYLE_PROVIDER_PRIORITY_APPLICATION</span><span class="p">);</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="w"> </span><span class="p">(</span><span class="n">provider</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="p">}</span> +<a id="line-351" name="line-351"></a> +<a id="line-352" name="line-352"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-353" name="line-353"></a><span class="nf">create_gui</span><span class="p">(</span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">)</span> +<a id="line-354" name="line-354"></a><span class="p">{</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">info_view</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">info_box</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">main_box</span><span class="p">;</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">PangoFontDescription</span><span class="w"> </span><span class="o">*</span><span class="n">font_desc</span><span class="p">;</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">GtkStyleContext</span><span class="w"> </span><span class="o">*</span><span class="n">context</span><span class="p">;</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="n">GtkStateFlags</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-359" name="line-359"></a> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">main_box</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">display</span><span class="p">),</span><span class="w"> </span><span class="n">main_box</span><span class="p">);</span> +<a id="line-362" name="line-362"></a> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">key_press_cb</span><span class="p">),</span><span class="w"> </span><span class="n">display</span><span class="p">);</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_view_new_with_buffer</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">gtk_text_view_set_wrap_mode</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WRAP_WORD</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">gtk_text_view_set_accepts_tab</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="n">gtk_text_view_set_pixels_above_lines</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">),</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">gtk_text_view_set_pixels_below_lines</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">),</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="cm">/* TEMP: Disabled for now as GTK+ doesn't properly render a right aligned right margin, see bug #482688 */</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="cm">/*gtk_text_view_set_right_margin(GTK_TEXT_VIEW(display->priv->text_view), 6);*/</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">gtk_text_view_set_justification</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_JUSTIFY_RIGHT</span><span class="p">);</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_style_context</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">);</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_state_flags</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">));</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">gtk_style_context_get</span><span class="w"> </span><span class="p">(</span><span class="n">context</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_STYLE_PROPERTY_FONT</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">font_desc</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">pango_font_description_set_size</span><span class="p">(</span><span class="n">font_desc</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">PANGO_SCALE</span><span class="p">);</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">_text_view_override_font</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">,</span><span class="w"> </span><span class="n">font_desc</span><span class="p">);</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">pango_font_description_free</span><span class="p">(</span><span class="n">font_desc</span><span class="p">);</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">gtk_widget_set_name</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">,</span><span class="w"> </span><span class="s">"displayitem"</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">atk_object_set_role</span><span class="p">(</span><span class="n">gtk_widget_get_accessible</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">),</span><span class="w"> </span><span class="n">ATK_ROLE_EDITBAR</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="c1">//FIXME:<property name="AtkObject::accessible-description" translatable="yes" comments="Accessible description for the area in which results are displayed">Result Region</property></span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">,</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">display_key_press_cb</span><span class="p">),</span><span class="w"> </span><span class="n">display</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">main_box</span><span class="p">),</span><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-384" name="line-384"></a> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">info_box</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">main_box</span><span class="p">),</span><span class="w"> </span><span class="n">info_box</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">info_view</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_view_new</span><span class="p">();</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_text_view_set_wrap_mode</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">info_view</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WRAP_WORD</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="p">(</span><span class="n">info_view</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: This should be FALSE but it locks the cursor inside the main view for some reason</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">gtk_text_view_set_cursor_visible</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">info_view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: Just here so when incorrectly gets focus doesn't look editable</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">gtk_text_view_set_editable</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">info_view</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">gtk_text_view_set_justification</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">info_view</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_JUSTIFY_RIGHT</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">gtk_text_view_set_bottom_margin</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">info_view</span><span class="p">),</span><span class="w"> </span><span class="mi">12</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="cm">/* TEMP: Disabled for now as GTK+ doesn't properly render a right aligned right margin, see bug #482688 */</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="cm">/*gtk_text_view_set_right_margin(GTK_TEXT_VIEW(info_view), 6);*/</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">info_box</span><span class="p">),</span><span class="w"> </span><span class="n">info_view</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">info_buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_view_get_buffer</span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="p">(</span><span class="n">info_view</span><span class="p">));</span> +<a id="line-399" name="line-399"></a> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spinner_new</span><span class="p">();</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">info_box</span><span class="p">),</span><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">spinner</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">info_box</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">info_view</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">text_view</span><span class="p">);</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">main_box</span><span class="p">);</span> +<a id="line-407" name="line-407"></a> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::status"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">status_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">display</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">status_changed_cb</span><span class="p">(</span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">display</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="p">}</span> +<a id="line-411" name="line-411"></a> +<a id="line-412" name="line-412"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-413" name="line-413"></a><span class="nf">math_display_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-417" name="line-417"></a><span class="p">{</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-419" name="line-419"></a> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_DISPLAY</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">create_gui</span><span class="p">(</span><span class="n">self</span><span class="p">);</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="p">}</span> +<a id="line-431" name="line-431"></a><span class="p">}</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-434" name="line-434"></a><span class="nf">math_display_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-438" name="line-438"></a><span class="p">{</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_DISPLAY</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-442" name="line-442"></a> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="p">}</span> +<a id="line-451" name="line-451"></a><span class="p">}</span> +<a id="line-452" name="line-452"></a> +<a id="line-453" name="line-453"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-454" name="line-454"></a><span class="nf">math_display_class_init</span><span class="p">(</span><span class="n">MathDisplayClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-455" name="line-455"></a><span class="p">{</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-457" name="line-457"></a> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_display_get_property</span><span class="p">;</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_display_set_property</span><span class="p">;</span> +<a id="line-460" name="line-460"></a> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="p">(</span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="s">"Equation being displayed"</span><span class="p">,</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">math_equation_get_type</span><span class="p">(),</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-468" name="line-468"></a><span class="p">}</span> +<a id="line-469" name="line-469"></a> +<a id="line-470" name="line-470"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-471" name="line-471"></a><span class="nf">math_display_init</span><span class="p">(</span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">)</span> +<a id="line-472" name="line-472"></a><span class="p">{</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">display</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_display_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">display</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/27.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/27.html new file mode 100644 index 0000000..9fff80f --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/27.html @@ -0,0 +1,4173 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-equation.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-equation.c</p> +<a href="27.html#line-12"> missingIncludeSystem 12</a><a href="27.html#line-13"> missingIncludeSystem 13</a><a href="27.html#line-14"> missingIncludeSystem 14</a><a href="27.html#line-15"> missingIncludeSystem 15</a><a href="27.html#line-16"> missingIncludeSystem 16</a><a href="27.html#line-17"> missingIncludeSystem 17</a><a href="27.html#line-18"> missingIncludeSystem 18</a><a href="27.html#line-19"> missingIncludeSystem 19</a><a href="27.html#line-421"> variableScope 421</a><a href="27.html#line-828"> variableScope 828</a><a href="27.html#line-1303"> variableScope 1303</a><a href="27.html#line-1872"> constParameterCallback 1872</a><a href="27.html#line-1921"> constParameterCallback 1921</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span> +<span class="normal">1233</span> +<span class="normal">1234</span> +<span class="normal">1235</span> +<span class="normal">1236</span> +<span class="normal">1237</span> +<span class="normal">1238</span> +<span class="normal">1239</span> +<span class="normal">1240</span> +<span class="normal">1241</span> +<span class="normal">1242</span> +<span class="normal">1243</span> +<span class="normal">1244</span> +<span class="normal">1245</span> +<span class="normal">1246</span> +<span class="normal">1247</span> +<span class="normal">1248</span> +<span class="normal">1249</span> +<span class="normal">1250</span> +<span class="normal">1251</span> +<span class="normal">1252</span> +<span class="normal">1253</span> +<span class="normal">1254</span> +<span class="normal">1255</span> +<span class="normal">1256</span> +<span class="normal">1257</span> +<span class="normal">1258</span> +<span class="normal">1259</span> +<span class="normal">1260</span> +<span class="normal">1261</span> +<span class="normal">1262</span> +<span class="normal">1263</span> +<span class="normal">1264</span> +<span class="normal">1265</span> +<span class="normal">1266</span> +<span class="normal">1267</span> +<span class="normal">1268</span> +<span class="normal">1269</span> +<span class="normal">1270</span> +<span class="normal">1271</span> +<span class="normal">1272</span> +<span class="normal">1273</span> +<span class="normal">1274</span> +<span class="normal">1275</span> +<span class="normal">1276</span> +<span class="normal">1277</span> +<span class="normal">1278</span> +<span class="normal">1279</span> +<span class="normal">1280</span> +<span class="normal">1281</span> +<span class="normal">1282</span> +<span class="normal">1283</span> +<span class="normal">1284</span> +<span class="normal">1285</span> +<span class="normal">1286</span> +<span class="normal">1287</span> +<span class="normal">1288</span> +<span class="normal">1289</span> +<span class="normal">1290</span> +<span class="normal">1291</span> +<span class="normal">1292</span> +<span class="normal">1293</span> +<span class="normal">1294</span> +<span class="normal">1295</span> +<span class="normal">1296</span> +<span class="normal">1297</span> +<span class="normal">1298</span> +<span class="normal">1299</span> +<span class="normal">1300</span> +<span class="normal">1301</span> +<span class="normal">1302</span> +<span class="normal">1303</span> +<span class="normal">1304</span> +<span class="normal">1305</span> +<span class="normal">1306</span> +<span class="normal">1307</span> +<span class="normal">1308</span> +<span class="normal">1309</span> +<span class="normal">1310</span> +<span class="normal">1311</span> +<span class="normal">1312</span> +<span class="normal">1313</span> +<span class="normal">1314</span> +<span class="normal">1315</span> +<span class="normal">1316</span> +<span class="normal">1317</span> +<span class="normal">1318</span> +<span class="normal">1319</span> +<span class="normal">1320</span> +<span class="normal">1321</span> +<span class="normal">1322</span> +<span class="normal">1323</span> +<span class="normal">1324</span> +<span class="normal">1325</span> +<span class="normal">1326</span> +<span class="normal">1327</span> +<span class="normal">1328</span> +<span class="normal">1329</span> +<span class="normal">1330</span> +<span class="normal">1331</span> +<span class="normal">1332</span> +<span class="normal">1333</span> +<span class="normal">1334</span> +<span class="normal">1335</span> +<span class="normal">1336</span> +<span class="normal">1337</span> +<span class="normal">1338</span> +<span class="normal">1339</span> +<span class="normal">1340</span> +<span class="normal">1341</span> +<span class="normal">1342</span> +<span class="normal">1343</span> +<span class="normal">1344</span> +<span class="normal">1345</span> +<span class="normal">1346</span> +<span class="normal">1347</span> +<span class="normal">1348</span> +<span class="normal">1349</span> +<span class="normal">1350</span> +<span class="normal">1351</span> +<span class="normal">1352</span> +<span class="normal">1353</span> +<span class="normal">1354</span> +<span class="normal">1355</span> +<span class="normal">1356</span> +<span class="normal">1357</span> +<span class="normal">1358</span> +<span class="normal">1359</span> +<span class="normal">1360</span> +<span class="normal">1361</span> +<span class="normal">1362</span> +<span class="normal">1363</span> +<span class="normal">1364</span> +<span class="normal">1365</span> +<span class="normal">1366</span> +<span class="normal">1367</span> +<span class="normal">1368</span> +<span class="normal">1369</span> +<span class="normal">1370</span> +<span class="normal">1371</span> +<span class="normal">1372</span> +<span class="normal">1373</span> +<span class="normal">1374</span> +<span class="normal">1375</span> +<span class="normal">1376</span> +<span class="normal">1377</span> +<span class="normal">1378</span> +<span class="normal">1379</span> +<span class="normal">1380</span> +<span class="normal">1381</span> +<span class="normal">1382</span> +<span class="normal">1383</span> +<span class="normal">1384</span> +<span class="normal">1385</span> +<span class="normal">1386</span> +<span class="normal">1387</span> +<span class="normal">1388</span> +<span class="normal">1389</span> +<span class="normal">1390</span> +<span class="normal">1391</span> +<span class="normal">1392</span> +<span class="normal">1393</span> +<span class="normal">1394</span> +<span class="normal">1395</span> +<span class="normal">1396</span> +<span class="normal">1397</span> +<span class="normal">1398</span> +<span class="normal">1399</span> +<span class="normal">1400</span> +<span class="normal">1401</span> +<span class="normal">1402</span> +<span class="normal">1403</span> +<span class="normal">1404</span> +<span class="normal">1405</span> +<span class="normal">1406</span> +<span class="normal">1407</span> +<span class="normal">1408</span> +<span class="normal">1409</span> +<span class="normal">1410</span> +<span class="normal">1411</span> +<span class="normal">1412</span> +<span class="normal">1413</span> +<span class="normal">1414</span> +<span class="normal">1415</span> +<span class="normal">1416</span> +<span class="normal">1417</span> +<span class="normal">1418</span> +<span class="normal">1419</span> +<span class="normal">1420</span> +<span class="normal">1421</span> +<span class="normal">1422</span> +<span class="normal">1423</span> +<span class="normal">1424</span> +<span class="normal">1425</span> +<span class="normal">1426</span> +<span class="normal">1427</span> +<span class="normal">1428</span> +<span class="normal">1429</span> +<span class="normal">1430</span> +<span class="normal">1431</span> +<span class="normal">1432</span> +<span class="normal">1433</span> +<span class="normal">1434</span> +<span class="normal">1435</span> +<span class="normal">1436</span> +<span class="normal">1437</span> +<span class="normal">1438</span> +<span class="normal">1439</span> +<span class="normal">1440</span> +<span class="normal">1441</span> +<span class="normal">1442</span> +<span class="normal">1443</span> +<span class="normal">1444</span> +<span class="normal">1445</span> +<span class="normal">1446</span> +<span class="normal">1447</span> +<span class="normal">1448</span> +<span class="normal">1449</span> +<span class="normal">1450</span> +<span class="normal">1451</span> +<span class="normal">1452</span> +<span class="normal">1453</span> +<span class="normal">1454</span> +<span class="normal">1455</span> +<span class="normal">1456</span> +<span class="normal">1457</span> +<span class="normal">1458</span> +<span class="normal">1459</span> +<span class="normal">1460</span> +<span class="normal">1461</span> +<span class="normal">1462</span> +<span class="normal">1463</span> +<span class="normal">1464</span> +<span class="normal">1465</span> +<span class="normal">1466</span> +<span class="normal">1467</span> +<span class="normal">1468</span> +<span class="normal">1469</span> +<span class="normal">1470</span> +<span class="normal">1471</span> +<span class="normal">1472</span> +<span class="normal">1473</span> +<span class="normal">1474</span> +<span class="normal">1475</span> +<span class="normal">1476</span> +<span class="normal">1477</span> +<span class="normal">1478</span> +<span class="normal">1479</span> +<span class="normal">1480</span> +<span class="normal">1481</span> +<span class="normal">1482</span> +<span class="normal">1483</span> +<span class="normal">1484</span> +<span class="normal">1485</span> +<span class="normal">1486</span> +<span class="normal">1487</span> +<span class="normal">1488</span> +<span class="normal">1489</span> +<span class="normal">1490</span> +<span class="normal">1491</span> +<span class="normal">1492</span> +<span class="normal">1493</span> +<span class="normal">1494</span> +<span class="normal">1495</span> +<span class="normal">1496</span> +<span class="normal">1497</span> +<span class="normal">1498</span> +<span class="normal">1499</span> +<span class="normal">1500</span> +<span class="normal">1501</span> +<span class="normal">1502</span> +<span class="normal">1503</span> +<span class="normal">1504</span> +<span class="normal">1505</span> +<span class="normal">1506</span> +<span class="normal">1507</span> +<span class="normal">1508</span> +<span class="normal">1509</span> +<span class="normal">1510</span> +<span class="normal">1511</span> +<span class="normal">1512</span> +<span class="normal">1513</span> +<span class="normal">1514</span> +<span class="normal">1515</span> +<span class="normal">1516</span> +<span class="normal">1517</span> +<span class="normal">1518</span> +<span class="normal">1519</span> +<span class="normal">1520</span> +<span class="normal">1521</span> +<span class="normal">1522</span> +<span class="normal">1523</span> +<span class="normal">1524</span> +<span class="normal">1525</span> +<span class="normal">1526</span> +<span class="normal">1527</span> +<span class="normal">1528</span> +<span class="normal">1529</span> +<span class="normal">1530</span> +<span class="normal">1531</span> +<span class="normal">1532</span> +<span class="normal">1533</span> +<span class="normal">1534</span> +<span class="normal">1535</span> +<span class="normal">1536</span> +<span class="normal">1537</span> +<span class="normal">1538</span> +<span class="normal">1539</span> +<span class="normal">1540</span> +<span class="normal">1541</span> +<span class="normal">1542</span> +<span class="normal">1543</span> +<span class="normal">1544</span> +<span class="normal">1545</span> +<span class="normal">1546</span> +<span class="normal">1547</span> +<span class="normal">1548</span> +<span class="normal">1549</span> +<span class="normal">1550</span> +<span class="normal">1551</span> +<span class="normal">1552</span> +<span class="normal">1553</span> +<span class="normal">1554</span> +<span class="normal">1555</span> +<span class="normal">1556</span> +<span class="normal">1557</span> +<span class="normal">1558</span> +<span class="normal">1559</span> +<span class="normal">1560</span> +<span class="normal">1561</span> +<span class="normal">1562</span> +<span class="normal">1563</span> +<span class="normal">1564</span> +<span class="normal">1565</span> +<span class="normal">1566</span> +<span class="normal">1567</span> +<span class="normal">1568</span> +<span class="normal">1569</span> +<span class="normal">1570</span> +<span class="normal">1571</span> +<span class="normal">1572</span> +<span class="normal">1573</span> +<span class="normal">1574</span> +<span class="normal">1575</span> +<span class="normal">1576</span> +<span class="normal">1577</span> +<span class="normal">1578</span> +<span class="normal">1579</span> +<span class="normal">1580</span> +<span class="normal">1581</span> +<span class="normal">1582</span> +<span class="normal">1583</span> +<span class="normal">1584</span> +<span class="normal">1585</span> +<span class="normal">1586</span> +<span class="normal">1587</span> +<span class="normal">1588</span> +<span class="normal">1589</span> +<span class="normal">1590</span> +<span class="normal">1591</span> +<span class="normal">1592</span> +<span class="normal">1593</span> +<span class="normal">1594</span> +<span class="normal">1595</span> +<span class="normal">1596</span> +<span class="normal">1597</span> +<span class="normal">1598</span> +<span class="normal">1599</span> +<span class="normal">1600</span> +<span class="normal">1601</span> +<span class="normal">1602</span> +<span class="normal">1603</span> +<span class="normal">1604</span> +<span class="normal">1605</span> +<span class="normal">1606</span> +<span class="normal">1607</span> +<span class="normal">1608</span> +<span class="normal">1609</span> +<span class="normal">1610</span> +<span class="normal">1611</span> +<span class="normal">1612</span> +<span class="normal">1613</span> +<span class="normal">1614</span> +<span class="normal">1615</span> +<span class="normal">1616</span> +<span class="normal">1617</span> +<span class="normal">1618</span> +<span class="normal">1619</span> +<span class="normal">1620</span> +<span class="normal">1621</span> +<span class="normal">1622</span> +<span class="normal">1623</span> +<span class="normal">1624</span> +<span class="normal">1625</span> +<span class="normal">1626</span> +<span class="normal">1627</span> +<span class="normal">1628</span> +<span class="normal">1629</span> +<span class="normal">1630</span> +<span class="normal">1631</span> +<span class="normal">1632</span> +<span class="normal">1633</span> +<span class="normal">1634</span> +<span class="normal">1635</span> +<span class="normal">1636</span> +<span class="normal">1637</span> +<span class="normal">1638</span> +<span class="normal">1639</span> +<span class="normal">1640</span> +<span class="normal">1641</span> +<span class="normal">1642</span> +<span class="normal">1643</span> +<span class="normal">1644</span> +<span class="normal">1645</span> +<span class="normal">1646</span> +<span class="normal">1647</span> +<span class="normal">1648</span> +<span class="normal">1649</span> +<span class="normal">1650</span> +<span class="normal">1651</span> +<span class="normal">1652</span> +<span class="normal">1653</span> +<span class="normal">1654</span> +<span class="normal">1655</span> +<span class="normal">1656</span> +<span class="normal">1657</span> +<span class="normal">1658</span> +<span class="normal">1659</span> +<span class="normal">1660</span> +<span class="normal">1661</span> +<span class="normal">1662</span> +<span class="normal">1663</span> +<span class="normal">1664</span> +<span class="normal">1665</span> +<span class="normal">1666</span> +<span class="normal">1667</span> +<span class="normal">1668</span> +<span class="normal">1669</span> +<span class="normal">1670</span> +<span class="normal">1671</span> +<span class="normal">1672</span> +<span class="normal">1673</span> +<span class="normal">1674</span> +<span class="normal">1675</span> +<span class="normal">1676</span> +<span class="normal">1677</span> +<span class="normal">1678</span> +<span class="normal">1679</span> +<span class="normal">1680</span> +<span class="normal">1681</span> +<span class="normal">1682</span> +<span class="normal">1683</span> +<span class="normal">1684</span> +<span class="normal">1685</span> +<span class="normal">1686</span> +<span class="normal">1687</span> +<span class="normal">1688</span> +<span class="normal">1689</span> +<span class="normal">1690</span> +<span class="normal">1691</span> +<span class="normal">1692</span> +<span class="normal">1693</span> +<span class="normal">1694</span> +<span class="normal">1695</span> +<span class="normal">1696</span> +<span class="normal">1697</span> +<span class="normal">1698</span> +<span class="normal">1699</span> +<span class="normal">1700</span> +<span class="normal">1701</span> +<span class="normal">1702</span> +<span class="normal">1703</span> +<span class="normal">1704</span> +<span class="normal">1705</span> +<span class="normal">1706</span> +<span class="normal">1707</span> +<span class="normal">1708</span> +<span class="normal">1709</span> +<span class="normal">1710</span> +<span class="normal">1711</span> +<span class="normal">1712</span> +<span class="normal">1713</span> +<span class="normal">1714</span> +<span class="normal">1715</span> +<span class="normal">1716</span> +<span class="normal">1717</span> +<span class="normal">1718</span> +<span class="normal">1719</span> +<span class="normal">1720</span> +<span class="normal">1721</span> +<span class="normal">1722</span> +<span class="normal">1723</span> +<span class="normal">1724</span> +<span class="normal">1725</span> +<span class="normal">1726</span> +<span class="normal">1727</span> +<span class="normal">1728</span> +<span class="normal">1729</span> +<span class="normal">1730</span> +<span class="normal">1731</span> +<span class="normal">1732</span> +<span class="normal">1733</span> +<span class="normal">1734</span> +<span class="normal">1735</span> +<span class="normal">1736</span> +<span class="normal">1737</span> +<span class="normal">1738</span> +<span class="normal">1739</span> +<span class="normal">1740</span> +<span class="normal">1741</span> +<span class="normal">1742</span> +<span class="normal">1743</span> +<span class="normal">1744</span> +<span class="normal">1745</span> +<span class="normal">1746</span> +<span class="normal">1747</span> +<span class="normal">1748</span> +<span class="normal">1749</span> +<span class="normal">1750</span> +<span class="normal">1751</span> +<span class="normal">1752</span> +<span class="normal">1753</span> +<span class="normal">1754</span> +<span class="normal">1755</span> +<span class="normal">1756</span> +<span class="normal">1757</span> +<span class="normal">1758</span> +<span class="normal">1759</span> +<span class="normal">1760</span> +<span class="normal">1761</span> +<span class="normal">1762</span> +<span class="normal">1763</span> +<span class="normal">1764</span> +<span class="normal">1765</span> +<span class="normal">1766</span> +<span class="normal">1767</span> +<span class="normal">1768</span> +<span class="normal">1769</span> +<span class="normal">1770</span> +<span class="normal">1771</span> +<span class="normal">1772</span> +<span class="normal">1773</span> +<span class="normal">1774</span> +<span class="normal">1775</span> +<span class="normal">1776</span> +<span class="normal">1777</span> +<span class="normal">1778</span> +<span class="normal">1779</span> +<span class="normal">1780</span> +<span class="normal">1781</span> +<span class="normal">1782</span> +<span class="normal">1783</span> +<span class="normal">1784</span> +<span class="normal">1785</span> +<span class="normal">1786</span> +<span class="normal">1787</span> +<span class="normal">1788</span> +<span class="normal">1789</span> +<span class="normal">1790</span> +<span class="normal">1791</span> +<span class="normal">1792</span> +<span class="normal">1793</span> +<span class="normal">1794</span> +<span class="normal">1795</span> +<span class="normal">1796</span> +<span class="normal">1797</span> +<span class="normal">1798</span> +<span class="normal">1799</span> +<span class="normal">1800</span> +<span class="normal">1801</span> +<span class="normal">1802</span> +<span class="normal">1803</span> +<span class="normal">1804</span> +<span class="normal">1805</span> +<span class="normal">1806</span> +<span class="normal">1807</span> +<span class="normal">1808</span> +<span class="normal">1809</span> +<span class="normal">1810</span> +<span class="normal">1811</span> +<span class="normal">1812</span> +<span class="normal">1813</span> +<span class="normal">1814</span> +<span class="normal">1815</span> +<span class="normal">1816</span> +<span class="normal">1817</span> +<span class="normal">1818</span> +<span class="normal">1819</span> +<span class="normal">1820</span> +<span class="normal">1821</span> +<span class="normal">1822</span> +<span class="normal">1823</span> +<span class="normal">1824</span> +<span class="normal">1825</span> +<span class="normal">1826</span> +<span class="normal">1827</span> +<span class="normal">1828</span> +<span class="normal">1829</span> +<span class="normal">1830</span> +<span class="normal">1831</span> +<span class="normal">1832</span> +<span class="normal">1833</span> +<span class="normal">1834</span> +<span class="normal">1835</span> +<span class="normal">1836</span> +<span class="normal">1837</span> +<span class="normal">1838</span> +<span class="normal">1839</span> +<span class="normal">1840</span> +<span class="normal">1841</span> +<span class="normal">1842</span> +<span class="normal">1843</span> +<span class="normal">1844</span> +<span class="normal">1845</span> +<span class="normal">1846</span> +<span class="normal">1847</span> +<span class="normal">1848</span> +<span class="normal">1849</span> +<span class="normal">1850</span> +<span class="normal">1851</span> +<span class="normal">1852</span> +<span class="normal">1853</span> +<span class="normal">1854</span> +<span class="normal">1855</span> +<span class="normal">1856</span> +<span class="normal">1857</span> +<span class="normal">1858</span> +<span class="normal">1859</span> +<span class="normal">1860</span> +<span class="normal">1861</span> +<span class="normal">1862</span> +<span class="normal">1863</span> +<span class="normal">1864</span> +<span class="normal">1865</span> +<span class="normal">1866</span> +<span class="normal">1867</span> +<span class="normal">1868</span> +<span class="normal">1869</span> +<span class="normal">1870</span> +<span class="normal">1871</span> +<span class="normal">1872</span> +<span class="normal">1873</span> +<span class="normal">1874</span> +<span class="normal">1875</span> +<span class="normal">1876</span> +<span class="normal">1877</span> +<span class="normal">1878</span> +<span class="normal">1879</span> +<span class="normal">1880</span> +<span class="normal">1881</span> +<span class="normal">1882</span> +<span class="normal">1883</span> +<span class="normal">1884</span> +<span class="normal">1885</span> +<span class="normal">1886</span> +<span class="normal">1887</span> +<span class="normal">1888</span> +<span class="normal">1889</span> +<span class="normal">1890</span> +<span class="normal">1891</span> +<span class="normal">1892</span> +<span class="normal">1893</span> +<span class="normal">1894</span> +<span class="normal">1895</span> +<span class="normal">1896</span> +<span class="normal">1897</span> +<span class="normal">1898</span> +<span class="normal">1899</span> +<span class="normal">1900</span> +<span class="normal">1901</span> +<span class="normal">1902</span> +<span class="normal">1903</span> +<span class="normal">1904</span> +<span class="normal">1905</span> +<span class="normal">1906</span> +<span class="normal">1907</span> +<span class="normal">1908</span> +<span class="normal">1909</span> +<span class="normal">1910</span> +<span class="normal">1911</span> +<span class="normal">1912</span> +<span class="normal">1913</span> +<span class="normal">1914</span> +<span class="normal">1915</span> +<span class="normal">1916</span> +<span class="normal">1917</span> +<span class="normal">1918</span> +<span class="normal">1919</span> +<span class="normal">1920</span> +<span class="normal">1921</span> +<span class="normal">1922</span> +<span class="normal">1923</span> +<span class="normal">1924</span> +<span class="normal">1925</span> +<span class="normal">1926</span> +<span class="normal">1927</span> +<span class="normal">1928</span> +<span class="normal">1929</span> +<span class="normal">1930</span> +<span class="normal">1931</span> +<span class="normal">1932</span> +<span class="normal">1933</span> +<span class="normal">1934</span> +<span class="normal">1935</span> +<span class="normal">1936</span> +<span class="normal">1937</span> +<span class="normal">1938</span> +<span class="normal">1939</span> +<span class="normal">1940</span> +<span class="normal">1941</span> +<span class="normal">1942</span> +<span class="normal">1943</span> +<span class="normal">1944</span> +<span class="normal">1945</span> +<span class="normal">1946</span> +<span class="normal">1947</span> +<span class="normal">1948</span> +<span class="normal">1949</span> +<span class="normal">1950</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><ctype.h></span><span class="error2"><--- Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span><span class="error2"><--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><errno.h></span><span class="error2"><--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-19" name="line-19"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-24" name="line-24"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-25" name="line-25"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-26" name="line-26"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-enums.h"</span> +<a id="line-27" name="line-27"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-manager.h"</span> +<a id="line-28" name="line-28"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"utility.h"</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">PROP_STATUS</span><span class="p">,</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PROP_DISPLAY</span><span class="p">,</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">PROP_NUMBER_MODE</span><span class="p">,</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">PROP_ACCURACY</span><span class="p">,</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PROP_SHOW_TRAILING_ZEROES</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">PROP_NUMBER_FORMAT</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">PROP_BASE</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">PROP_WORD_SIZE</span><span class="p">,</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">PROP_ANGLE_UNITS</span><span class="p">,</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">PROP_SOURCE_CURRENCY</span><span class="p">,</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">PROP_TARGET_CURRENCY</span><span class="p">,</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">PROP_SOURCE_UNITS</span><span class="p">,</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">PROP_TARGET_UNITS</span><span class="p">,</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">PROP_SERIALIZER</span> +<a id="line-48" name="line-48"></a><span class="p">};</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="k">static</span><span class="w"> </span><span class="n">GType</span><span class="w"> </span><span class="n">number_mode_type</span><span class="p">,</span><span class="w"> </span><span class="n">number_format_type</span><span class="p">,</span><span class="w"> </span><span class="n">angle_unit_type</span><span class="p">;</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="cm">/* Expression mode state */</span> +<a id="line-53" name="line-53"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Previously calculated answer */</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">expression</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Expression entered by user */</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Start and end characters for ans variable in expression */</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">cursor</span><span class="p">;</span><span class="w"> </span><span class="cm">/* ??? */</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">NumberMode</span><span class="w"> </span><span class="n">number_mode</span><span class="p">;</span><span class="w"> </span><span class="cm">/* ??? */</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_super_minus</span><span class="p">;</span><span class="w"> </span><span class="cm">/* TRUE if entering minus can generate a superscript minus */</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">entered_multiply</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Last insert was a multiply character */</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">status</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Equation status */</span> +<a id="line-62" name="line-62"></a><span class="p">}</span><span class="w"> </span><span class="n">MathEquationState</span><span class="p">;</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathEquationPrivate</span> +<a id="line-65" name="line-65"></a><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">GtkTextTag</span><span class="w"> </span><span class="o">*</span><span class="n">ans_tag</span><span class="p">;</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">word_size</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Word size in bits */</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">angle_units</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Units for trigonometric functions */</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">source_currency</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">target_currency</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">source_units</span><span class="p">;</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">target_units</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">NumberMode</span><span class="w"> </span><span class="n">number_mode</span><span class="p">;</span><span class="w"> </span><span class="cm">/* ??? */</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">can_super_minus</span><span class="p">;</span><span class="w"> </span><span class="cm">/* TRUE if entering minus can generate a superscript minus */</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="mi">16</span><span class="p">];</span><span class="w"> </span><span class="cm">/* Localized digits */</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">GtkTextMark</span><span class="w"> </span><span class="o">*</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">ans_end</span><span class="p">;</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="n">state</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Equation state */</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">undo_stack</span><span class="p">;</span><span class="w"> </span><span class="cm">/* History of expression mode states */</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">redo_stack</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_undo_operation</span><span class="p">;</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_reformat</span><span class="p">;</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_delete</span><span class="p">;</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_solve</span><span class="p">;</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">;</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">GAsyncQueue</span><span class="w"> </span><span class="o">*</span><span class="n">queue</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="p">};</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">number_result</span><span class="p">;</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text_result</span><span class="p">;</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="p">;</span> +<a id="line-102" name="line-102"></a><span class="p">}</span><span class="w"> </span><span class="n">SolveData</span><span class="p">;</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathEquation</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_TEXT_BUFFER</span><span class="p">);</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span> +<a id="line-107" name="line-107"></a><span class="nf">math_equation_new</span><span class="p">()</span> +<a id="line-108" name="line-108"></a><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_equation_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="p">}</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span> +<a id="line-113" name="line-113"></a><span class="nf">math_equation_get_variables</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-114" name="line-114"></a><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variables</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="p">}</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-119" name="line-119"></a><span class="nf">get_ans_offsets</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="p">)</span> +<a id="line-120" name="line-120"></a><span class="p">{</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">}</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-135" name="line-135"></a><span class="nf">reformat_ans</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">orig_ans_text</span><span class="p">;</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">ans_text</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">orig_ans_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_get_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">ans_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">orig_ans_text</span><span class="p">,</span><span class="w"> </span><span class="n">ans_text</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">start</span><span class="p">;</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="o">&</span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gtk_text_buffer_insert_with_tags</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">,</span><span class="w"> </span><span class="n">ans_text</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_tag</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="cm">/* There seems to be a bug in the marks as they alternate being the correct and incorrect ways. Reset them */</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">start</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">gtk_text_buffer_move_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">gtk_text_buffer_move_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">}</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">orig_ans_text</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">ans_text</span><span class="p">);</span> +<a id="line-170" name="line-170"></a><span class="p">}</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-173" name="line-173"></a><span class="nf">count_digits</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span> +<a id="line-174" name="line-174"></a><span class="p">{</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">read_iter</span><span class="p">;</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-177" name="line-177"></a> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">text</span><span class="p">;</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">read_iter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">)))</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">count</span><span class="p">;</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">);</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="cm">/* Allow a thousands separator between digits follow a digit */</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mp_serializer_get_thousands_separator</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">)))</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">count</span><span class="p">;</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">}</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">count</span><span class="o">++</span><span class="p">;</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="p">}</span> +<a id="line-194" name="line-194"></a> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">count</span><span class="p">;</span> +<a id="line-196" name="line-196"></a><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-199" name="line-199"></a><span class="nf">reformat_separators</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-200" name="line-200"></a><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">read_iter</span><span class="p">;</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="p">;</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">offset</span><span class="p">,</span><span class="w"> </span><span class="n">digit_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">in_number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">in_radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">last_is_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-205" name="line-205"></a> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">get_ans_offsets</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">read_iter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">),</span><span class="w"> </span><span class="n">offset</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">expect_tsep</span><span class="p">;</span> +<a id="line-214" name="line-214"></a> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="cm">/* See what digit this character is */</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">);</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">expect_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_base</span><span class="p">(</span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">&&</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">in_number</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">in_radix</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">last_is_tsep</span><span class="w"> </span><span class="o">&&</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">digit_offset</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">digit_offset</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="n">mp_serializer_get_thousands_separator_count</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">last_is_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="cm">/* Don't mess with ans */</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">ans_end</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">in_number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">in_radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">}</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">c</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">in_number</span><span class="p">)</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">digit_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">count_digits</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">read_iter</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">in_number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="cm">/* Expected a thousands separator between these digits - insert it */</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">expect_tsep</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">7</span><span class="p">];</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">offset</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_to_utf8</span><span class="p">(</span><span class="n">mp_serializer_get_thousands_separator</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">len</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">gtk_text_buffer_insert</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">offset</span><span class="o">++</span><span class="p">;</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">last_is_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">}</span> +<a id="line-247" name="line-247"></a> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">digit_offset</span><span class="o">--</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="p">}</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mp_serializer_get_radix</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">in_number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">in_radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">}</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mp_serializer_get_thousands_separator</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="cm">/* Didn't expect thousands separator - delete it */</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">expect_tsep</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">in_number</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">offset</span><span class="p">);</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">offset</span><span class="o">--</span><span class="p">;</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="p">}</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="k">else</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">last_is_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">in_number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">in_radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">}</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="p">}</span> +<a id="line-269" name="line-269"></a> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-271" name="line-271"></a> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-274" name="line-274"></a><span class="p">}</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-277" name="line-277"></a><span class="nf">reformat_display</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-278" name="line-278"></a><span class="p">{</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="cm">/* Change ans */</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">reformat_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-281" name="line-281"></a> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="cm">/* Add/remove thousands separators */</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">reformat_separators</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"display-changed"</span><span class="p">);</span> +<a id="line-286" name="line-286"></a><span class="p">}</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="k">static</span><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span> +<a id="line-289" name="line-289"></a><span class="nf">get_current_state</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-290" name="line-290"></a><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">;</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MathEquationState</span><span class="p">));</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="p">{</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">}</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">ans</span><span class="p">);</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">expression</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ans_start</span><span class="p">;</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">ans_end</span><span class="p">;</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">g_object_get</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"cursor-position"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">cursor</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="p">;</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">can_super_minus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">can_super_minus</span><span class="p">;</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">entered_multiply</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">entered_multiply</span><span class="p">;</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="p">);</span> +<a id="line-315" name="line-315"></a> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="p">}</span> +<a id="line-318" name="line-318"></a> +<a id="line-319" name="line-319"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-320" name="line-320"></a><span class="nf">free_state</span><span class="p">(</span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">)</span> +<a id="line-321" name="line-321"></a><span class="p">{</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">expression</span><span class="p">);</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">status</span><span class="p">);</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-325" name="line-325"></a><span class="p">}</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-328" name="line-328"></a><span class="nf">math_equation_push_undo_stack</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-329" name="line-329"></a><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">link</span><span class="p">;</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">;</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="p">)</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-337" name="line-337"></a> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="cm">/* Can't redo anymore */</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="p">;</span><span class="w"> </span><span class="n">link</span><span class="p">;</span><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">free_state</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="p">}</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="p">);</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_state</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="p">}</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-351" name="line-351"></a><span class="nf">clear_ans</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">remove_tag</span><span class="p">)</span> +<a id="line-352" name="line-352"></a><span class="p">{</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-355" name="line-355"></a> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">remove_tag</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">gtk_text_buffer_remove_tag</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_tag</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="p">}</span> +<a id="line-363" name="line-363"></a> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-368" name="line-368"></a><span class="p">}</span> +<a id="line-369" name="line-369"></a> +<a id="line-370" name="line-370"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-371" name="line-371"></a><span class="nf">apply_state</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">)</span> +<a id="line-372" name="line-372"></a><span class="p">{</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">cursor</span><span class="p">;</span> +<a id="line-374" name="line-374"></a> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="cm">/* Disable undo detection */</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">);</span> +<a id="line-379" name="line-379"></a> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">gtk_text_buffer_set_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">cursor</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">cursor</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">gtk_text_buffer_place_cursor</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">cursor</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">ans_start</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">ans_start</span><span class="p">);</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_create_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_create_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">gtk_text_buffer_apply_tag</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_tag</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="p">}</span> +<a id="line-393" name="line-393"></a> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">number_mode</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">can_super_minus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">can_super_minus</span><span class="p">;</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">entered_multiply</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">entered_multiply</span><span class="p">;</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">status</span><span class="p">);</span> +<a id="line-398" name="line-398"></a> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_undo_operation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-400" name="line-400"></a><span class="p">}</span> +<a id="line-401" name="line-401"></a> +<a id="line-402" name="line-402"></a><span class="kt">void</span> +<a id="line-403" name="line-403"></a><span class="nf">math_equation_copy</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-404" name="line-404"></a><span class="p">{</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-407" name="line-407"></a> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-409" name="line-409"></a> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_text_buffer_get_selection_bounds</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">))</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_bounds</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_get_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">gtk_clipboard_set_text</span><span class="p">(</span><span class="n">gtk_clipboard_get</span><span class="p">(</span><span class="n">GDK_NONE</span><span class="p">),</span><span class="w"> </span><span class="n">g_str_to_ascii</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">"C"</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="p">}</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-419" name="line-419"></a><span class="nf">on_paste</span><span class="p">(</span><span class="n">GtkClipboard</span><span class="w"> </span><span class="o">*</span><span class="n">clipboard</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-420" name="line-420"></a><span class="p">{</span> +<a id="line-421" name="line-421"></a><span class="hll"><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'equation' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'equation' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="p">}</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="kt">void</span> +<a id="line-427" name="line-427"></a><span class="nf">math_equation_paste</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-428" name="line-428"></a><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">gtk_clipboard_request_text</span><span class="p">(</span><span class="n">gtk_clipboard_get</span><span class="p">(</span><span class="n">GDK_NONE</span><span class="p">),</span><span class="w"> </span><span class="n">on_paste</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-431" name="line-431"></a><span class="p">}</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="kt">void</span> +<a id="line-434" name="line-434"></a><span class="nf">math_equation_undo</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-435" name="line-435"></a><span class="p">{</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">link</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">;</span> +<a id="line-438" name="line-438"></a> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-440" name="line-440"></a> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="cm">/* Error shown when trying to undo with no undo history */</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"No undo history"</span><span class="p">));</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="p">}</span> +<a id="line-447" name="line-447"></a> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">;</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove_link</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">link</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">link</span><span class="p">);</span> +<a id="line-452" name="line-452"></a> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">get_current_state</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-454" name="line-454"></a> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">apply_state</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">free_state</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-457" name="line-457"></a><span class="p">}</span> +<a id="line-458" name="line-458"></a> +<a id="line-459" name="line-459"></a><span class="kt">void</span> +<a id="line-460" name="line-460"></a><span class="nf">math_equation_redo</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-461" name="line-461"></a><span class="p">{</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">link</span><span class="p">;</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">;</span> +<a id="line-464" name="line-464"></a> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="cm">/* Error shown when trying to redo with no redo history */</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"No redo history"</span><span class="p">));</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="p">}</span> +<a id="line-473" name="line-473"></a> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">link</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="p">;</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_remove_link</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">redo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">link</span><span class="p">);</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">link</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">link</span><span class="p">);</span> +<a id="line-478" name="line-478"></a> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_prepend</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">undo_stack</span><span class="p">,</span><span class="w"> </span><span class="n">get_current_state</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">apply_state</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">free_state</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-483" name="line-483"></a><span class="p">}</span> +<a id="line-484" name="line-484"></a> +<a id="line-485" name="line-485"></a><span class="n">gunichar</span> +<a id="line-486" name="line-486"></a><span class="nf">math_equation_get_digit_text</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">digit</span><span class="p">)</span> +<a id="line-487" name="line-487"></a><span class="p">{</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="sc">'?'</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">digit</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="sc">'?'</span><span class="p">);</span> +<a id="line-490" name="line-490"></a> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">digits</span><span class="p">[</span><span class="n">digit</span><span class="p">];</span> +<a id="line-492" name="line-492"></a><span class="p">}</span> +<a id="line-493" name="line-493"></a> +<a id="line-494" name="line-494"></a><span class="kt">void</span> +<a id="line-495" name="line-495"></a><span class="nf">math_equation_set_accuracy</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">accuracy</span><span class="p">)</span> +<a id="line-496" name="line-496"></a><span class="p">{</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-498" name="line-498"></a> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_serializer_get_trailing_digits</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">accuracy</span><span class="p">)</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">mp_serializer_set_trailing_digits</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">accuracy</span><span class="p">);</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">reformat_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"accuracy"</span><span class="p">);</span> +<a id="line-504" name="line-504"></a><span class="p">}</span> +<a id="line-505" name="line-505"></a> +<a id="line-506" name="line-506"></a><span class="n">gint</span> +<a id="line-507" name="line-507"></a><span class="nf">math_equation_get_accuracy</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-508" name="line-508"></a><span class="p">{</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-510" name="line-510"></a> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_serializer_get_trailing_digits</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-512" name="line-512"></a><span class="p">}</span> +<a id="line-513" name="line-513"></a> +<a id="line-514" name="line-514"></a><span class="kt">void</span> +<a id="line-515" name="line-515"></a><span class="nf">math_equation_set_show_thousands_separators</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-516" name="line-516"></a><span class="p">{</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">mp_serializer_set_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">reformat_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"show-thousands-separators"</span><span class="p">);</span> +<a id="line-525" name="line-525"></a><span class="p">}</span> +<a id="line-526" name="line-526"></a> +<a id="line-527" name="line-527"></a><span class="n">gboolean</span> +<a id="line-528" name="line-528"></a><span class="nf">math_equation_get_show_thousands_separators</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-529" name="line-529"></a><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-532" name="line-532"></a><span class="p">}</span> +<a id="line-533" name="line-533"></a> +<a id="line-534" name="line-534"></a><span class="kt">void</span> +<a id="line-535" name="line-535"></a><span class="nf">math_equation_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-536" name="line-536"></a><span class="p">{</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-538" name="line-538"></a> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_serializer_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-541" name="line-541"></a> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">mp_serializer_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">reformat_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"show-trailing-zeroes"</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="p">}</span> +<a id="line-546" name="line-546"></a> +<a id="line-547" name="line-547"></a><span class="n">gboolean</span> +<a id="line-548" name="line-548"></a><span class="nf">math_equation_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-549" name="line-549"></a><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_serializer_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="p">}</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="kt">void</span> +<a id="line-555" name="line-555"></a><span class="nf">math_equation_set_number_format</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">)</span> +<a id="line-556" name="line-556"></a><span class="p">{</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-558" name="line-558"></a> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_serializer_get_number_format</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">format</span><span class="p">)</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-561" name="line-561"></a> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">mp_serializer_set_number_format</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">reformat_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"number-format"</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="p">}</span> +<a id="line-566" name="line-566"></a> +<a id="line-567" name="line-567"></a><span class="n">MpDisplayFormat</span> +<a id="line-568" name="line-568"></a><span class="nf">math_equation_get_number_format</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-569" name="line-569"></a><span class="p">{</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_serializer_get_number_format</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-572" name="line-572"></a><span class="p">}</span> +<a id="line-573" name="line-573"></a> +<a id="line-574" name="line-574"></a><span class="kt">void</span> +<a id="line-575" name="line-575"></a><span class="nf">math_equation_set_base</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-576" name="line-576"></a><span class="p">{</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-578" name="line-578"></a> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_serializer_get_base</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-581" name="line-581"></a> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">mp_serializer_set_base</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">reformat_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"base"</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="p">}</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="n">gint</span> +<a id="line-588" name="line-588"></a><span class="nf">math_equation_get_base</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-589" name="line-589"></a><span class="p">{</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_serializer_get_base</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="p">}</span> +<a id="line-593" name="line-593"></a> +<a id="line-594" name="line-594"></a><span class="kt">void</span> +<a id="line-595" name="line-595"></a><span class="nf">math_equation_set_word_size</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">word_size</span><span class="p">)</span> +<a id="line-596" name="line-596"></a><span class="p">{</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-598" name="line-598"></a> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">word_size</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">word_size</span><span class="p">)</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-601" name="line-601"></a> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">word_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">word_size</span><span class="p">;</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"word-size"</span><span class="p">);</span> +<a id="line-604" name="line-604"></a><span class="p">}</span> +<a id="line-605" name="line-605"></a> +<a id="line-606" name="line-606"></a><span class="n">gint</span> +<a id="line-607" name="line-607"></a><span class="nf">math_equation_get_word_size</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-608" name="line-608"></a><span class="p">{</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">);</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">word_size</span><span class="p">;</span> +<a id="line-611" name="line-611"></a><span class="p">}</span> +<a id="line-612" name="line-612"></a> +<a id="line-613" name="line-613"></a><span class="kt">void</span> +<a id="line-614" name="line-614"></a><span class="nf">math_equation_set_angle_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">angle_units</span><span class="p">)</span> +<a id="line-615" name="line-615"></a><span class="p">{</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">angle_units</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">angle_units</span><span class="p">)</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-620" name="line-620"></a> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">angle_units</span><span class="p">;</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"angle-units"</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="p">}</span> +<a id="line-624" name="line-624"></a> +<a id="line-625" name="line-625"></a><span class="n">MPAngleUnit</span> +<a id="line-626" name="line-626"></a><span class="nf">math_equation_get_angle_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-627" name="line-627"></a><span class="p">{</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">);</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">angle_units</span><span class="p">;</span> +<a id="line-630" name="line-630"></a><span class="p">}</span> +<a id="line-631" name="line-631"></a> +<a id="line-632" name="line-632"></a><span class="kt">void</span> +<a id="line-633" name="line-633"></a><span class="nf">math_equation_set_source_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-634" name="line-634"></a><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-637" name="line-637"></a> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_currency</span><span class="p">,</span><span class="w"> </span><span class="n">currency</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_currency</span><span class="p">);</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">currency</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"source-currency"</span><span class="p">,</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">math_equation_get_source_currency</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-644" name="line-644"></a><span class="p">}</span> +<a id="line-645" name="line-645"></a> +<a id="line-646" name="line-646"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-647" name="line-647"></a><span class="nf">math_equation_get_source_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-648" name="line-648"></a><span class="p">{</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_currency</span><span class="p">;</span> +<a id="line-651" name="line-651"></a><span class="p">}</span> +<a id="line-652" name="line-652"></a> +<a id="line-653" name="line-653"></a><span class="kt">void</span> +<a id="line-654" name="line-654"></a><span class="nf">math_equation_set_target_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-655" name="line-655"></a><span class="p">{</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-658" name="line-658"></a> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_currency</span><span class="p">,</span><span class="w"> </span><span class="n">currency</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_currency</span><span class="p">);</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">currency</span><span class="p">);</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"target-currency"</span><span class="p">,</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">math_equation_get_target_currency</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-665" name="line-665"></a><span class="p">}</span> +<a id="line-666" name="line-666"></a> +<a id="line-667" name="line-667"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-668" name="line-668"></a><span class="nf">math_equation_get_target_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-669" name="line-669"></a><span class="p">{</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_currency</span><span class="p">;</span> +<a id="line-672" name="line-672"></a><span class="p">}</span> +<a id="line-673" name="line-673"></a> +<a id="line-674" name="line-674"></a><span class="kt">void</span> +<a id="line-675" name="line-675"></a><span class="nf">math_equation_set_source_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">units</span><span class="p">)</span> +<a id="line-676" name="line-676"></a><span class="p">{</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">units</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-679" name="line-679"></a> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_units</span><span class="p">,</span><span class="w"> </span><span class="n">units</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-682" name="line-682"></a> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_units</span><span class="p">);</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">units</span><span class="p">);</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"source-units"</span><span class="p">,</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">math_equation_get_source_units</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-687" name="line-687"></a><span class="p">}</span> +<a id="line-688" name="line-688"></a> +<a id="line-689" name="line-689"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-690" name="line-690"></a><span class="nf">math_equation_get_source_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-691" name="line-691"></a><span class="p">{</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_units</span><span class="p">;</span> +<a id="line-694" name="line-694"></a><span class="p">}</span> +<a id="line-695" name="line-695"></a> +<a id="line-696" name="line-696"></a><span class="kt">void</span> +<a id="line-697" name="line-697"></a><span class="nf">math_equation_set_target_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">units</span><span class="p">)</span> +<a id="line-698" name="line-698"></a><span class="p">{</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">units</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-701" name="line-701"></a> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_units</span><span class="p">,</span><span class="w"> </span><span class="n">units</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-704" name="line-704"></a> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_units</span><span class="p">);</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">units</span><span class="p">);</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">g_settings_set_string</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"target-units"</span><span class="p">,</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">math_equation_get_target_units</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-709" name="line-709"></a><span class="p">}</span> +<a id="line-710" name="line-710"></a> +<a id="line-711" name="line-711"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-712" name="line-712"></a><span class="nf">math_equation_get_target_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-713" name="line-713"></a><span class="p">{</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_units</span><span class="p">;</span> +<a id="line-716" name="line-716"></a><span class="p">}</span> +<a id="line-717" name="line-717"></a> +<a id="line-718" name="line-718"></a><span class="kt">void</span> +<a id="line-719" name="line-719"></a><span class="nf">math_equation_set_status</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">status</span><span class="p">)</span> +<a id="line-720" name="line-720"></a><span class="p">{</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">status</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-723" name="line-723"></a> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="p">,</span><span class="w"> </span><span class="n">status</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-726" name="line-726"></a> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="p">);</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">status</span><span class="p">);</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"status"</span><span class="p">);</span> +<a id="line-730" name="line-730"></a><span class="p">}</span> +<a id="line-731" name="line-731"></a> +<a id="line-732" name="line-732"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-733" name="line-733"></a><span class="nf">math_equation_get_status</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-734" name="line-734"></a><span class="p">{</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="p">;</span> +<a id="line-737" name="line-737"></a><span class="p">}</span> +<a id="line-738" name="line-738"></a> +<a id="line-739" name="line-739"></a><span class="n">gboolean</span> +<a id="line-740" name="line-740"></a><span class="nf">math_equation_is_empty</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-741" name="line-741"></a><span class="p">{</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_text_buffer_get_char_count</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-744" name="line-744"></a><span class="p">}</span> +<a id="line-745" name="line-745"></a> +<a id="line-746" name="line-746"></a><span class="n">gboolean</span> +<a id="line-747" name="line-747"></a><span class="nf">math_equation_is_result</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-748" name="line-748"></a><span class="p">{</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-751" name="line-751"></a> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-753" name="line-753"></a> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_equation</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">"ans"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-757" name="line-757"></a> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-759" name="line-759"></a><span class="p">}</span> +<a id="line-760" name="line-760"></a> +<a id="line-761" name="line-761"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-762" name="line-762"></a><span class="nf">math_equation_get_display</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-763" name="line-763"></a><span class="p">{</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-765" name="line-765"></a> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-767" name="line-767"></a> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_bounds</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_text_buffer_get_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-770" name="line-770"></a><span class="p">}</span> +<a id="line-771" name="line-771"></a> +<a id="line-772" name="line-772"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-773" name="line-773"></a><span class="nf">math_equation_get_equation</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-774" name="line-774"></a><span class="p">{</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">eq_text</span><span class="p">;</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">offset</span><span class="p">;</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">read_iter</span><span class="p">;</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">last_is_digit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-780" name="line-780"></a> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-782" name="line-782"></a> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_display</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">eq_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="p">(</span><span class="n">strlen</span><span class="p">(</span><span class="n">text</span><span class="p">));</span> +<a id="line-785" name="line-785"></a> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">get_ans_offsets</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-788" name="line-788"></a> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">read_iter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">),</span><span class="w"> </span><span class="n">offset</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">is_digit</span><span class="p">,</span><span class="w"> </span><span class="n">next_is_digit</span><span class="p">;</span> +<a id="line-792" name="line-792"></a> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">);</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">is_digit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">c</span><span class="p">);</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">next_is_digit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">g_utf8_next_char</span><span class="p">(</span><span class="n">read_iter</span><span class="p">)));</span> +<a id="line-796" name="line-796"></a> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="cm">/* Replace ans text with variable */</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">ans_start</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">eq_text</span><span class="p">,</span><span class="w"> </span><span class="s">"ans"</span><span class="p">);</span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">read_iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_offset_to_pointer</span><span class="p">(</span><span class="n">read_iter</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">ans_end</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="n">is_digit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="p">}</span> +<a id="line-805" name="line-805"></a> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="cm">/* Ignore thousands separators */</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mp_serializer_get_thousands_separator</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">last_is_digit</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">next_is_digit</span><span class="p">)</span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="p">;</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="cm">/* Substitute radix character */</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mp_serializer_get_radix</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">last_is_digit</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">next_is_digit</span><span class="p">))</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="p">(</span><span class="n">eq_text</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="k">else</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="p">(</span><span class="n">eq_text</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-814" name="line-814"></a> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">last_is_digit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">is_digit</span><span class="p">;</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="p">}</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-818" name="line-818"></a> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">eq_text</span><span class="o">-></span><span class="n">str</span><span class="p">;</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">eq_text</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-821" name="line-821"></a> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">text</span><span class="p">;</span> +<a id="line-823" name="line-823"></a><span class="p">}</span> +<a id="line-824" name="line-824"></a> +<a id="line-825" name="line-825"></a><span class="n">gboolean</span> +<a id="line-826" name="line-826"></a><span class="nf">math_equation_get_number</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-827" name="line-827"></a><span class="p">{</span> +<a id="line-828" name="line-828"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'text' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'text' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-830" name="line-830"></a> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">z</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-833" name="line-833"></a> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_is_result</span><span class="p">(</span><span class="n">equation</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">math_equation_get_answer</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="p">}</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_equation</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">!</span><span class="n">mp_serializer_from_string</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-841" name="line-841"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="p">}</span> +<a id="line-844" name="line-844"></a><span class="p">}</span> +<a id="line-845" name="line-845"></a> +<a id="line-846" name="line-846"></a><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span> +<a id="line-847" name="line-847"></a><span class="nf">math_equation_get_serializer</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-848" name="line-848"></a><span class="p">{</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">;</span> +<a id="line-851" name="line-851"></a><span class="p">}</span> +<a id="line-852" name="line-852"></a> +<a id="line-853" name="line-853"></a><span class="kt">void</span> +<a id="line-854" name="line-854"></a><span class="nf">math_equation_set_number_mode</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NumberMode</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-855" name="line-855"></a><span class="p">{</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-857" name="line-857"></a> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mode</span><span class="p">)</span> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-860" name="line-860"></a> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">can_super_minus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">;</span> +<a id="line-862" name="line-862"></a> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"number-mode"</span><span class="p">);</span> +<a id="line-865" name="line-865"></a><span class="p">}</span> +<a id="line-866" name="line-866"></a> +<a id="line-867" name="line-867"></a><span class="n">NumberMode</span> +<a id="line-868" name="line-868"></a><span class="nf">math_equation_get_number_mode</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-869" name="line-869"></a><span class="p">{</span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="p">;</span> +<a id="line-872" name="line-872"></a><span class="p">}</span> +<a id="line-873" name="line-873"></a> +<a id="line-874" name="line-874"></a><span class="n">gboolean</span> +<a id="line-875" name="line-875"></a><span class="nf">math_equation_in_solve</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-876" name="line-876"></a><span class="p">{</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="p">;</span> +<a id="line-879" name="line-879"></a><span class="p">}</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></a><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span> +<a id="line-882" name="line-882"></a><span class="nf">math_equation_get_answer</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-883" name="line-883"></a><span class="p">{</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">;</span> +<a id="line-886" name="line-886"></a><span class="p">}</span> +<a id="line-887" name="line-887"></a> +<a id="line-888" name="line-888"></a><span class="kt">void</span> +<a id="line-889" name="line-889"></a><span class="nf">math_equation_store</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-890" name="line-890"></a><span class="p">{</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-892" name="line-892"></a> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-895" name="line-895"></a> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">))</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"No sane value to store"</span><span class="p">));</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="k">else</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">math_variables_set</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-901" name="line-901"></a><span class="p">}</span> +<a id="line-902" name="line-902"></a> +<a id="line-903" name="line-903"></a><span class="kt">void</span> +<a id="line-904" name="line-904"></a><span class="nf">math_equation_recall</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-905" name="line-905"></a><span class="p">{</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-909" name="line-909"></a><span class="p">}</span> +<a id="line-910" name="line-910"></a> +<a id="line-911" name="line-911"></a><span class="kt">void</span> +<a id="line-912" name="line-912"></a><span class="nf">math_equation_set</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span> +<a id="line-913" name="line-913"></a><span class="p">{</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">text</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">gtk_text_buffer_set_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-918" name="line-918"></a><span class="p">}</span> +<a id="line-919" name="line-919"></a> +<a id="line-920" name="line-920"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-921" name="line-921"></a><span class="nf">math_equation_set_with_history</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span> +<a id="line-922" name="line-922"></a><span class="p">{</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">;</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-925" name="line-925"></a> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">math_equation_set</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-928" name="line-928"></a> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="cm">/* Notify history */</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_state</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"history"</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-932" name="line-932"></a> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="n">free_state</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-935" name="line-935"></a><span class="p">}</span> +<a id="line-936" name="line-936"></a> +<a id="line-937" name="line-937"></a><span class="kt">void</span> +<a id="line-938" name="line-938"></a><span class="nf">math_equation_set_number</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-939" name="line-939"></a><span class="p">{</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="n">MathEquationState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">;</span> +<a id="line-943" name="line-943"></a> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-946" name="line-946"></a> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="cm">/* Notify history */</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_current_state</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"history"</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-950" name="line-950"></a> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="cm">/* Show the number in the user chosen format */</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="n">gtk_text_buffer_set_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">);</span> +<a id="line-955" name="line-955"></a> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="cm">/* Mark this text as the answer variable */</span> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_bounds</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_create_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_create_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">gtk_text_buffer_apply_tag</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_tag</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-962" name="line-962"></a> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"display"</span><span class="p">);</span> +<a id="line-964" name="line-964"></a> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">free_state</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-967" name="line-967"></a><span class="p">}</span> +<a id="line-968" name="line-968"></a> +<a id="line-969" name="line-969"></a><span class="kt">void</span> +<a id="line-970" name="line-970"></a><span class="nf">math_equation_insert</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">)</span> +<a id="line-971" name="line-971"></a><span class="p">{</span> +<a id="line-972" name="line-972"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">text</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-974" name="line-974"></a> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="cm">/* Replace ** with ^ (not on all keyboards) */</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_text_buffer_get_has_selection</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">))</span><span class="w"> </span><span class="o">&&</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">"×"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">entered_multiply</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-979" name="line-979"></a> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_text_buffer_get_insert</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">)));</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">gtk_text_buffer_backspace</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">gtk_text_buffer_insert_at_cursor</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"^"</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="p">}</span> +<a id="line-985" name="line-985"></a> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="cm">/* Can't enter superscript minus after entering digits */</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strstr</span><span class="p">(</span><span class="s">"⁰¹²³⁴⁵⁶⁷⁸⁹"</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="s">"⁻"</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">can_super_minus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-989" name="line-989"></a> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="cm">/* Disable super/subscript mode when finished entering */</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strstr</span><span class="p">(</span><span class="s">"⁻⁰¹²³⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉"</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-993" name="line-993"></a> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete_selection</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">gtk_text_buffer_insert_at_cursor</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-996" name="line-996"></a><span class="p">}</span> +<a id="line-997" name="line-997"></a> +<a id="line-998" name="line-998"></a><span class="kt">void</span> +<a id="line-999" name="line-999"></a><span class="nf">math_equation_insert_digit</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">digit</span><span class="p">)</span> +<a id="line-1000" name="line-1000"></a><span class="p">{</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">subscript_digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"₁"</span><span class="p">,</span><span class="w"> </span><span class="s">"₂"</span><span class="p">,</span><span class="w"> </span><span class="s">"₃"</span><span class="p">,</span><span class="w"> </span><span class="s">"₄"</span><span class="p">,</span><span class="w"> </span><span class="s">"₅"</span><span class="p">,</span><span class="w"> </span><span class="s">"₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"₇"</span><span class="p">,</span><span class="w"> </span><span class="s">"₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"₉"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">};</span> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">superscript_digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"⁰"</span><span class="p">,</span><span class="w"> </span><span class="s">"¹"</span><span class="p">,</span><span class="w"> </span><span class="s">"²"</span><span class="p">,</span><span class="w"> </span><span class="s">"³"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁴"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁵"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁶"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁷"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁸"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁹"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">};</span> +<a id="line-1003" name="line-1003"></a> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">digit</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">);</span> +<a id="line-1006" name="line-1006"></a> +<a id="line-1007" name="line-1007"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">NORMAL</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">10</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">7</span><span class="p">];</span> +<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_to_utf8</span><span class="p">(</span><span class="n">math_equation_get_digit_text</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">digit</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">len</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">)</span> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">superscript_digits</span><span class="p">[</span><span class="n">digit</span><span class="p">]);</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUBSCRIPT</span><span class="p">)</span> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">subscript_digits</span><span class="p">[</span><span class="n">digit</span><span class="p">]);</span> +<a id="line-1018" name="line-1018"></a><span class="p">}</span> +<a id="line-1019" name="line-1019"></a> +<a id="line-1020" name="line-1020"></a><span class="kt">void</span> +<a id="line-1021" name="line-1021"></a><span class="nf">math_equation_insert_numeric_point</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1022" name="line-1022"></a><span class="p">{</span> +<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="mi">7</span><span class="p">];</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-1025" name="line-1025"></a> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1027" name="line-1027"></a> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_unichar_to_utf8</span><span class="p">(</span><span class="n">mp_serializer_get_radix</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">),</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="n">buffer</span><span class="p">[</span><span class="n">len</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">);</span> +<a id="line-1031" name="line-1031"></a><span class="p">}</span> +<a id="line-1032" name="line-1032"></a> +<a id="line-1033" name="line-1033"></a><span class="kt">void</span> +<a id="line-1034" name="line-1034"></a><span class="nf">math_equation_insert_number</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-1035" name="line-1035"></a><span class="p">{</span> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-1037" name="line-1037"></a> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1040" name="line-1040"></a> +<a id="line-1041" name="line-1041"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-1042" name="line-1042"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-1043" name="line-1043"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-1044" name="line-1044"></a><span class="p">}</span> +<a id="line-1045" name="line-1045"></a> +<a id="line-1046" name="line-1046"></a><span class="kt">void</span> +<a id="line-1047" name="line-1047"></a><span class="nf">math_equation_insert_exponent</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1048" name="line-1048"></a><span class="p">{</span> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1050" name="line-1050"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"×10"</span><span class="p">);</span> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">);</span> +<a id="line-1052" name="line-1052"></a><span class="p">}</span> +<a id="line-1053" name="line-1053"></a> +<a id="line-1054" name="line-1054"></a><span class="kt">void</span> +<a id="line-1055" name="line-1055"></a><span class="nf">math_equation_insert_subtract</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1056" name="line-1056"></a><span class="p">{</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">can_super_minus</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1059" name="line-1059"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻"</span><span class="p">);</span> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">can_super_minus</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1062" name="line-1062"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"−"</span><span class="p">);</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1066" name="line-1066"></a><span class="p">}</span> +<a id="line-1067" name="line-1067"></a> +<a id="line-1068" name="line-1068"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-1069" name="line-1069"></a><span class="nf">variable_is_defined</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-1070" name="line-1070"></a><span class="p">{</span> +<a id="line-1071" name="line-1071"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">lower_name</span><span class="p">;</span> +<a id="line-1073" name="line-1073"></a> +<a id="line-1074" name="line-1074"></a><span class="w"> </span><span class="n">lower_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lower_name</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">)</span> +<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tolower</span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="p">);</span> +<a id="line-1077" name="line-1077"></a> +<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"rand"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ans"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">lower_name</span><span class="p">);</span> +<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1083" name="line-1083"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">lower_name</span><span class="p">);</span> +<a id="line-1084" name="line-1084"></a> +<a id="line-1085" name="line-1085"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">math_variables_get</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1086" name="line-1086"></a><span class="p">}</span> +<a id="line-1087" name="line-1087"></a> +<a id="line-1088" name="line-1088"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-1089" name="line-1089"></a><span class="nf">get_variable</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-1090" name="line-1090"></a><span class="p">{</span> +<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">lower_name</span><span class="p">;</span> +<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">;</span> +<a id="line-1095" name="line-1095"></a> +<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="n">lower_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lower_name</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">)</span> +<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tolower</span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="p">);</span> +<a id="line-1099" name="line-1099"></a> +<a id="line-1100" name="line-1100"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"rand"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="n">mp_set_from_random</span><span class="p">(</span><span class="n">z</span><span class="p">);</span> +<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ans"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1103" name="line-1103"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variables_get</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">t</span><span class="p">)</span> +<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">lower_name</span><span class="p">);</span> +<a id="line-1112" name="line-1112"></a> +<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1114" name="line-1114"></a><span class="p">}</span> +<a id="line-1115" name="line-1115"></a> +<a id="line-1116" name="line-1116"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1117" name="line-1117"></a><span class="nf">set_variable</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-1118" name="line-1118"></a><span class="p">{</span> +<a id="line-1119" name="line-1119"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span> +<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="cm">/* FIXME: Don't allow writing to built-in variables, e.g. ans, rand, sin, ... */</span> +<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="n">math_variables_set</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-1122" name="line-1122"></a><span class="p">}</span> +<a id="line-1123" name="line-1123"></a> +<a id="line-1124" name="line-1124"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-1125" name="line-1125"></a><span class="nf">convert</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-1126" name="line-1126"></a><span class="p">{</span> +<a id="line-1127" name="line-1127"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit_manager_convert_by_symbol</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-1128" name="line-1128"></a><span class="p">}</span> +<a id="line-1129" name="line-1129"></a> +<a id="line-1130" name="line-1130"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-1131" name="line-1131"></a><span class="nf">parse</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">error_token</span><span class="p">)</span> +<a id="line-1132" name="line-1132"></a><span class="p">{</span> +<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-1134" name="line-1134"></a> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="n">memset</span><span class="p">(</span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">options</span><span class="p">));</span> +<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_get_base</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">word_size</span><span class="p">;</span> +<a id="line-1138" name="line-1138"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">angle_units</span><span class="p">;</span> +<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">variable_is_defined</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">variable_is_defined</span><span class="p">;</span> +<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">get_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_variable</span><span class="p">;</span> +<a id="line-1141" name="line-1141"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">set_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">set_variable</span><span class="p">;</span> +<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">convert</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">convert</span><span class="p">;</span> +<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">callback_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation</span><span class="p">;</span> +<a id="line-1144" name="line-1144"></a> +<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_equation_parse</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">error_token</span><span class="p">);</span> +<a id="line-1146" name="line-1146"></a><span class="p">}</span> +<a id="line-1147" name="line-1147"></a> +<a id="line-1148" name="line-1148"></a><span class="cm">/*</span> +<a id="line-1149" name="line-1149"></a><span class="cm"> * Executed in separate thread. It is thus not a good idea to write to anything</span> +<a id="line-1150" name="line-1150"></a><span class="cm"> * in MathEquation but the async queue from here.</span> +<a id="line-1151" name="line-1151"></a><span class="cm"> */</span> +<a id="line-1152" name="line-1152"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-1153" name="line-1153"></a><span class="nf">math_equation_solve_real</span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1154" name="line-1154"></a><span class="p">{</span> +<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="n">SolveData</span><span class="w"> </span><span class="o">*</span><span class="n">solvedata</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="p">(</span><span class="n">SolveData</span><span class="p">);</span> +<a id="line-1157" name="line-1157"></a> +<a id="line-1158" name="line-1158"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">n_brackets</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1159" name="line-1159"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">error_token</span><span class="p">;</span> +<a id="line-1160" name="line-1160"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">equation_text</span><span class="p">;</span> +<a id="line-1161" name="line-1161"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1162" name="line-1162"></a> +<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_equation</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="n">equation_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-1165" name="line-1165"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-1166" name="line-1166"></a><span class="w"> </span><span class="cm">/* Count the number of brackets and automatically add missing closing brackets */</span> +<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">equation_text</span><span class="o">-></span><span class="n">str</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'('</span><span class="p">)</span> +<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">n_brackets</span><span class="o">++</span><span class="p">;</span> +<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">')'</span><span class="p">)</span> +<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="n">n_brackets</span><span class="o">--</span><span class="p">;</span> +<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">n_brackets</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="p">(</span><span class="n">equation_text</span><span class="p">,</span><span class="w"> </span><span class="sc">')'</span><span class="p">);</span> +<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="n">n_brackets</span><span class="o">--</span><span class="p">;</span> +<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1177" name="line-1177"></a> +<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parse</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">equation_text</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error_token</span><span class="p">);</span> +<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">equation_text</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1180" name="line-1180"></a> +<a id="line-1181" name="line-1181"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_NONE</span><span class="p">:</span> +<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">number_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">);</span> +<a id="line-1184" name="line-1184"></a><span class="w"> </span><span class="o">*</span><span class="n">solvedata</span><span class="o">-></span><span class="n">number_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">number_result</span><span class="p">);</span> +<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1187" name="line-1187"></a> +<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_OVERFLOW</span><span class="p">:</span> +<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="cm">/* Error displayed to user when they perform a bitwise operation on numbers greater than the current word */</span> +<a id="line-1190" name="line-1190"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Overflow. Try a bigger word size"</span><span class="p">));</span> +<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1192" name="line-1192"></a> +<a id="line-1193" name="line-1193"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">:</span> +<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="cm">/* Error displayed to user when they an unknown variable is entered */</span> +<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Unknown variable '%s'"</span><span class="p">),</span><span class="w"> </span><span class="n">error_token</span><span class="p">);</span> +<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1197" name="line-1197"></a> +<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_UNKNOWN_FUNCTION</span><span class="p">:</span> +<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="cm">/* Error displayed to user when an unknown function is entered */</span> +<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Function '%s' is not defined"</span><span class="p">),</span><span class="w"> </span><span class="n">error_token</span><span class="p">);</span> +<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1202" name="line-1202"></a> +<a id="line-1203" name="line-1203"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_UNKNOWN_CONVERSION</span><span class="p">:</span> +<a id="line-1204" name="line-1204"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="cm">/* Error displayed to user when an conversion with unknown units is attempted */</span> +<a id="line-1205" name="line-1205"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Unknown conversion"</span><span class="p">));</span> +<a id="line-1206" name="line-1206"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1207" name="line-1207"></a> +<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_MP</span><span class="p">:</span> +<a id="line-1209" name="line-1209"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_get_error</span><span class="p">())</span> +<a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">mp_get_error</span><span class="p">());</span> +<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error_token</span><span class="p">)</span> +<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="cm">/* Uncategorized error. Show error token to user*/</span> +<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Malformed expression at token '%s'"</span><span class="p">),</span><span class="w"> </span><span class="n">error_token</span><span class="p">);</span> +<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="w"> </span><span class="p">(</span><span class="cm">/* Unknown error. */</span> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Malformed expression"</span><span class="p">));</span> +<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1218" name="line-1218"></a> +<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1220" name="line-1220"></a><span class="w"> </span><span class="n">solvedata</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="cm">/* Error displayed to user when they enter an invalid calculation */</span> +<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Malformed expression"</span><span class="p">));</span> +<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1223" name="line-1223"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1224" name="line-1224"></a><span class="w"> </span><span class="n">g_async_queue_push</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">queue</span><span class="p">,</span><span class="w"> </span><span class="n">solvedata</span><span class="p">);</span> +<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-1226" name="line-1226"></a> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1228" name="line-1228"></a><span class="p">}</span> +<a id="line-1229" name="line-1229"></a> +<a id="line-1230" name="line-1230"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1231" name="line-1231"></a><span class="nf">math_equation_show_in_progress</span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1232" name="line-1232"></a><span class="p">{</span> +<a id="line-1233" name="line-1233"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1234" name="line-1234"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="p">)</span> +<a id="line-1235" name="line-1235"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Calculating"</span><span class="p">));</span> +<a id="line-1236" name="line-1236"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-1237" name="line-1237"></a><span class="p">}</span> +<a id="line-1238" name="line-1238"></a> +<a id="line-1239" name="line-1239"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1240" name="line-1240"></a><span class="nf">math_equation_look_for_answer</span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1241" name="line-1241"></a><span class="p">{</span> +<a id="line-1242" name="line-1242"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1243" name="line-1243"></a><span class="w"> </span><span class="n">SolveData</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_async_queue_try_pop</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">queue</span><span class="p">);</span> +<a id="line-1244" name="line-1244"></a> +<a id="line-1245" name="line-1245"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-1246" name="line-1246"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> +<a id="line-1247" name="line-1247"></a> +<a id="line-1248" name="line-1248"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-1249" name="line-1249"></a> +<a id="line-1250" name="line-1250"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="o">-></span><span class="n">error</span><span class="p">)</span> +<a id="line-1251" name="line-1251"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-1252" name="line-1252"></a> +<a id="line-1253" name="line-1253"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1254" name="line-1254"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-1255" name="line-1255"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">error</span><span class="p">);</span> +<a id="line-1256" name="line-1256"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1257" name="line-1257"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">number_result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1258" name="line-1258"></a><span class="w"> </span><span class="n">math_equation_set_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="o">-></span><span class="n">number_result</span><span class="p">);</span> +<a id="line-1259" name="line-1259"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">number_result</span><span class="p">);</span> +<a id="line-1260" name="line-1260"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="o">-></span><span class="n">number_result</span><span class="p">);</span> +<a id="line-1261" name="line-1261"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1262" name="line-1262"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">text_result</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1263" name="line-1263"></a><span class="w"> </span><span class="n">math_equation_set_with_history</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="o">-></span><span class="n">text_result</span><span class="p">);</span> +<a id="line-1264" name="line-1264"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">result</span><span class="o">-></span><span class="n">text_result</span><span class="p">);</span> +<a id="line-1265" name="line-1265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1266" name="line-1266"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="p">(</span><span class="n">SolveData</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span> +<a id="line-1267" name="line-1267"></a> +<a id="line-1268" name="line-1268"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-1269" name="line-1269"></a><span class="p">}</span> +<a id="line-1270" name="line-1270"></a> +<a id="line-1271" name="line-1271"></a><span class="kt">void</span> +<a id="line-1272" name="line-1272"></a><span class="nf">math_equation_solve</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1273" name="line-1273"></a><span class="p">{</span> +<a id="line-1274" name="line-1274"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1275" name="line-1275"></a> +<a id="line-1276" name="line-1276"></a><span class="w"> </span><span class="c1">// FIXME: should replace calculation or give error message</span> +<a id="line-1277" name="line-1277"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="p">)</span> +<a id="line-1278" name="line-1278"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1279" name="line-1279"></a> +<a id="line-1280" name="line-1280"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_is_empty</span><span class="p">(</span><span class="n">equation</span><span class="p">))</span> +<a id="line-1281" name="line-1281"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1282" name="line-1282"></a> +<a id="line-1283" name="line-1283"></a><span class="w"> </span><span class="cm">/* If showing a result return to the equation that caused it */</span> +<a id="line-1284" name="line-1284"></a><span class="w"> </span><span class="c1">// FIXME: Result may not be here due to solve (i.e. the user may have entered "ans")</span> +<a id="line-1285" name="line-1285"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_is_result</span><span class="p">(</span><span class="n">equation</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1286" name="line-1286"></a><span class="w"> </span><span class="n">math_equation_undo</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1287" name="line-1287"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1288" name="line-1288"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1289" name="line-1289"></a> +<a id="line-1290" name="line-1290"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> +<a id="line-1291" name="line-1291"></a> +<a id="line-1292" name="line-1292"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-1293" name="line-1293"></a><span class="w"> </span><span class="n">g_thread_new</span><span class="p">(</span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_solve_real</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1294" name="line-1294"></a> +<a id="line-1295" name="line-1295"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="p">(</span><span class="mi">50</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_look_for_answer</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1296" name="line-1296"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="p">(</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_show_in_progress</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1297" name="line-1297"></a><span class="p">}</span> +<a id="line-1298" name="line-1298"></a> +<a id="line-1299" name="line-1299"></a><span class="k">static</span><span class="w"> </span><span class="n">gpointer</span> +<a id="line-1300" name="line-1300"></a><span class="nf">math_equation_factorize_real</span><span class="p">(</span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-1301" name="line-1301"></a><span class="p">{</span> +<a id="line-1302" name="line-1302"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-1303" name="line-1303"></a><span class="hll"><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">factors</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">factor</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">next_factor</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'next_factor' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'next_factor' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-1304" name="line-1304"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1305" name="line-1305"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">data</span><span class="p">);</span> +<a id="line-1306" name="line-1306"></a><span class="w"> </span><span class="n">SolveData</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_new0</span><span class="p">(</span><span class="n">SolveData</span><span class="p">);</span> +<a id="line-1307" name="line-1307"></a><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_get_number_format</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-1308" name="line-1308"></a> +<a id="line-1309" name="line-1309"></a><span class="w"> </span><span class="n">mp_serializer_set_number_format</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_FIXED</span><span class="p">);</span> +<a id="line-1310" name="line-1310"></a><span class="w"> </span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1311" name="line-1311"></a><span class="w"> </span><span class="n">factors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_factorize</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1312" name="line-1312"></a> +<a id="line-1313" name="line-1313"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_new</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-1314" name="line-1314"></a> +<a id="line-1315" name="line-1315"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">e</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1316" name="line-1316"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factors</span><span class="p">;</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factor</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-1317" name="line-1317"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1318" name="line-1318"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">temp</span><span class="p">;</span> +<a id="line-1319" name="line-1319"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">;</span> +<a id="line-1320" name="line-1320"></a> +<a id="line-1321" name="line-1321"></a><span class="w"> </span><span class="n">n</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factor</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-1322" name="line-1322"></a><span class="w"> </span><span class="n">next_factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">factor</span><span class="o">-></span><span class="n">next</span><span class="p">;</span> +<a id="line-1323" name="line-1323"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">next_factor</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">next_factor</span><span class="o">-></span><span class="n">data</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-1324" name="line-1324"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1325" name="line-1325"></a><span class="w"> </span><span class="n">e</span><span class="o">++</span><span class="p">;</span> +<a id="line-1326" name="line-1326"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-1327" name="line-1327"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1328" name="line-1328"></a><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">);</span> +<a id="line-1329" name="line-1329"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">temp</span><span class="p">);</span> +<a id="line-1330" name="line-1330"></a> +<a id="line-1331" name="line-1331"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">e</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-1332" name="line-1332"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1333" name="line-1333"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">"^"</span><span class="p">);</span> +<a id="line-1334" name="line-1334"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">"%d"</span><span class="p">,</span><span class="w"> </span><span class="n">e</span><span class="p">);</span> +<a id="line-1335" name="line-1335"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1336" name="line-1336"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-1337" name="line-1337"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">" × "</span><span class="p">);</span> +<a id="line-1338" name="line-1338"></a> +<a id="line-1339" name="line-1339"></a><span class="w"> </span><span class="n">e</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1340" name="line-1340"></a> +<a id="line-1341" name="line-1341"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="n">n</span><span class="p">);</span> +<a id="line-1342" name="line-1342"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">);</span> +<a id="line-1343" name="line-1343"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">temp</span><span class="p">);</span> +<a id="line-1344" name="line-1344"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1345" name="line-1345"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">factors</span><span class="p">);</span> +<a id="line-1346" name="line-1346"></a> +<a id="line-1347" name="line-1347"></a><span class="w"> </span><span class="n">result</span><span class="o">-></span><span class="n">text_result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="p">(</span><span class="n">text</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="o">-></span><span class="n">len</span><span class="p">);</span> +<a id="line-1348" name="line-1348"></a><span class="w"> </span><span class="n">g_async_queue_push</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">queue</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span> +<a id="line-1349" name="line-1349"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1350" name="line-1350"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1351" name="line-1351"></a> +<a id="line-1352" name="line-1352"></a><span class="w"> </span><span class="n">mp_serializer_set_number_format</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-1353" name="line-1353"></a> +<a id="line-1354" name="line-1354"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-1355" name="line-1355"></a><span class="p">}</span> +<a id="line-1356" name="line-1356"></a> +<a id="line-1357" name="line-1357"></a><span class="kt">void</span> +<a id="line-1358" name="line-1358"></a><span class="nf">math_equation_factorize</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1359" name="line-1359"></a><span class="p">{</span> +<a id="line-1360" name="line-1360"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1361" name="line-1361"></a> +<a id="line-1362" name="line-1362"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1363" name="line-1363"></a> +<a id="line-1364" name="line-1364"></a><span class="w"> </span><span class="c1">// FIXME: should replace calculation or give error message</span> +<a id="line-1365" name="line-1365"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="p">)</span> +<a id="line-1366" name="line-1366"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1367" name="line-1367"></a> +<a id="line-1368" name="line-1368"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1369" name="line-1369"></a><span class="w"> </span><span class="cm">/* Error displayed when trying to factorize a non-integer value */</span> +<a id="line-1370" name="line-1370"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Need an integer to factorize"</span><span class="p">));</span> +<a id="line-1371" name="line-1371"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1372" name="line-1372"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1373" name="line-1373"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1374" name="line-1374"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1375" name="line-1375"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_solve</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> +<a id="line-1376" name="line-1376"></a> +<a id="line-1377" name="line-1377"></a><span class="w"> </span><span class="n">g_thread_new</span><span class="p">(</span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_factorize_real</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1378" name="line-1378"></a> +<a id="line-1379" name="line-1379"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="p">(</span><span class="mi">50</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_look_for_answer</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1380" name="line-1380"></a><span class="w"> </span><span class="n">g_timeout_add</span><span class="p">(</span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_show_in_progress</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1381" name="line-1381"></a><span class="p">}</span> +<a id="line-1382" name="line-1382"></a> +<a id="line-1383" name="line-1383"></a><span class="kt">void</span> +<a id="line-1384" name="line-1384"></a><span class="nf">math_equation_delete</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1385" name="line-1385"></a><span class="p">{</span> +<a id="line-1386" name="line-1386"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">cursor</span><span class="p">;</span> +<a id="line-1387" name="line-1387"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">;</span> +<a id="line-1388" name="line-1388"></a> +<a id="line-1389" name="line-1389"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1390" name="line-1390"></a> +<a id="line-1391" name="line-1391"></a><span class="w"> </span><span class="n">g_object_get</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"cursor-position"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">cursor</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1392" name="line-1392"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">cursor</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">gtk_text_buffer_get_char_count</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">)))</span> +<a id="line-1393" name="line-1393"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1394" name="line-1394"></a> +<a id="line-1395" name="line-1395"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="n">cursor</span><span class="p">);</span> +<a id="line-1396" name="line-1396"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_offset</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">cursor</span><span class="o">+</span><span class="mi">1</span><span class="p">);</span> +<a id="line-1397" name="line-1397"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">end</span><span class="p">);</span> +<a id="line-1398" name="line-1398"></a><span class="p">}</span> +<a id="line-1399" name="line-1399"></a> +<a id="line-1400" name="line-1400"></a><span class="kt">void</span> +<a id="line-1401" name="line-1401"></a><span class="nf">math_equation_backspace</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1402" name="line-1402"></a><span class="p">{</span> +<a id="line-1403" name="line-1403"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1404" name="line-1404"></a> +<a id="line-1405" name="line-1405"></a><span class="w"> </span><span class="cm">/* Can't delete empty display */</span> +<a id="line-1406" name="line-1406"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_is_empty</span><span class="p">(</span><span class="n">equation</span><span class="p">))</span> +<a id="line-1407" name="line-1407"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1408" name="line-1408"></a> +<a id="line-1409" name="line-1409"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_text_buffer_get_has_selection</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">)))</span> +<a id="line-1410" name="line-1410"></a><span class="w"> </span><span class="n">gtk_text_buffer_delete_selection</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1411" name="line-1411"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-1412" name="line-1412"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-1413" name="line-1413"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_iter_at_mark</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_text_buffer_get_insert</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">)));</span> +<a id="line-1414" name="line-1414"></a><span class="w"> </span><span class="n">gtk_text_buffer_backspace</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1415" name="line-1415"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1416" name="line-1416"></a><span class="p">}</span> +<a id="line-1417" name="line-1417"></a> +<a id="line-1418" name="line-1418"></a><span class="kt">void</span> +<a id="line-1419" name="line-1419"></a><span class="nf">math_equation_clear</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1420" name="line-1420"></a><span class="p">{</span> +<a id="line-1421" name="line-1421"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1422" name="line-1422"></a> +<a id="line-1423" name="line-1423"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NORMAL</span><span class="p">);</span> +<a id="line-1424" name="line-1424"></a><span class="w"> </span><span class="n">gtk_text_buffer_set_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1425" name="line-1425"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1426" name="line-1426"></a><span class="p">}</span> +<a id="line-1427" name="line-1427"></a> +<a id="line-1428" name="line-1428"></a><span class="kt">void</span> +<a id="line-1429" name="line-1429"></a><span class="nf">math_equation_shift</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="p">)</span> +<a id="line-1430" name="line-1430"></a><span class="p">{</span> +<a id="line-1431" name="line-1431"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1432" name="line-1432"></a> +<a id="line-1433" name="line-1433"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1434" name="line-1434"></a> +<a id="line-1435" name="line-1435"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1436" name="line-1436"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span> +<a id="line-1437" name="line-1437"></a><span class="w"> </span><span class="cm">/* This message is displayed in the status bar when a bit</span> +<a id="line-1438" name="line-1438"></a><span class="cm"> shift operation is performed and the display does not contain a number */</span> +<a id="line-1439" name="line-1439"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"No sane value to bitwise shift"</span><span class="p">));</span> +<a id="line-1440" name="line-1440"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1441" name="line-1441"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1442" name="line-1442"></a> +<a id="line-1443" name="line-1443"></a><span class="w"> </span><span class="n">mp_shift</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">count</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-1444" name="line-1444"></a><span class="w"> </span><span class="n">math_equation_set_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-1445" name="line-1445"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-1446" name="line-1446"></a><span class="p">}</span> +<a id="line-1447" name="line-1447"></a> +<a id="line-1448" name="line-1448"></a><span class="kt">void</span> +<a id="line-1449" name="line-1449"></a><span class="nf">math_equation_toggle_bit</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">bit</span><span class="p">)</span> +<a id="line-1450" name="line-1450"></a><span class="p">{</span> +<a id="line-1451" name="line-1451"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1452" name="line-1452"></a><span class="w"> </span><span class="n">guint64</span><span class="w"> </span><span class="n">bits</span><span class="p">;</span> +<a id="line-1453" name="line-1453"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-1454" name="line-1454"></a> +<a id="line-1455" name="line-1455"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1456" name="line-1456"></a> +<a id="line-1457" name="line-1457"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1458" name="line-1458"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">result</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1459" name="line-1459"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1460" name="line-1460"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">G_MAXUINT64</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">max</span><span class="p">);</span> +<a id="line-1461" name="line-1461"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">max</span><span class="p">))</span> +<a id="line-1462" name="line-1462"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1463" name="line-1463"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1464" name="line-1464"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_unsigned_integer</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1465" name="line-1465"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">max</span><span class="p">);</span> +<a id="line-1466" name="line-1466"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1467" name="line-1467"></a> +<a id="line-1468" name="line-1468"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1469" name="line-1469"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span> +<a id="line-1470" name="line-1470"></a><span class="w"> </span><span class="cm">/* Message displayed when cannot toggle bit in display*/</span> +<a id="line-1471" name="line-1471"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Displayed value not an integer"</span><span class="p">));</span> +<a id="line-1472" name="line-1472"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1473" name="line-1473"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1474" name="line-1474"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1475" name="line-1475"></a> +<a id="line-1476" name="line-1476"></a><span class="w"> </span><span class="n">bits</span><span class="w"> </span><span class="o">^=</span><span class="w"> </span><span class="p">(</span><span class="mf">1L</span><span class="n">L</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="p">(</span><span class="mi">63</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">bit</span><span class="p">));</span> +<a id="line-1477" name="line-1477"></a> +<a id="line-1478" name="line-1478"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">bits</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1479" name="line-1479"></a> +<a id="line-1480" name="line-1480"></a><span class="w"> </span><span class="c1">// FIXME: Only do this if in ans format, otherwise set text in same format as previous number</span> +<a id="line-1481" name="line-1481"></a><span class="w"> </span><span class="n">math_equation_set_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1482" name="line-1482"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-1483" name="line-1483"></a><span class="p">}</span> +<a id="line-1484" name="line-1484"></a> +<a id="line-1485" name="line-1485"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1486" name="line-1486"></a><span class="nf">math_equation_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-1487" name="line-1487"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-1488" name="line-1488"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1489" name="line-1489"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1490" name="line-1490"></a><span class="p">{</span> +<a id="line-1491" name="line-1491"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-1492" name="line-1492"></a> +<a id="line-1493" name="line-1493"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1494" name="line-1494"></a> +<a id="line-1495" name="line-1495"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1496" name="line-1496"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_STATUS</span><span class="p">:</span> +<a id="line-1497" name="line-1497"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1498" name="line-1498"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1499" name="line-1499"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DISPLAY</span><span class="p">:</span> +<a id="line-1500" name="line-1500"></a><span class="w"> </span><span class="n">math_equation_set</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1501" name="line-1501"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1502" name="line-1502"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_NUMBER_MODE</span><span class="p">:</span> +<a id="line-1503" name="line-1503"></a><span class="w"> </span><span class="n">math_equation_set_number_mode</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1504" name="line-1504"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1505" name="line-1505"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACCURACY</span><span class="p">:</span> +<a id="line-1506" name="line-1506"></a><span class="w"> </span><span class="n">math_equation_set_accuracy</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1507" name="line-1507"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1508" name="line-1508"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">:</span> +<a id="line-1509" name="line-1509"></a><span class="w"> </span><span class="n">math_equation_set_show_thousands_separators</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1510" name="line-1510"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1511" name="line-1511"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_TRAILING_ZEROES</span><span class="p">:</span> +<a id="line-1512" name="line-1512"></a><span class="w"> </span><span class="n">math_equation_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1513" name="line-1513"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1514" name="line-1514"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_NUMBER_FORMAT</span><span class="p">:</span> +<a id="line-1515" name="line-1515"></a><span class="w"> </span><span class="n">math_equation_set_number_format</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1516" name="line-1516"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1517" name="line-1517"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_BASE</span><span class="p">:</span> +<a id="line-1518" name="line-1518"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1519" name="line-1519"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1520" name="line-1520"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_WORD_SIZE</span><span class="p">:</span> +<a id="line-1521" name="line-1521"></a><span class="w"> </span><span class="n">math_equation_set_word_size</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1522" name="line-1522"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1523" name="line-1523"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ANGLE_UNITS</span><span class="p">:</span> +<a id="line-1524" name="line-1524"></a><span class="w"> </span><span class="n">math_equation_set_angle_units</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1525" name="line-1525"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1526" name="line-1526"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SOURCE_CURRENCY</span><span class="p">:</span> +<a id="line-1527" name="line-1527"></a><span class="w"> </span><span class="n">math_equation_set_source_currency</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1528" name="line-1528"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1529" name="line-1529"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TARGET_CURRENCY</span><span class="p">:</span> +<a id="line-1530" name="line-1530"></a><span class="w"> </span><span class="n">math_equation_set_target_currency</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1531" name="line-1531"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1532" name="line-1532"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SOURCE_UNITS</span><span class="p">:</span> +<a id="line-1533" name="line-1533"></a><span class="w"> </span><span class="n">math_equation_set_source_units</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1534" name="line-1534"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1535" name="line-1535"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TARGET_UNITS</span><span class="p">:</span> +<a id="line-1536" name="line-1536"></a><span class="w"> </span><span class="n">math_equation_set_target_units</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_string</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-1537" name="line-1537"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1538" name="line-1538"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1539" name="line-1539"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-1540" name="line-1540"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1541" name="line-1541"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1542" name="line-1542"></a><span class="p">}</span> +<a id="line-1543" name="line-1543"></a> +<a id="line-1544" name="line-1544"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1545" name="line-1545"></a><span class="nf">math_equation_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-1546" name="line-1546"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-1547" name="line-1547"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-1548" name="line-1548"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-1549" name="line-1549"></a><span class="p">{</span> +<a id="line-1550" name="line-1550"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-1551" name="line-1551"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-1552" name="line-1552"></a> +<a id="line-1553" name="line-1553"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1554" name="line-1554"></a> +<a id="line-1555" name="line-1555"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1556" name="line-1556"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_STATUS</span><span class="p">:</span> +<a id="line-1557" name="line-1557"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="p">);</span> +<a id="line-1558" name="line-1558"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1559" name="line-1559"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_DISPLAY</span><span class="p">:</span> +<a id="line-1560" name="line-1560"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_display</span><span class="p">(</span><span class="n">self</span><span class="p">);</span> +<a id="line-1561" name="line-1561"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-1562" name="line-1562"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-1563" name="line-1563"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1564" name="line-1564"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-1565" name="line-1565"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_equation</span><span class="p">(</span><span class="n">self</span><span class="p">);</span> +<a id="line-1566" name="line-1566"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">);</span> +<a id="line-1567" name="line-1567"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-1568" name="line-1568"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1569" name="line-1569"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_NUMBER_MODE</span><span class="p">:</span> +<a id="line-1570" name="line-1570"></a><span class="w"> </span><span class="n">g_value_set_enum</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number_mode</span><span class="p">);</span> +<a id="line-1571" name="line-1571"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1572" name="line-1572"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ACCURACY</span><span class="p">:</span> +<a id="line-1573" name="line-1573"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_trailing_digits</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">));</span> +<a id="line-1574" name="line-1574"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1575" name="line-1575"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">:</span> +<a id="line-1576" name="line-1576"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">));</span> +<a id="line-1577" name="line-1577"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1578" name="line-1578"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_TRAILING_ZEROES</span><span class="p">:</span> +<a id="line-1579" name="line-1579"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">));</span> +<a id="line-1580" name="line-1580"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1581" name="line-1581"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_NUMBER_FORMAT</span><span class="p">:</span> +<a id="line-1582" name="line-1582"></a><span class="w"> </span><span class="n">g_value_set_enum</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_number_format</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">));</span> +<a id="line-1583" name="line-1583"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1584" name="line-1584"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_BASE</span><span class="p">:</span> +<a id="line-1585" name="line-1585"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_base</span><span class="p">(</span><span class="n">self</span><span class="p">));</span> +<a id="line-1586" name="line-1586"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1587" name="line-1587"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_WORD_SIZE</span><span class="p">:</span> +<a id="line-1588" name="line-1588"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">word_size</span><span class="p">);</span> +<a id="line-1589" name="line-1589"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1590" name="line-1590"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_ANGLE_UNITS</span><span class="p">:</span> +<a id="line-1591" name="line-1591"></a><span class="w"> </span><span class="n">g_value_set_enum</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">angle_units</span><span class="p">);</span> +<a id="line-1592" name="line-1592"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1593" name="line-1593"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SOURCE_CURRENCY</span><span class="p">:</span> +<a id="line-1594" name="line-1594"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_currency</span><span class="p">);</span> +<a id="line-1595" name="line-1595"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1596" name="line-1596"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TARGET_CURRENCY</span><span class="p">:</span> +<a id="line-1597" name="line-1597"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_currency</span><span class="p">);</span> +<a id="line-1598" name="line-1598"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1599" name="line-1599"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SOURCE_UNITS</span><span class="p">:</span> +<a id="line-1600" name="line-1600"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_units</span><span class="p">);</span> +<a id="line-1601" name="line-1601"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1602" name="line-1602"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_TARGET_UNITS</span><span class="p">:</span> +<a id="line-1603" name="line-1603"></a><span class="w"> </span><span class="n">g_value_set_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_units</span><span class="p">);</span> +<a id="line-1604" name="line-1604"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1605" name="line-1605"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SERIALIZER</span><span class="p">:</span> +<a id="line-1606" name="line-1606"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-1607" name="line-1607"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1608" name="line-1608"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-1609" name="line-1609"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-1610" name="line-1610"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-1611" name="line-1611"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1612" name="line-1612"></a><span class="p">}</span> +<a id="line-1613" name="line-1613"></a> +<a id="line-1614" name="line-1614"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1615" name="line-1615"></a><span class="nf">math_equation_constructed</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-1616" name="line-1616"></a><span class="p">{</span> +<a id="line-1617" name="line-1617"></a><span class="w"> </span><span class="n">GtkTextBuffer</span><span class="w"> </span><span class="o">*</span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-1618" name="line-1618"></a><span class="w"> </span><span class="n">parent_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_type_class_peek_parent</span><span class="p">(</span><span class="n">MATH_EQUATION_GET_CLASS</span><span class="p">(</span><span class="n">object</span><span class="p">));</span> +<a id="line-1619" name="line-1619"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">constructed</span><span class="p">)</span> +<a id="line-1620" name="line-1620"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">constructed</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-1621" name="line-1621"></a> +<a id="line-1622" name="line-1622"></a><span class="w"> </span><span class="n">MATH_EQUATION</span><span class="p">(</span><span class="n">object</span><span class="p">)</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_tag</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_buffer_create_tag</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">object</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"weight"</span><span class="p">,</span><span class="w"> </span><span class="n">PANGO_WEIGHT_BOLD</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1623" name="line-1623"></a><span class="p">}</span> +<a id="line-1624" name="line-1624"></a> +<a id="line-1625" name="line-1625"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1626" name="line-1626"></a><span class="nf">math_equation_class_init</span><span class="p">(</span><span class="n">MathEquationClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-1627" name="line-1627"></a><span class="p">{</span> +<a id="line-1628" name="line-1628"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GEnumValue</span><span class="w"> </span><span class="n">number_mode_values</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-1629" name="line-1629"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1630" name="line-1630"></a><span class="w"> </span><span class="p">{</span><span class="n">NORMAL</span><span class="p">,</span><span class="w"> </span><span class="s">"normal"</span><span class="p">,</span><span class="w"> </span><span class="s">"normal"</span><span class="p">},</span> +<a id="line-1631" name="line-1631"></a><span class="w"> </span><span class="p">{</span><span class="n">SUPERSCRIPT</span><span class="p">,</span><span class="w"> </span><span class="s">"superscript"</span><span class="p">,</span><span class="w"> </span><span class="s">"superscript"</span><span class="p">},</span> +<a id="line-1632" name="line-1632"></a><span class="w"> </span><span class="p">{</span><span class="n">SUBSCRIPT</span><span class="p">,</span><span class="w"> </span><span class="s">"subscript"</span><span class="p">,</span><span class="w"> </span><span class="s">"subscript"</span><span class="p">},</span> +<a id="line-1633" name="line-1633"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-1634" name="line-1634"></a><span class="w"> </span><span class="p">};</span> +<a id="line-1635" name="line-1635"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">GEnumValue</span><span class="w"> </span><span class="n">angle_unit_values</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-1636" name="line-1636"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1637" name="line-1637"></a><span class="w"> </span><span class="p">{</span><span class="n">MP_RADIANS</span><span class="p">,</span><span class="w"> </span><span class="s">"radians"</span><span class="p">,</span><span class="w"> </span><span class="s">"radians"</span><span class="p">},</span> +<a id="line-1638" name="line-1638"></a><span class="w"> </span><span class="p">{</span><span class="n">MP_DEGREES</span><span class="p">,</span><span class="w"> </span><span class="s">"degrees"</span><span class="p">,</span><span class="w"> </span><span class="s">"degrees"</span><span class="p">},</span> +<a id="line-1639" name="line-1639"></a><span class="w"> </span><span class="p">{</span><span class="n">MP_GRADIANS</span><span class="p">,</span><span class="w"> </span><span class="s">"gradians"</span><span class="p">,</span><span class="w"> </span><span class="s">"gradians"</span><span class="p">},</span> +<a id="line-1640" name="line-1640"></a><span class="w"> </span><span class="p">{</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}</span> +<a id="line-1641" name="line-1641"></a><span class="w"> </span><span class="p">};</span> +<a id="line-1642" name="line-1642"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-1643" name="line-1643"></a> +<a id="line-1644" name="line-1644"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_property</span><span class="p">;</span> +<a id="line-1645" name="line-1645"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_set_property</span><span class="p">;</span> +<a id="line-1646" name="line-1646"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">constructed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_constructed</span><span class="p">;</span> +<a id="line-1647" name="line-1647"></a> +<a id="line-1648" name="line-1648"></a><span class="w"> </span><span class="n">number_mode_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_enum_register_static</span><span class="p">(</span><span class="s">"NumberMode"</span><span class="p">,</span><span class="w"> </span><span class="n">number_mode_values</span><span class="p">);</span> +<a id="line-1649" name="line-1649"></a><span class="w"> </span><span class="n">number_format_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_mp_display_format_get_type</span><span class="p">();</span> +<a id="line-1650" name="line-1650"></a><span class="w"> </span><span class="n">angle_unit_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_enum_register_static</span><span class="p">(</span><span class="s">"AngleUnit"</span><span class="p">,</span><span class="w"> </span><span class="n">angle_unit_values</span><span class="p">);</span> +<a id="line-1651" name="line-1651"></a> +<a id="line-1652" name="line-1652"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1653" name="line-1653"></a><span class="w"> </span><span class="n">PROP_STATUS</span><span class="p">,</span> +<a id="line-1654" name="line-1654"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"status"</span><span class="p">,</span> +<a id="line-1655" name="line-1655"></a><span class="w"> </span><span class="s">"status"</span><span class="p">,</span> +<a id="line-1656" name="line-1656"></a><span class="w"> </span><span class="s">"Equation status"</span><span class="p">,</span> +<a id="line-1657" name="line-1657"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1658" name="line-1658"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1659" name="line-1659"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1660" name="line-1660"></a><span class="w"> </span><span class="n">PROP_DISPLAY</span><span class="p">,</span> +<a id="line-1661" name="line-1661"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"display"</span><span class="p">,</span> +<a id="line-1662" name="line-1662"></a><span class="w"> </span><span class="s">"display"</span><span class="p">,</span> +<a id="line-1663" name="line-1663"></a><span class="w"> </span><span class="s">"Displayed equation text"</span><span class="p">,</span> +<a id="line-1664" name="line-1664"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1665" name="line-1665"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1666" name="line-1666"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1667" name="line-1667"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-1668" name="line-1668"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-1669" name="line-1669"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-1670" name="line-1670"></a><span class="w"> </span><span class="s">"Equation text"</span><span class="p">,</span> +<a id="line-1671" name="line-1671"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1672" name="line-1672"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span> +<a id="line-1673" name="line-1673"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1674" name="line-1674"></a><span class="w"> </span><span class="n">PROP_NUMBER_MODE</span><span class="p">,</span> +<a id="line-1675" name="line-1675"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="p">(</span><span class="s">"number-mode"</span><span class="p">,</span> +<a id="line-1676" name="line-1676"></a><span class="w"> </span><span class="s">"number-mode"</span><span class="p">,</span> +<a id="line-1677" name="line-1677"></a><span class="w"> </span><span class="s">"Input number mode"</span><span class="p">,</span> +<a id="line-1678" name="line-1678"></a><span class="w"> </span><span class="n">number_mode_type</span><span class="p">,</span> +<a id="line-1679" name="line-1679"></a><span class="w"> </span><span class="n">NORMAL</span><span class="p">,</span> +<a id="line-1680" name="line-1680"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1681" name="line-1681"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1682" name="line-1682"></a><span class="w"> </span><span class="n">PROP_ACCURACY</span><span class="p">,</span> +<a id="line-1683" name="line-1683"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="p">(</span><span class="s">"accuracy"</span><span class="p">,</span> +<a id="line-1684" name="line-1684"></a><span class="w"> </span><span class="s">"accuracy"</span><span class="p">,</span> +<a id="line-1685" name="line-1685"></a><span class="w"> </span><span class="s">"Display accuracy"</span><span class="p">,</span> +<a id="line-1686" name="line-1686"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">,</span><span class="w"> </span><span class="mi">9</span><span class="p">,</span> +<a id="line-1687" name="line-1687"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1688" name="line-1688"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1689" name="line-1689"></a><span class="w"> </span><span class="n">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">,</span> +<a id="line-1690" name="line-1690"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="p">(</span><span class="s">"show-thousands-separators"</span><span class="p">,</span> +<a id="line-1691" name="line-1691"></a><span class="w"> </span><span class="s">"show-thousands-separators"</span><span class="p">,</span> +<a id="line-1692" name="line-1692"></a><span class="w"> </span><span class="s">"Show thousands separators"</span><span class="p">,</span> +<a id="line-1693" name="line-1693"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-1694" name="line-1694"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1695" name="line-1695"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1696" name="line-1696"></a><span class="w"> </span><span class="n">PROP_SHOW_TRAILING_ZEROES</span><span class="p">,</span> +<a id="line-1697" name="line-1697"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="p">(</span><span class="s">"show-trailing-zeroes"</span><span class="p">,</span> +<a id="line-1698" name="line-1698"></a><span class="w"> </span><span class="s">"show-trailing-zeroes"</span><span class="p">,</span> +<a id="line-1699" name="line-1699"></a><span class="w"> </span><span class="s">"Show trailing zeroes"</span><span class="p">,</span> +<a id="line-1700" name="line-1700"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-1701" name="line-1701"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1702" name="line-1702"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1703" name="line-1703"></a><span class="w"> </span><span class="n">PROP_NUMBER_FORMAT</span><span class="p">,</span> +<a id="line-1704" name="line-1704"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="p">(</span><span class="s">"number-format"</span><span class="p">,</span> +<a id="line-1705" name="line-1705"></a><span class="w"> </span><span class="s">"number-format"</span><span class="p">,</span> +<a id="line-1706" name="line-1706"></a><span class="w"> </span><span class="s">"Display format"</span><span class="p">,</span> +<a id="line-1707" name="line-1707"></a><span class="w"> </span><span class="n">number_format_type</span><span class="p">,</span> +<a id="line-1708" name="line-1708"></a><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_FIXED</span><span class="p">,</span> +<a id="line-1709" name="line-1709"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1710" name="line-1710"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1711" name="line-1711"></a><span class="w"> </span><span class="n">PROP_BASE</span><span class="p">,</span> +<a id="line-1712" name="line-1712"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="p">(</span><span class="s">"base"</span><span class="p">,</span> +<a id="line-1713" name="line-1713"></a><span class="w"> </span><span class="s">"base"</span><span class="p">,</span> +<a id="line-1714" name="line-1714"></a><span class="w"> </span><span class="s">"Default number base (derived from number-format)"</span><span class="p">,</span> +<a id="line-1715" name="line-1715"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span> +<a id="line-1716" name="line-1716"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1717" name="line-1717"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1718" name="line-1718"></a><span class="w"> </span><span class="n">PROP_WORD_SIZE</span><span class="p">,</span> +<a id="line-1719" name="line-1719"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="p">(</span><span class="s">"word-size"</span><span class="p">,</span> +<a id="line-1720" name="line-1720"></a><span class="w"> </span><span class="s">"word-size"</span><span class="p">,</span> +<a id="line-1721" name="line-1721"></a><span class="w"> </span><span class="s">"Word size in bits"</span><span class="p">,</span> +<a id="line-1722" name="line-1722"></a><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span><span class="w"> </span><span class="mi">64</span><span class="p">,</span> +<a id="line-1723" name="line-1723"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1724" name="line-1724"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1725" name="line-1725"></a><span class="w"> </span><span class="n">PROP_ANGLE_UNITS</span><span class="p">,</span> +<a id="line-1726" name="line-1726"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="p">(</span><span class="s">"angle-units"</span><span class="p">,</span> +<a id="line-1727" name="line-1727"></a><span class="w"> </span><span class="s">"angle-units"</span><span class="p">,</span> +<a id="line-1728" name="line-1728"></a><span class="w"> </span><span class="s">"Angle units"</span><span class="p">,</span> +<a id="line-1729" name="line-1729"></a><span class="w"> </span><span class="n">angle_unit_type</span><span class="p">,</span> +<a id="line-1730" name="line-1730"></a><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">,</span> +<a id="line-1731" name="line-1731"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1732" name="line-1732"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1733" name="line-1733"></a><span class="w"> </span><span class="n">PROP_SOURCE_CURRENCY</span><span class="p">,</span> +<a id="line-1734" name="line-1734"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"source-currency"</span><span class="p">,</span> +<a id="line-1735" name="line-1735"></a><span class="w"> </span><span class="s">"source-currency"</span><span class="p">,</span> +<a id="line-1736" name="line-1736"></a><span class="w"> </span><span class="s">"Source Currency"</span><span class="p">,</span> +<a id="line-1737" name="line-1737"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1738" name="line-1738"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1739" name="line-1739"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1740" name="line-1740"></a><span class="w"> </span><span class="n">PROP_TARGET_CURRENCY</span><span class="p">,</span> +<a id="line-1741" name="line-1741"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"target-currency"</span><span class="p">,</span> +<a id="line-1742" name="line-1742"></a><span class="w"> </span><span class="s">"target-currency"</span><span class="p">,</span> +<a id="line-1743" name="line-1743"></a><span class="w"> </span><span class="s">"target Currency"</span><span class="p">,</span> +<a id="line-1744" name="line-1744"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1745" name="line-1745"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1746" name="line-1746"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1747" name="line-1747"></a><span class="w"> </span><span class="n">PROP_SOURCE_UNITS</span><span class="p">,</span> +<a id="line-1748" name="line-1748"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"source-units"</span><span class="p">,</span> +<a id="line-1749" name="line-1749"></a><span class="w"> </span><span class="s">"source-units"</span><span class="p">,</span> +<a id="line-1750" name="line-1750"></a><span class="w"> </span><span class="s">"Source Units"</span><span class="p">,</span> +<a id="line-1751" name="line-1751"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1752" name="line-1752"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1753" name="line-1753"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1754" name="line-1754"></a><span class="w"> </span><span class="n">PROP_TARGET_UNITS</span><span class="p">,</span> +<a id="line-1755" name="line-1755"></a><span class="w"> </span><span class="n">g_param_spec_string</span><span class="p">(</span><span class="s">"target-units"</span><span class="p">,</span> +<a id="line-1756" name="line-1756"></a><span class="w"> </span><span class="s">"target-units"</span><span class="p">,</span> +<a id="line-1757" name="line-1757"></a><span class="w"> </span><span class="s">"target Units"</span><span class="p">,</span> +<a id="line-1758" name="line-1758"></a><span class="w"> </span><span class="s">""</span><span class="p">,</span> +<a id="line-1759" name="line-1759"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-1760" name="line-1760"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-1761" name="line-1761"></a><span class="w"> </span><span class="n">PROP_SERIALIZER</span><span class="p">,</span> +<a id="line-1762" name="line-1762"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="p">(</span><span class="s">"serializer"</span><span class="p">,</span> +<a id="line-1763" name="line-1763"></a><span class="w"> </span><span class="s">"serializer"</span><span class="p">,</span> +<a id="line-1764" name="line-1764"></a><span class="w"> </span><span class="s">"Serializer"</span><span class="p">,</span> +<a id="line-1765" name="line-1765"></a><span class="w"> </span><span class="n">MP_TYPE_SERIALIZER</span><span class="p">,</span> +<a id="line-1766" name="line-1766"></a><span class="w"> </span><span class="n">G_PARAM_READABLE</span><span class="p">));</span> +<a id="line-1767" name="line-1767"></a> +<a id="line-1768" name="line-1768"></a><span class="w"> </span><span class="n">GType</span><span class="w"> </span><span class="n">param_types</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="n">G_TYPE_STRING</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_POINTER</span><span class="p">};</span> +<a id="line-1769" name="line-1769"></a><span class="w"> </span><span class="n">g_signal_newv</span><span class="p">(</span><span class="s">"history"</span><span class="p">,</span> +<a id="line-1770" name="line-1770"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">),</span> +<a id="line-1771" name="line-1771"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-1772" name="line-1772"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-1773" name="line-1773"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1774" name="line-1774"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1775" name="line-1775"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1776" name="line-1776"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span> +<a id="line-1777" name="line-1777"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span> +<a id="line-1778" name="line-1778"></a><span class="w"> </span><span class="n">param_types</span><span class="p">);</span> +<a id="line-1779" name="line-1779"></a> +<a id="line-1780" name="line-1780"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="w"> </span><span class="p">(</span><span class="s">"display-changed"</span><span class="p">,</span> +<a id="line-1781" name="line-1781"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">),</span> +<a id="line-1782" name="line-1782"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-1783" name="line-1783"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-1784" name="line-1784"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1785" name="line-1785"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1786" name="line-1786"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-1787" name="line-1787"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span> +<a id="line-1788" name="line-1788"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-1789" name="line-1789"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1790" name="line-1790"></a><span class="p">}</span> +<a id="line-1791" name="line-1791"></a> +<a id="line-1792" name="line-1792"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1793" name="line-1793"></a><span class="nf">pre_insert_text_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span> +<a id="line-1794" name="line-1794"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="o">*</span><span class="n">location</span><span class="p">,</span> +<a id="line-1795" name="line-1795"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span> +<a id="line-1796" name="line-1796"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-1797" name="line-1797"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1798" name="line-1798"></a><span class="p">{</span> +<a id="line-1799" name="line-1799"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-1800" name="line-1800"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">cursor</span><span class="p">;</span> +<a id="line-1801" name="line-1801"></a> +<a id="line-1802" name="line-1802"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="p">)</span> +<a id="line-1803" name="line-1803"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1804" name="line-1804"></a> +<a id="line-1805" name="line-1805"></a><span class="w"> </span><span class="cm">/* If following a delete then have already pushed undo stack (GtkTextBuffer</span> +<a id="line-1806" name="line-1806"></a><span class="cm"> doesn't indicate replace operations so we have to infer them) */</span> +<a id="line-1807" name="line-1807"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_delete</span><span class="p">)</span> +<a id="line-1808" name="line-1808"></a><span class="w"> </span><span class="n">math_equation_push_undo_stack</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1809" name="line-1809"></a> +<a id="line-1810" name="line-1810"></a><span class="w"> </span><span class="cm">/* Clear result on next digit entered if cursor at end of line */</span> +<a id="line-1811" name="line-1811"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-1812" name="line-1812"></a><span class="w"> </span><span class="n">g_object_get</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"cursor-position"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">cursor</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-1813" name="line-1813"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">c</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">mp_serializer_get_radix</span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">))</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1814" name="line-1814"></a><span class="w"> </span><span class="n">math_equation_is_result</span><span class="p">(</span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span> +<a id="line-1815" name="line-1815"></a><span class="w"> </span><span class="n">cursor</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">gtk_text_buffer_get_char_count</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-1816" name="line-1816"></a><span class="w"> </span><span class="n">gtk_text_buffer_set_text</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1817" name="line-1817"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-1818" name="line-1818"></a><span class="w"> </span><span class="n">gtk_text_buffer_get_end_iter</span><span class="p">(</span><span class="n">GTK_TEXT_BUFFER</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">location</span><span class="p">);</span> +<a id="line-1819" name="line-1819"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1820" name="line-1820"></a> +<a id="line-1821" name="line-1821"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1822" name="line-1822"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="p">;</span> +<a id="line-1823" name="line-1823"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">offset</span><span class="p">;</span> +<a id="line-1824" name="line-1824"></a> +<a id="line-1825" name="line-1825"></a><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="n">location</span><span class="p">);</span> +<a id="line-1826" name="line-1826"></a><span class="w"> </span><span class="n">get_ans_offsets</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-1827" name="line-1827"></a> +<a id="line-1828" name="line-1828"></a><span class="w"> </span><span class="cm">/* Inserted inside or right before ans */</span> +<a id="line-1829" name="line-1829"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">ans_start</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">ans_end</span><span class="p">)</span> +<a id="line-1830" name="line-1830"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1831" name="line-1831"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1832" name="line-1832"></a><span class="p">}</span> +<a id="line-1833" name="line-1833"></a> +<a id="line-1834" name="line-1834"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-1835" name="line-1835"></a><span class="nf">on_delete</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1836" name="line-1836"></a><span class="p">{</span> +<a id="line-1837" name="line-1837"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_delete</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1838" name="line-1838"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1839" name="line-1839"></a><span class="p">}</span> +<a id="line-1840" name="line-1840"></a> +<a id="line-1841" name="line-1841"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1842" name="line-1842"></a><span class="nf">pre_delete_range_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span> +<a id="line-1843" name="line-1843"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="p">,</span> +<a id="line-1844" name="line-1844"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="p">,</span> +<a id="line-1845" name="line-1845"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1846" name="line-1846"></a><span class="p">{</span> +<a id="line-1847" name="line-1847"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="p">)</span> +<a id="line-1848" name="line-1848"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1849" name="line-1849"></a> +<a id="line-1850" name="line-1850"></a><span class="w"> </span><span class="n">math_equation_push_undo_stack</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1851" name="line-1851"></a> +<a id="line-1852" name="line-1852"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_delete</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1853" name="line-1853"></a><span class="w"> </span><span class="n">g_idle_add</span><span class="p">((</span><span class="n">GSourceFunc</span><span class="p">)</span><span class="n">on_delete</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1854" name="line-1854"></a> +<a id="line-1855" name="line-1855"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ans_start</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1856" name="line-1856"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="n">ans_end</span><span class="p">;</span> +<a id="line-1857" name="line-1857"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">start_offset</span><span class="p">,</span><span class="w"> </span><span class="n">end_offset</span><span class="p">;</span> +<a id="line-1858" name="line-1858"></a> +<a id="line-1859" name="line-1859"></a><span class="w"> </span><span class="n">start_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="n">start</span><span class="p">);</span> +<a id="line-1860" name="line-1860"></a><span class="w"> </span><span class="n">end_offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_text_iter_get_offset</span><span class="p">(</span><span class="n">end</span><span class="p">);</span> +<a id="line-1861" name="line-1861"></a><span class="w"> </span><span class="n">get_ans_offsets</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_start</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans_end</span><span class="p">);</span> +<a id="line-1862" name="line-1862"></a> +<a id="line-1863" name="line-1863"></a><span class="w"> </span><span class="cm">/* Deleted part of ans */</span> +<a id="line-1864" name="line-1864"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">start_offset</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">ans_end</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">end_offset</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">ans_start</span><span class="p">)</span> +<a id="line-1865" name="line-1865"></a><span class="w"> </span><span class="n">clear_ans</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-1866" name="line-1866"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1867" name="line-1867"></a><span class="p">}</span> +<a id="line-1868" name="line-1868"></a> +<a id="line-1869" name="line-1869"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1870" name="line-1870"></a><span class="nf">insert_text_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span> +<a id="line-1871" name="line-1871"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="o">*</span><span class="n">location</span><span class="p">,</span> +<a id="line-1872" name="line-1872"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">,</span><span class="error2"><--- Parameter 'text' can be declared as pointer to const</span> +</span><a id="line-1873" name="line-1873"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">len</span><span class="p">,</span> +<a id="line-1874" name="line-1874"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1875" name="line-1875"></a><span class="p">{</span> +<a id="line-1876" name="line-1876"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="p">)</span> +<a id="line-1877" name="line-1877"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1878" name="line-1878"></a> +<a id="line-1879" name="line-1879"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">entered_multiply</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="s">"×"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1880" name="line-1880"></a> +<a id="line-1881" name="line-1881"></a><span class="w"> </span><span class="cm">/* Update thousands separators */</span> +<a id="line-1882" name="line-1882"></a><span class="w"> </span><span class="n">reformat_separators</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1883" name="line-1883"></a> +<a id="line-1884" name="line-1884"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"display"</span><span class="p">);</span> +<a id="line-1885" name="line-1885"></a><span class="p">}</span> +<a id="line-1886" name="line-1886"></a> +<a id="line-1887" name="line-1887"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1888" name="line-1888"></a><span class="nf">delete_range_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span> +<a id="line-1889" name="line-1889"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="p">,</span> +<a id="line-1890" name="line-1890"></a><span class="w"> </span><span class="n">GtkTextIter</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="p">,</span> +<a id="line-1891" name="line-1891"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">user_data</span><span class="p">)</span> +<a id="line-1892" name="line-1892"></a><span class="p">{</span> +<a id="line-1893" name="line-1893"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">in_reformat</span><span class="p">)</span> +<a id="line-1894" name="line-1894"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-1895" name="line-1895"></a> +<a id="line-1896" name="line-1896"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">entered_multiply</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-1897" name="line-1897"></a> +<a id="line-1898" name="line-1898"></a><span class="w"> </span><span class="cm">/* Update thousands separators */</span> +<a id="line-1899" name="line-1899"></a><span class="w"> </span><span class="n">reformat_separators</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1900" name="line-1900"></a> +<a id="line-1901" name="line-1901"></a><span class="w"> </span><span class="c1">// FIXME: A replace will emit this both for delete-range and insert-text, can it be avoided?</span> +<a id="line-1902" name="line-1902"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="s">"display"</span><span class="p">);</span> +<a id="line-1903" name="line-1903"></a><span class="p">}</span> +<a id="line-1904" name="line-1904"></a> +<a id="line-1905" name="line-1905"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-1906" name="line-1906"></a><span class="nf">math_equation_init</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-1907" name="line-1907"></a><span class="p">{</span> +<a id="line-1908" name="line-1908"></a><span class="w"> </span><span class="cm">/* Digits localized for the given language */</span> +<a id="line-1909" name="line-1909"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">digit_values</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F"</span><span class="p">);</span> +<a id="line-1910" name="line-1910"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">default_digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="s">"8"</span><span class="p">,</span><span class="w"> </span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="s">"A"</span><span class="p">,</span><span class="w"> </span><span class="s">"B"</span><span class="p">,</span><span class="w"> </span><span class="s">"C"</span><span class="p">,</span><span class="w"> </span><span class="s">"D"</span><span class="p">,</span><span class="w"> </span><span class="s">"E"</span><span class="p">,</span><span class="w"> </span><span class="s">"F"</span><span class="p">};</span> +<a id="line-1911" name="line-1911"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">digits</span><span class="p">;</span> +<a id="line-1912" name="line-1912"></a><span class="w"> </span><span class="cm">/* Default to using untranslated digits, this is because it doesn't make sense in most languages and we need to make this optional.</span> +<a id="line-1913" name="line-1913"></a><span class="cm"> * See https://bugzilla.gnome.org/show_bug.cgi?id=632661 */</span> +<a id="line-1914" name="line-1914"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">use_default_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1915" name="line-1915"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-1916" name="line-1916"></a> +<a id="line-1917" name="line-1917"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-1918" name="line-1918"></a> +<a id="line-1919" name="line-1919"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"insert-text"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">pre_insert_text_cb</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1920" name="line-1920"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"delete-range"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">pre_delete_range_cb</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1921" name="line-1921"></a><span class="hll"><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"insert-text"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">insert_text_cb</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span><span class="error2"><--- You might need to cast the function pointer here</span> +</span><a id="line-1922" name="line-1922"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"delete-range"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">delete_range_cb</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-1923" name="line-1923"></a> +<a id="line-1924" name="line-1924"></a><span class="w"> </span><span class="n">digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="p">(</span><span class="n">digit_values</span><span class="p">,</span><span class="w"> </span><span class="s">","</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-1925" name="line-1925"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1926" name="line-1926"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">use_default_digits</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-1927" name="line-1927"></a><span class="w"> </span><span class="n">use_default_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-1928" name="line-1928"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">default_digits</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-1929" name="line-1929"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1930" name="line-1930"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1931" name="line-1931"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-1932" name="line-1932"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1933" name="line-1933"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="p">(</span><span class="n">digits</span><span class="p">);</span> +<a id="line-1934" name="line-1934"></a> +<a id="line-1935" name="line-1935"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variables</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variables_new</span><span class="p">();</span> +<a id="line-1936" name="line-1936"></a> +<a id="line-1937" name="line-1937"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-1938" name="line-1938"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">status</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-1939" name="line-1939"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">word_size</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span> +<a id="line-1940" name="line-1940"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-1941" name="line-1941"></a><span class="w"> </span><span class="c1">// FIXME: Pick based on locale</span> +<a id="line-1942" name="line-1942"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-1943" name="line-1943"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-1944" name="line-1944"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">source_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-1945" name="line-1945"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">target_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-1946" name="line-1946"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">9</span><span class="p">);</span> +<a id="line-1947" name="line-1947"></a><span class="w"> </span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">queue</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_async_queue_new</span><span class="p">();</span> +<a id="line-1948" name="line-1948"></a> +<a id="line-1949" name="line-1949"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">equation</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">state</span><span class="p">.</span><span class="n">ans</span><span class="p">);</span> +<a id="line-1950" name="line-1950"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/28.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/28.html new file mode 100644 index 0000000..b25e6be --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/28.html @@ -0,0 +1,277 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-enums.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-enums.h</p> +<a href="28.html#line-8"> missingIncludeSystem 8</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a> +<a id="line-2" name="line-2"></a><span class="cm">/* This file is generated by glib-mkenums, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */</span> +<a id="line-3" name="line-3"></a> +<a id="line-4" name="line-4"></a> +<a id="line-5" name="line-5"></a><span class="cp">#ifndef __MATH_ENUMS_H__</span> +<a id="line-6" name="line-6"></a><span class="cp">#define __MATH_ENUMS_H__</span> +<a id="line-7" name="line-7"></a> +<a id="line-8" name="line-8"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-9" name="line-9"></a> +<a id="line-10" name="line-10"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cm">/* enumerations from "./mp-serializer.h" */</span> +<a id="line-13" name="line-13"></a><span class="n">GType</span><span class="w"> </span><span class="n">math_mp_display_format_get_type</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span><span class="w"> </span><span class="n">G_GNUC_CONST</span><span class="p">;</span> +<a id="line-14" name="line-14"></a><span class="cp">#define MP_TYPE_DISPLAY_FORMAT (math_mp_display_format_get_type ())</span> +<a id="line-15" name="line-15"></a><span class="n">G_END_DECLS</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#endif </span><span class="cm">/* __MATH_ENUMS_H__ */</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cm">/* Generated data ends here */</span> +<a id="line-20" name="line-20"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/29.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/29.html new file mode 100644 index 0000000..19439ce --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/29.html @@ -0,0 +1,491 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-history-entry.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-history-entry.c</p> +<a href="29.html#line-13"> missingIncludeSystem 13</a><a href="29.html#line-14"> missingIncludeSystem 14</a><a href="29.html#line-15"> missingIncludeSystem 15</a><a href="29.html#line-63"> constParameterPointer 63</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2020-2021 MATE developers</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> */</span> +<a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span><span class="error2"><--- Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-history-entry.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathHistoryEntryPrivate</span> +<a id="line-20" name="line-20"></a><span class="p">{</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">number</span><span class="p">;</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">equation_label</span><span class="p">;</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">answer_label</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="p">};</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="p">,</span><span class="w"> </span><span class="n">math_history_entry</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_LIST_BOX_ROW</span><span class="p">);</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="cp">#define UI_HISTORY_ENTRY_RESOURCE_PATH "/org/mate/calculator/ui/history-entry.ui"</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span> +<a id="line-33" name="line-33"></a><span class="nf">math_history_entry_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_history_entry_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">history_entry</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="p">}</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="kt">void</span><span class="w"> </span><span class="nf">answer_clicked_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">eventbutton</span><span class="p">,</span><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">);</span> +<a id="line-41" name="line-41"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-42" name="line-42"></a><span class="kt">void</span> +<a id="line-43" name="line-43"></a><span class="n">answer_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">eventbutton</span><span class="p">,</span><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">)</span> +<a id="line-44" name="line-44"></a><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_widget_get_tooltip_text</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">answer_label</span><span class="p">);</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">answer</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">answer</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="p">}</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="kt">void</span><span class="w"> </span><span class="n">equation_clicked_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">eventbutton</span><span class="p">,</span><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">);</span> +<a id="line-52" name="line-52"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-53" name="line-53"></a><span class="kt">void</span> +<a id="line-54" name="line-54"></a><span class="n">equation_clicked_cb</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventButton</span><span class="w"> </span><span class="o">*</span><span class="n">eventbutton</span><span class="p">,</span><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">)</span> +<a id="line-55" name="line-55"></a><span class="p">{</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_get_text</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation_label</span><span class="p">));</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">math_equation_set</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-60" name="line-60"></a><span class="p">}</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="kt">void</span> +<a id="line-63" name="line-63"></a><span class="hll"><span class="n">math_history_entry_insert_entry</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="p">,</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span><span class="error2"><--- Parameter 'answer' can be declared as pointer to const</span> +</span><a id="line-64" name="line-64"></a><span class="p">{</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="cp">#define get_widget(x) GTK_WIDGET(gtk_builder_get_object(builder, x))</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">builder</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">grid</span><span class="p">;</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">answer</span><span class="p">,</span><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number</span><span class="p">);</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">builder</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_new_from_resource</span><span class="p">(</span><span class="n">UI_HISTORY_ENTRY_RESOURCE_PATH</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">grid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_widget</span><span class="p">(</span><span class="s">"grid"</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">history_entry</span><span class="p">),</span><span class="w"> </span><span class="n">grid</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_widget</span><span class="p">(</span><span class="s">"equation_label"</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">answer_label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_widget</span><span class="p">(</span><span class="s">"answer_label"</span><span class="p">);</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation_label</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation_label</span><span class="p">),</span><span class="w"> </span><span class="n">equation</span><span class="p">);</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">gtk_builder_connect_signals</span><span class="p">(</span><span class="n">builder</span><span class="p">,</span><span class="w"> </span><span class="n">history_entry</span><span class="p">);</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">builder</span><span class="p">);</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="cp">#undef get_widget</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">math_history_entry_redisplay</span><span class="p">(</span><span class="n">history_entry</span><span class="p">,</span><span class="w"> </span><span class="n">serializer</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="p">}</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="kt">void</span> +<a id="line-88" name="line-88"></a><span class="n">math_history_entry_redisplay</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">,</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-89" name="line-89"></a><span class="p">{</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number</span><span class="p">);</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">gtk_widget_set_tooltip_text</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">answer_label</span><span class="p">,</span><span class="w"> </span><span class="n">answer</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gtk_label_set_text</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">answer_label</span><span class="p">),</span><span class="w"> </span><span class="n">answer</span><span class="p">);</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">answer</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-99" name="line-99"></a><span class="n">math_history_entry_get_equation</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">gtk_widget_get_tooltip_text</span><span class="p">(</span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation_label</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="p">}</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-105" name="line-105"></a><span class="n">math_history_entry_finalize</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">)</span> +<a id="line-106" name="line-106"></a><span class="p">{</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_HISTORY_ENTRY</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number</span><span class="p">);</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">math_history_entry_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="p">}</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-115" name="line-115"></a><span class="n">math_history_entry_class_init</span><span class="p">(</span><span class="n">MathHistoryEntryClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-116" name="line-116"></a><span class="p">{</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">finalize</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_entry_finalize</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="p">}</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-123" name="line-123"></a><span class="n">math_history_entry_init</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_entry_get_instance_private</span><span class="p">(</span><span class="n">history_entry</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">history_entry</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-127" name="line-127"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/3.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/3.html new file mode 100644 index 0000000..cf9c9ba --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/3.html @@ -0,0 +1,413 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/currency.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> currency.c</p> +<a href="3.html#line-11"> missingIncludeSystem 11</a><a href="3.html#line-12"> missingIncludeSystem 12</a><a href="3.html#line-65"> constParameterPointer 65</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span> +<span class="normal">61</span> +<span class="normal">62</span> +<span class="normal">63</span> +<span class="normal">64</span> +<span class="normal">65</span> +<span class="normal">66</span> +<span class="normal">67</span> +<span class="normal">68</span> +<span class="normal">69</span> +<span class="normal">70</span> +<span class="normal">71</span> +<span class="normal">72</span> +<span class="normal">73</span> +<span class="normal">74</span> +<span class="normal">75</span> +<span class="normal">76</span> +<span class="normal">77</span> +<span class="normal">78</span> +<span class="normal">79</span> +<span class="normal">80</span> +<span class="normal">81</span> +<span class="normal">82</span> +<span class="normal">83</span> +<span class="normal">84</span> +<span class="normal">85</span> +<span class="normal">86</span> +<span class="normal">87</span> +<span class="normal">88</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdarg.h></span><span class="error2"><--- Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"currency.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"currency-manager.h"</span><span class="c1"> // FIXME: Move out of here</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="k">struct</span><span class="w"> </span><span class="nc">CurrencyPrivate</span> +<a id="line-19" name="line-19"></a><span class="p">{</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">;</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-24" name="line-24"></a><span class="p">};</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">Currency</span><span class="p">,</span><span class="w"> </span><span class="n">currency</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="n">Currency</span><span class="w"> </span><span class="o">*</span> +<a id="line-29" name="line-29"></a><span class="nf">currency_new</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">,</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">)</span> +<a id="line-32" name="line-32"></a><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">currency_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">symbol</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">symbol</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">currency</span><span class="p">;</span> +<a id="line-41" name="line-41"></a><span class="p">}</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-44" name="line-44"></a><span class="nf">currency_get_name</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-45" name="line-45"></a><span class="p">{</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="p">}</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-51" name="line-51"></a><span class="nf">currency_get_display_name</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-52" name="line-52"></a><span class="p">{</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_name</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="p">}</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-58" name="line-58"></a><span class="nf">currency_get_symbol</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-59" name="line-59"></a><span class="p">{</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">symbol</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="p">}</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="kt">void</span> +<a id="line-65" name="line-65"></a><span class="hll"><span class="nf">currency_set_value</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span><span class="error2"><--- Parameter 'value' can be declared as pointer to const</span> +</span><a id="line-66" name="line-66"></a><span class="p">{</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">value</span><span class="p">);</span> +<a id="line-70" name="line-70"></a><span class="p">}</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span> +<a id="line-73" name="line-73"></a><span class="nf">currency_get_value</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-74" name="line-74"></a><span class="p">{</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">currency</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">&</span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">value</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="p">}</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-80" name="line-80"></a><span class="nf">currency_class_init</span><span class="p">(</span><span class="n">CurrencyClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-81" name="line-81"></a><span class="p">{</span> +<a id="line-82" name="line-82"></a><span class="p">}</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-85" name="line-85"></a><span class="nf">currency_init</span><span class="p">(</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">)</span> +<a id="line-86" name="line-86"></a><span class="p">{</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">currency</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">currency</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/30.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/30.html new file mode 100644 index 0000000..b376211 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/30.html @@ -0,0 +1,347 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-history-entry.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-history-entry.h</p> +<a href="30.html#line-16"> missingIncludeSystem 16</a><a href="30.html#line-17"> missingIncludeSystem 17</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2020-2021 MATE developers</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> */</span> +<a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="cp">#ifndef MATH_HISTORY_ENTRY_VIEW_H</span> +<a id="line-14" name="line-14"></a><span class="cp">#define MATH_HISTORY_ENTRY_VIEW_H</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-display.h"</span> +<a id="line-20" name="line-20"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-history.h"</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cp">#define MATH_HISTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_history_entry_get_type(), MathHistoryEntry))</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathHistoryEntryPrivate</span><span class="w"> </span><span class="n">MathHistoryEntryPrivate</span><span class="p">;</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-29" name="line-29"></a><span class="p">{</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">GtkListBoxRow</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">MathHistoryEntryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="p">}</span><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="p">;</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-35" name="line-35"></a><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">GtkListBoxRowClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-37" name="line-37"></a><span class="p">}</span><span class="w"> </span><span class="n">MathHistoryEntryClass</span><span class="p">;</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_history_entry_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span> +<a id="line-42" name="line-42"></a><span class="nf">math_history_entry_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="kt">void</span> +<a id="line-45" name="line-45"></a><span class="nf">math_history_entry_insert_entry</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="p">,</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="kt">void</span><span class="w"> </span> +<a id="line-48" name="line-48"></a><span class="nf">math_history_entry_redisplay</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">,</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-51" name="line-51"></a><span class="nf">math_history_entry_get_equation</span><span class="p">(</span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">history_entry</span><span class="p">);</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="n">G_END_DECLS</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="cp">#endif </span><span class="cm">/* MATH_HISTORY_ENTRY_VIEW_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/31.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/31.html new file mode 100644 index 0000000..1522415 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/31.html @@ -0,0 +1,367 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-history.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-history.h</p> +<a href="31.html#line-16"> missingIncludeSystem 16</a><a href="31.html#line-17"> missingIncludeSystem 17</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span> +<span class="normal">61</span> +<span class="normal">62</span> +<span class="normal">63</span> +<span class="normal">64</span> +<span class="normal">65</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2020-2021 MATE developers</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> */</span> +<a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="cp">#ifndef MATH_HISTORY_VIEW_H</span> +<a id="line-14" name="line-14"></a><span class="cp">#define MATH_HISTORY_VIEW_H</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-history-entry.h"</span> +<a id="line-20" name="line-20"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-display.h"</span> +<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-equation.h"</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cp">#define MATH_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_history_get_type(), MathHistory))</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathHistoryPrivate</span><span class="w"> </span><span class="n">MathHistoryPrivate</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-30" name="line-30"></a><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GtkScrolledWindow</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">MathHistoryPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="p">}</span><span class="w"> </span><span class="n">MathHistory</span><span class="p">;</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-36" name="line-36"></a><span class="p">{</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">GtkScrolledWindowClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="p">}</span><span class="w"> </span><span class="n">MathHistoryClass</span><span class="p">;</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_history_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span> +<a id="line-43" name="line-43"></a><span class="nf">math_history_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="kt">void</span> +<a id="line-46" name="line-46"></a><span class="nf">math_history_insert_entry</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="n">gpointer</span> +<a id="line-49" name="line-49"></a><span class="nf">math_history_get_entry_at</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">index</span><span class="p">);</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="kt">void</span> +<a id="line-52" name="line-52"></a><span class="nf">math_history_set_current</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="kt">int</span> +<a id="line-55" name="line-55"></a><span class="nf">math_history_get_current</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">);</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="kt">void</span> +<a id="line-58" name="line-58"></a><span class="nf">math_history_clear</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">);</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="kt">void</span> +<a id="line-61" name="line-61"></a><span class="nf">math_history_set_serializer</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="n">G_END_DECLS</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="cp">#endif </span><span class="cm">/* MATH_HISTORY_VIEW_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/32.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/32.html new file mode 100644 index 0000000..483c35f --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/32.html @@ -0,0 +1,561 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-history.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-history.c</p> +<a href="32.html#line-13"> missingIncludeSystem 13</a><a href="32.html#line-14"> missingIncludeSystem 14</a><a href="32.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2020-2021 MATE developers</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> *</span> +<a id="line-10" name="line-10"></a><span class="cm"> *</span> +<a id="line-11" name="line-11"></a><span class="cm"> */</span> +<a id="line-12" name="line-12"></a> +<a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span><span class="error2"><--- Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-history.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathHistoryPrivate</span> +<a id="line-20" name="line-20"></a><span class="p">{</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">;</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">last_equation</span><span class="p">;</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">current</span><span class="p">;</span><span class="w"> </span><span class="cm">/* 0 is the first entry, rows-1 the most recent entry */</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">rows</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">listbox</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="p">};</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="p">(</span><span class="n">MathHistory</span><span class="p">,</span><span class="w"> </span><span class="n">math_history</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_SCROLLED_WINDOW</span><span class="p">);</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span> +<a id="line-33" name="line-33"></a><span class="nf">math_history_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_history_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_ref</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">history</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="p">}</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-41" name="line-41"></a><span class="nf">scroll_bottom_cb</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">data</span><span class="p">)</span> +<a id="line-42" name="line-42"></a><span class="p">{</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjustment</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="c1">// TODO make this dynamic, do not hardcode listbox_height_request/number_of_rows</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="p">;</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">adjustment</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_list_box_get_adjustment</span><span class="p">(</span><span class="n">GTK_LIST_BOX</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">));</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">gtk_widget_get_size_request</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">width</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">height</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">gtk_adjustment_set_page_size</span><span class="p">(</span><span class="n">adjustment</span><span class="p">,</span><span class="w"> </span><span class="n">height</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_adjustment_get_upper</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment</span><span class="p">)</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_size</span><span class="w"> </span><span class="p">(</span><span class="n">adjustment</span><span class="p">));</span> +<a id="line-52" name="line-52"></a><span class="p">}</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="kt">void</span> +<a id="line-55" name="line-55"></a><span class="nf">math_history_insert_entry</span><span class="w"> </span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="p">)</span> +<a id="line-56" name="line-56"></a><span class="p">{</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_equation</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="p">}</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_entry_new</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">math_history_entry_insert_entry</span><span class="p">(</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">answer</span><span class="p">,</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">);</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">gtk_list_box_insert</span><span class="p">(</span><span class="n">GTK_LIST_BOX</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">entry</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">entry</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">entry</span><span class="p">));</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_equation</span><span class="p">);</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="o">++</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="s">"row-added"</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="p">}</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="kt">void</span> +<a id="line-79" name="line-79"></a><span class="nf">math_history_clear</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">)</span> +<a id="line-80" name="line-80"></a><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">children</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_container_get_children</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">));</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">children</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="p">(</span><span class="n">iter</span><span class="p">))</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">));</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">children</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="p">}</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="n">gpointer</span> +<a id="line-92" name="line-92"></a><span class="nf">math_history_get_entry_at</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">index</span><span class="p">)</span> +<a id="line-93" name="line-93"></a><span class="p">{</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">index</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">index</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="p">)</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MATH_HISTORY_ENTRY</span><span class="p">(</span><span class="n">gtk_list_box_get_row_at_index</span><span class="p">(</span><span class="n">GTK_LIST_BOX</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">),</span><span class="w"> </span><span class="n">index</span><span class="p">));</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="p">}</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="kt">void</span> +<a id="line-100" name="line-100"></a><span class="nf">math_history_set_current</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">value</span><span class="p">)</span> +<a id="line-101" name="line-101"></a><span class="p">{</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">CLAMP</span><span class="w"> </span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="p">}</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="kt">int</span> +<a id="line-106" name="line-106"></a><span class="nf">math_history_get_current</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">)</span> +<a id="line-107" name="line-107"></a><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current</span><span class="p">;</span> +<a id="line-109" name="line-109"></a><span class="p">}</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="kt">void</span> +<a id="line-112" name="line-112"></a><span class="nf">math_history_set_serializer</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-113" name="line-113"></a><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">serializer</span><span class="p">;</span> +<a id="line-115" name="line-115"></a> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">children</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">children</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_container_get_children</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">));</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">children</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_next</span><span class="p">(</span><span class="n">iter</span><span class="p">))</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">math_history_entry_redisplay</span><span class="p">(</span><span class="n">MATH_HISTORY_ENTRY</span><span class="p">(</span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">),</span><span class="w"> </span><span class="n">serializer</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">children</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="p">}</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-124" name="line-124"></a><span class="nf">math_history_class_init</span><span class="p">(</span><span class="n">MathHistoryClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-125" name="line-125"></a><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">g_signal_new</span><span class="p">(</span><span class="s">"row-added"</span><span class="p">,</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">),</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_FIRST</span><span class="p">,</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="p">}</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-139" name="line-139"></a><span class="nf">math_history_init</span><span class="p">(</span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">)</span> +<a id="line-140" name="line-140"></a><span class="p">{</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_get_instance_private</span><span class="p">(</span><span class="n">history</span><span class="p">);</span> +<a id="line-142" name="line-142"></a> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_shadow_type</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SHADOW_IN</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_policy</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_POLICY_NEVER</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_placement</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_CORNER_TOP_LEFT</span><span class="p">);</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">current</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">rows</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">last_equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="s">""</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_list_box_new</span><span class="p">();</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">gtk_list_box_set_selection_mode</span><span class="p">(</span><span class="n">GTK_LIST_BOX</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SELECTION_NONE</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">));</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">gtk_widget_set_valign</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">history</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">listbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_ALIGN_END</span><span class="p">);</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">gtk_widget_set_size_request</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">);</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">gtk_widget_set_can_focus</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="s">"row-added"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">scroll_bottom_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-162" name="line-162"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/33.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/33.html new file mode 100644 index 0000000..1be29e5 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/33.html @@ -0,0 +1,1001 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-preferences.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-preferences.c</p> +<a href="33.html#line-11"> missingIncludeSystem 11</a><a href="33.html#line-12"> missingIncludeSystem 12</a><a href="33.html#line-150"> unreadVariable 150</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-preferences.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"utility.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">PROP_EQUATION</span> +<a id="line-20" name="line-20"></a><span class="p">};</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathPreferencesDialogPrivate</span> +<a id="line-23" name="line-23"></a><span class="p">{</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">GtkBuilder</span><span class="w"> </span><span class="o">*</span><span class="n">ui</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="p">};</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathPreferencesDialog</span><span class="p">,</span><span class="w"> </span><span class="n">math_preferences</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_DIALOG</span><span class="p">);</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="cp">#define UI_DIALOGS_RESOURCE_PATH "/org/mate/calculator/ui/preferences.ui"</span> +<a id="line-31" name="line-31"></a><span class="cp">#define GET_WIDGET(ui, name) \</span> +<a id="line-32" name="line-32"></a><span class="cp"> GTK_WIDGET(gtk_builder_get_object(ui, name))</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span> +<a id="line-35" name="line-35"></a><span class="nf">math_preferences_dialog_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-36" name="line-36"></a><span class="p">{</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_preferences_get_type</span><span class="p">(),</span><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="p">}</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-41" name="line-41"></a><span class="nf">preferences_response_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">id</span><span class="p">)</span> +<a id="line-42" name="line-42"></a><span class="p">{</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-44" name="line-44"></a><span class="p">}</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-47" name="line-47"></a><span class="nf">preferences_dialog_delete_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="p">{</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">preferences_response_cb</span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="p">}</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="kt">void</span><span class="w"> </span><span class="nf">number_format_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-54" name="line-54"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-55" name="line-55"></a><span class="kt">void</span> +<a id="line-56" name="line-56"></a><span class="n">number_format_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-57" name="line-57"></a><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">));</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">math_equation_set_number_format</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="p">}</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="kt">void</span><span class="w"> </span><span class="n">angle_unit_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-70" name="line-70"></a><span class="kt">void</span> +<a id="line-71" name="line-71"></a><span class="n">angle_unit_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">));</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">math_equation_set_angle_units</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-81" name="line-81"></a><span class="p">}</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="kt">void</span><span class="w"> </span><span class="n">word_size_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-85" name="line-85"></a><span class="kt">void</span> +<a id="line-86" name="line-86"></a><span class="n">word_size_combobox_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-87" name="line-87"></a><span class="p">{</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">));</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gtk_combo_box_get_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">math_equation_set_word_size</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="kt">void</span><span class="w"> </span><span class="n">decimal_places_spin_change_value_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">spin</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-100" name="line-100"></a><span class="kt">void</span> +<a id="line-101" name="line-101"></a><span class="n">decimal_places_spin_change_value_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">spin</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-102" name="line-102"></a><span class="p">{</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_spin_button_get_value_as_int</span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="p">(</span><span class="n">spin</span><span class="p">));</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">math_equation_set_accuracy</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-107" name="line-107"></a><span class="p">}</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="kt">void</span><span class="w"> </span><span class="n">thousands_separator_check_toggled_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">check</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-111" name="line-111"></a><span class="kt">void</span> +<a id="line-112" name="line-112"></a><span class="n">thousands_separator_check_toggled_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">check</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-113" name="line-113"></a><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-115" name="line-115"></a> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_button_get_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">check</span><span class="p">));</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">math_equation_set_show_thousands_separators</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="p">}</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="kt">void</span><span class="w"> </span><span class="n">trailing_zeroes_check_toggled_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">check</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="n">G_MODULE_EXPORT</span> +<a id="line-122" name="line-122"></a><span class="kt">void</span> +<a id="line-123" name="line-123"></a><span class="n">trailing_zeroes_check_toggled_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">check</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_toggle_button_get_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">check</span><span class="p">));</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">math_equation_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="p">}</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-132" name="line-132"></a><span class="n">set_combo_box_from_int</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">combo</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">value</span><span class="p">)</span> +<a id="line-133" name="line-133"></a><span class="p">{</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">valid</span><span class="p">;</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">));</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-140" name="line-140"></a> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">valid</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">v</span><span class="p">;</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">gtk_tree_model_get</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">v</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">v</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">value</span><span class="p">)</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_iter_next</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">}</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">valid</span><span class="p">)</span> +<a id="line-150" name="line-150"></a><span class="hll"><span class="w"> </span><span class="n">valid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_tree_model_get_iter_first</span><span class="p">(</span><span class="n">model</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span><span class="error2"><--- Variable 'valid' is assigned a value that is never used.</span> +</span><a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">gtk_combo_box_set_active_iter</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">combo</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="p">}</span> +<a id="line-154" name="line-154"></a> +<a id="line-155" name="line-155"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-156" name="line-156"></a><span class="n">accuracy_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-157" name="line-157"></a><span class="p">{</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">gtk_spin_button_set_value</span><span class="p">(</span><span class="n">GTK_SPIN_BUTTON</span><span class="p">(</span><span class="n">gtk_builder_get_object</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"decimal_places_spin"</span><span class="p">)),</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">math_equation_get_accuracy</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">g_settings_set_int</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"accuracy"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_accuracy</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-161" name="line-161"></a><span class="p">}</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-164" name="line-164"></a><span class="n">show_thousands_separators_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-165" name="line-165"></a><span class="p">{</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">gtk_builder_get_object</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"thousands_separator_check"</span><span class="p">)),</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">math_equation_get_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"show-thousands"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_show_thousands_separators</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-169" name="line-169"></a><span class="p">}</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-172" name="line-172"></a><span class="n">show_trailing_zeroes_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-173" name="line-173"></a><span class="p">{</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">gtk_toggle_button_set_active</span><span class="p">(</span><span class="n">GTK_TOGGLE_BUTTON</span><span class="p">(</span><span class="n">gtk_builder_get_object</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"trailing_zeroes_check"</span><span class="p">)),</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">math_equation_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"show-zeroes"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-177" name="line-177"></a><span class="p">}</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-180" name="line-180"></a><span class="n">number_format_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-181" name="line-181"></a><span class="p">{</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">set_combo_box_from_int</span><span class="p">(</span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"number_format_combobox"</span><span class="p">),</span><span class="w"> </span><span class="n">math_equation_get_number_format</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">g_settings_set_enum</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"number-format"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_number_format</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-184" name="line-184"></a><span class="p">}</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-187" name="line-187"></a><span class="n">word_size_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-188" name="line-188"></a><span class="p">{</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">set_combo_box_from_int</span><span class="p">(</span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"word_size_combobox"</span><span class="p">),</span><span class="w"> </span><span class="n">math_equation_get_word_size</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">g_settings_set_int</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"word-size"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_word_size</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-191" name="line-191"></a><span class="p">}</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-194" name="line-194"></a><span class="n">angle_unit_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-195" name="line-195"></a><span class="p">{</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">set_combo_box_from_int</span><span class="p">(</span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"angle_unit_combobox"</span><span class="p">),</span><span class="w"> </span><span class="n">math_equation_get_angle_units</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">g_settings_set_enum</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"angle-units"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_angle_units</span><span class="p">(</span><span class="n">equation</span><span class="p">));</span> +<a id="line-198" name="line-198"></a><span class="p">}</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-201" name="line-201"></a><span class="n">create_gui</span><span class="p">(</span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-202" name="line-202"></a><span class="p">{</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">GtkTreeModel</span><span class="w"> </span><span class="o">*</span><span class="n">model</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">GtkTreeIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">GtkCellRenderer</span><span class="w"> </span><span class="o">*</span><span class="n">renderer</span><span class="p">;</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="o">**</span><span class="n">tokens</span><span class="p">;</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">objects</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s">"preferences_table"</span><span class="p">,</span><span class="w"> </span><span class="s">"angle_unit_model"</span><span class="p">,</span><span class="w"> </span><span class="s">"number_format_model"</span><span class="p">,</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="s">"word_size_model"</span><span class="p">,</span><span class="w"> </span><span class="s">"decimal_places_adjustment"</span><span class="p">,</span><span class="w"> </span><span class="s">"number_base_model"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">};</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="c1">// FIXME: Handle errors</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_builder_new</span><span class="p">();</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">gtk_builder_add_objects_from_resource</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="n">UI_DIALOGS_RESOURCE_PATH</span><span class="p">,</span><span class="w"> </span><span class="n">objects</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">)</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Error loading preferences UI: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">g_clear_error</span><span class="p">(</span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="cm">/* Title of preferences dialog */</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Preferences"</span><span class="p">));</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">gtk_dialog_add_button</span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="cm">/* Icon name on close button in preferences dialog */</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="s">"gtk-close"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_CLOSE</span><span class="p">);</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">"accessories-calculator"</span><span class="p">);</span> +<a id="line-228" name="line-228"></a> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">preferences_response_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="p">,</span><span class="w"> </span><span class="s">"delete-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">preferences_dialog_delete_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">gtk_dialog_get_content_area</span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="p">(</span><span class="n">dialog</span><span class="p">))),</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"preferences_table"</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-232" name="line-232"></a> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"angle_unit_combobox"</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="cm">/* Preferences dialog: Angle unit combo box: Use degrees for trigonometric calculations */</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Degrees"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="cm">/* Preferences dialog: Angle unit combo box: Use radians for trigonometric calculations */</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Radians"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_RADIANS</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="cm">/* Preferences dialog: Angle unit combo box: Use gradians for trigonometric calculations */</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Gradians"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_GRADIANS</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="p">();</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">gtk_cell_layout_add_attribute</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"number_format_combobox"</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">model</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_combo_box_get_model</span><span class="p">(</span><span class="n">GTK_COMBO_BOX</span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Automatic, e.g. 1234 (or scientific for large number 1.234×10^99) */</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Automatic"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Fixed, e.g. 1234 */</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Fixed"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_FIXED</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Scientific, e.g. 1.234×10^3 */</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Scientific"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_SCIENTIFIC</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">gtk_list_store_append</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">gtk_list_store_set</span><span class="p">(</span><span class="n">GTK_LIST_STORE</span><span class="p">(</span><span class="n">model</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="cm">/* Number display mode combo: Engineering, e.g. 1.234k */</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Engineering"</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_ENGINEERING</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="p">();</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">gtk_cell_layout_add_attribute</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-272" name="line-272"></a> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"word_size_combobox"</span><span class="p">);</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">renderer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_cell_renderer_text_new</span><span class="p">();</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">gtk_cell_layout_pack_start</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">gtk_cell_layout_add_attribute</span><span class="p">(</span><span class="n">GTK_CELL_LAYOUT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">renderer</span><span class="p">,</span><span class="w"> </span><span class="s">"text"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-277" name="line-277"></a> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="cm">/* Label used in preferences dialog. The %d is replaced by a spinbutton */</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Show %d decimal _places"</span><span class="p">);</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">tokens</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"%d"</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"decimal_places_label1"</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strstrip</span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="k">else</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">""</span><span class="p">;</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">string</span><span class="p">);</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="k">else</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">widget</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GET_WIDGET</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="s">"decimal_places_label2"</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">tokens</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strstrip</span><span class="p">(</span><span class="n">tokens</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="k">else</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">""</span><span class="p">;</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">gtk_label_set_text_with_mnemonic</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">string</span><span class="p">);</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="k">else</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-300" name="line-300"></a> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="p">(</span><span class="n">tokens</span><span class="p">);</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">gtk_builder_connect_signals</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">ui</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::accuracy"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">accuracy_cb</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::show-thousands-separators"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">show_thousands_separators_cb</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::show-trailing_zeroes"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">show_trailing_zeroes_cb</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::number-format"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">number_format_cb</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::word-size"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">word_size_cb</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::angle-units"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">angle_unit_cb</span><span class="p">),</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">accuracy_cb</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">show_thousands_separators_cb</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">show_trailing_zeroes_cb</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">number_format_cb</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">word_size_cb</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">angle_unit_cb</span><span class="p">(</span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">dialog</span><span class="p">);</span> +<a id="line-318" name="line-318"></a><span class="p">}</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-321" name="line-321"></a><span class="n">math_preferences_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-325" name="line-325"></a><span class="p">{</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_PREFERENCES</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">create_gui</span><span class="p">(</span><span class="n">self</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="p">}</span> +<a id="line-339" name="line-339"></a><span class="p">}</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-342" name="line-342"></a><span class="n">math_preferences_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-346" name="line-346"></a><span class="p">{</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-348" name="line-348"></a> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_PREFERENCES</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="p">}</span> +<a id="line-359" name="line-359"></a><span class="p">}</span> +<a id="line-360" name="line-360"></a> +<a id="line-361" name="line-361"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-362" name="line-362"></a><span class="n">math_preferences_class_init</span><span class="p">(</span><span class="n">MathPreferencesDialogClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-363" name="line-363"></a><span class="p">{</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-365" name="line-365"></a> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_preferences_get_property</span><span class="p">;</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_preferences_set_property</span><span class="p">;</span> +<a id="line-368" name="line-368"></a> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="p">(</span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="s">"Equation being configured"</span><span class="p">,</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">math_equation_get_type</span><span class="p">(),</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-376" name="line-376"></a><span class="p">}</span> +<a id="line-377" name="line-377"></a> +<a id="line-378" name="line-378"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-379" name="line-379"></a><span class="n">math_preferences_init</span><span class="p">(</span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">)</span> +<a id="line-380" name="line-380"></a><span class="p">{</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">dialog</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_preferences_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">dialog</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/34.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/34.html new file mode 100644 index 0000000..f72a03a --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/34.html @@ -0,0 +1,829 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-variable-popup.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-variable-popup.c</p> +<a href="34.html#line-11"> missingIncludeSystem 11</a><a href="34.html#line-12"> missingIncludeSystem 12</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span><span class="error2"><--- Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-variable-popup.h"</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">PROP_EQUATION</span> +<a id="line-19" name="line-19"></a><span class="p">};</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathVariablePopupPrivate</span> +<a id="line-22" name="line-22"></a><span class="p">{</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">variable_name_entry</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">add_variable_button</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="p">};</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathVariablePopup</span><span class="p">,</span><span class="w"> </span><span class="n">math_variable_popup</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_WINDOW</span><span class="p">);</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span> +<a id="line-33" name="line-33"></a><span class="nf">math_variable_popup_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_variable_popup_get_type</span><span class="p">(),</span><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-36" name="line-36"></a><span class="p">}</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-39" name="line-39"></a><span class="nf">variable_focus_out_event_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventFocus</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-40" name="line-40"></a><span class="p">{</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">(</span><span class="n">widget</span><span class="p">);</span> +<a id="line-42" name="line-42"></a><span class="p">}</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-45" name="line-45"></a><span class="nf">insert_variable_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-46" name="line-46"></a><span class="p">{</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"variable_name"</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">math_equation_insert</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">(</span><span class="n">gtk_widget_get_toplevel</span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-53" name="line-53"></a><span class="p">}</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-56" name="line-56"></a><span class="nf">variable_name_key_press_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-57" name="line-57"></a><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="cm">/* Can't have whitespace in names, so replace with underscores */</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_space</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Space</span><span class="p">)</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GDK_KEY_underscore</span><span class="p">;</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="p">}</span> +<a id="line-64" name="line-64"></a> +<a id="line-65" name="line-65"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-66" name="line-66"></a><span class="nf">variable_name_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-67" name="line-67"></a><span class="p">{</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_get_text</span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">));</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="p">,</span><span class="w"> </span><span class="n">text</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">);</span> +<a id="line-70" name="line-70"></a><span class="p">}</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-73" name="line-73"></a><span class="nf">add_variable_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-74" name="line-74"></a><span class="p">{</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_get_text</span><span class="p">(</span><span class="n">GTK_ENTRY</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">));</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">))</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">math_variables_set</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_is_result</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">))</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">math_variables_set</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_answer</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">else</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Can't add variable %s, the display is not a number"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">(</span><span class="n">gtk_widget_get_toplevel</span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="p">}</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-94" name="line-94"></a><span class="nf">save_variable_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-95" name="line-95"></a><span class="p">{</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"variable_name"</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_get_number</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">))</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">math_variables_set</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_equation_is_result</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">))</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">math_variables_set</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_answer</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="k">else</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Can't save variable %s, the display is not a number"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">(</span><span class="n">gtk_widget_get_toplevel</span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="p">}</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-112" name="line-112"></a><span class="nf">delete_variable_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-113" name="line-113"></a><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-115" name="line-115"></a> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="s">"variable_name"</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">math_variables_delete</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">gtk_widget_destroy</span><span class="p">(</span><span class="n">gtk_widget_get_toplevel</span><span class="p">(</span><span class="n">widget</span><span class="p">));</span> +<a id="line-120" name="line-120"></a><span class="p">}</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span> +<a id="line-123" name="line-123"></a><span class="nf">make_variable_entry</span><span class="p">(</span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">writable</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">hbox</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="p">;</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">hbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="p">)</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">{</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">value_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">math_equation_get_serializer</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"<b>%s</b> = %s"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">value_text</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">value_text</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">}</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">else</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"<b>%s</b>"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new</span><span class="p">();</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"variable_name"</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">));</span><span class="w"> </span><span class="c1">// FIXME: These will all leak memory</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">insert_variable_cb</span><span class="p">),</span><span class="w"> </span><span class="n">popup</span><span class="p">);</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">gtk_button_set_relief</span><span class="p">(</span><span class="n">GTK_BUTTON</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_RELIEF_NONE</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">button</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_label_new</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">gtk_label_set_use_markup</span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">gtk_widget_set_halign</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ALIGN_START</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">label</span><span class="p">);</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">writable</span><span class="p">)</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">{</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new</span><span class="p">();</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"variable_name"</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">));</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="p">(</span><span class="s">"document-save"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">save_variable_cb</span><span class="p">),</span><span class="w"> </span><span class="n">popup</span><span class="p">);</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">button</span><span class="p">);</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new</span><span class="p">();</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"variable_name"</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">));</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="p">(</span><span class="s">"edit-delete"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">hbox</span><span class="p">),</span><span class="w"> </span><span class="n">button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">button</span><span class="p">),</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">delete_variable_cb</span><span class="p">),</span><span class="w"> </span><span class="n">popup</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">button</span><span class="p">);</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">}</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">hbox</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="p">}</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-180" name="line-180"></a><span class="nf">math_variable_popup_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-184" name="line-184"></a><span class="p">{</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">names</span><span class="p">;</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">image</span><span class="p">;</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_VARIABLE_POPUP</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">names</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variables_get_names</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">));</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">aux</span><span class="p">;</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">aux</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variables_get</span><span class="p">(</span><span class="n">math_equation_get_variables</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_variable_entry</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">aux</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="p">}</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="p">(</span><span class="n">names</span><span class="p">);</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="c1">// TODO: Show greyed "variable name" text to give user a hint how to use</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_entry_new</span><span class="p">();</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">),</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">variable_name_key_press_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">),</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">variable_name_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">),</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">add_variable_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">entry</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">variable_name_entry</span><span class="p">);</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_button_new</span><span class="p">();</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">gtk_widget_set_sensitive</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="p">),</span><span class="w"> </span><span class="s">"clicked"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">add_variable_cb</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">image</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="p">(</span><span class="s">"list-add"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_BUTTON</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="p">),</span><span class="w"> </span><span class="n">image</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">entry</span><span class="p">),</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">image</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">add_variable_button</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_variable_entry</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="s">"rand"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">make_variable_entry</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="s">"ans"</span><span class="p">,</span><span class="w"> </span><span class="n">math_equation_get_answer</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">entry</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="p">}</span> +<a id="line-240" name="line-240"></a><span class="p">}</span> +<a id="line-241" name="line-241"></a> +<a id="line-242" name="line-242"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-243" name="line-243"></a><span class="nf">math_variable_popup_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-247" name="line-247"></a><span class="p">{</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-249" name="line-249"></a> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_VARIABLE_POPUP</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">}</span> +<a id="line-260" name="line-260"></a><span class="p">}</span> +<a id="line-261" name="line-261"></a> +<a id="line-262" name="line-262"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-263" name="line-263"></a><span class="nf">math_variable_popup_class_init</span><span class="p">(</span><span class="n">MathVariablePopupClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-264" name="line-264"></a><span class="p">{</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variable_popup_get_property</span><span class="p">;</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variable_popup_set_property</span><span class="p">;</span> +<a id="line-269" name="line-269"></a> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="p">(</span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="s">"Equation being controlled"</span><span class="p">,</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">math_equation_get_type</span><span class="p">(),</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-277" name="line-277"></a><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-280" name="line-280"></a><span class="nf">math_variable_popup_init</span><span class="p">(</span><span class="n">MathVariablePopup</span><span class="w"> </span><span class="o">*</span><span class="n">popup</span><span class="p">)</span> +<a id="line-281" name="line-281"></a><span class="p">{</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variable_popup_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">popup</span><span class="p">);</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">gtk_window_set_decorated</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gtk_window_set_skip_taskbar_hint</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-288" name="line-288"></a> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="cm">/* Destroy this window when it loses focus */</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="s">"focus-out-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">variable_focus_out_event_cb</span><span class="p">),</span><span class="w"> </span><span class="n">popup</span><span class="p">);</span> +<a id="line-291" name="line-291"></a> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">gtk_box_set_homogeneous</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">popup</span><span class="p">),</span><span class="w"> </span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">);</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">popup</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">vbox</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/35.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/35.html new file mode 100644 index 0000000..6f611ab --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/35.html @@ -0,0 +1,583 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-variables.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-variables.c</p> +<a href="35.html#line-11"> missingIncludeSystem 11</a><a href="35.html#line-12"> missingIncludeSystem 12</a><a href="35.html#line-90"> constVariablePointer 90</a><a href="35.html#line-91"> constVariablePointer 91</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-variables.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathVariablesPrivate</span> +<a id="line-18" name="line-18"></a><span class="p">{</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">file_name</span><span class="p">;</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">GHashTable</span><span class="w"> </span><span class="o">*</span><span class="n">registers</span><span class="p">;</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">;</span> +<a id="line-22" name="line-22"></a><span class="p">};</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathVariables</span><span class="p">,</span><span class="w"> </span><span class="n">math_variables</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span> +<a id="line-27" name="line-27"></a><span class="nf">math_variables_new</span><span class="p">()</span> +<a id="line-28" name="line-28"></a><span class="p">{</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="w"> </span><span class="p">(</span><span class="n">math_variables_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-30" name="line-30"></a><span class="p">}</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-33" name="line-33"></a><span class="nf">registers_load</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="p">{</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="kt">FILE</span><span class="w"> </span><span class="o">*</span><span class="n">f</span><span class="p">;</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">line</span><span class="p">[</span><span class="mi">1024</span><span class="p">];</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fopen</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_name</span><span class="p">,</span><span class="w"> </span><span class="s">"r"</span><span class="p">);</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">f</span><span class="p">)</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">g_hash_table_remove_all</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">fgets</span><span class="p">(</span><span class="n">line</span><span class="p">,</span><span class="w"> </span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="n">f</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="p">{</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">;</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strchr</span><span class="p">(</span><span class="n">line</span><span class="p">,</span><span class="w"> </span><span class="sc">'='</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">value</span><span class="p">)</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strstrip</span><span class="p">(</span><span class="n">line</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strstrip</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">),</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="k">else</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="n">t</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">t</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">}</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">}</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">fclose</span><span class="p">(</span><span class="n">f</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="p">}</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-72" name="line-72"></a><span class="nf">registers_save</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">)</span> +<a id="line-73" name="line-73"></a><span class="p">{</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">dir</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="kt">FILE</span><span class="w"> </span><span class="o">*</span><span class="n">f</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">GHashTableIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">dir</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_path_get_dirname</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_name</span><span class="p">);</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_mkdir_with_parents</span><span class="p">(</span><span class="n">dir</span><span class="p">,</span><span class="w"> </span><span class="mo">0700</span><span class="p">);</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">dir</span><span class="p">);</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">fopen</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_name</span><span class="p">,</span><span class="w"> </span><span class="s">"w"</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">f</span><span class="p">)</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">g_hash_table_iter_init</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_iter_next</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">val</span><span class="p">))</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">{</span> +<a id="line-90" name="line-90"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">key</span><span class="p">;</span><span class="error2"><--- Variable 'name' can be declared as pointer to const</span> +</span><a id="line-91" name="line-91"></a><span class="hll"><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">val</span><span class="p">;</span><span class="error2"><--- Variable 'value' can be declared as pointer to const</span> +</span><a id="line-92" name="line-92"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">number</span><span class="p">;</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">fprintf</span><span class="p">(</span><span class="n">f</span><span class="p">,</span><span class="w"> </span><span class="s">"%s=%s</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">number</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">number</span><span class="p">);</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">}</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">fclose</span><span class="p">(</span><span class="n">f</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="p">}</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="c1">// FIXME: Sort</span> +<a id="line-102" name="line-102"></a><span class="n">gchar</span><span class="w"> </span><span class="o">**</span> +<a id="line-103" name="line-103"></a><span class="nf">math_variables_get_names</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">)</span> +<a id="line-104" name="line-104"></a><span class="p">{</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">GHashTableIter</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">key</span><span class="p">;</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">names</span><span class="p">;</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">variables</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">names</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_size</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">));</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">g_hash_table_iter_init</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">);</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">g_hash_table_iter_next</span><span class="p">(</span><span class="o">&</span><span class="n">iter</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">key</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">))</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">{</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">key</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">names</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-122" name="line-122"></a> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">names</span><span class="p">;</span> +<a id="line-124" name="line-124"></a><span class="p">}</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="kt">void</span> +<a id="line-127" name="line-127"></a><span class="nf">math_variables_set</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">)</span> +<a id="line-128" name="line-128"></a><span class="p">{</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">;</span> +<a id="line-130" name="line-130"></a> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">variables</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">g_hash_table_insert</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">,</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">),</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">registers_save</span><span class="p">(</span><span class="n">variables</span><span class="p">);</span> +<a id="line-140" name="line-140"></a><span class="p">}</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span> +<a id="line-143" name="line-143"></a><span class="nf">math_variables_get</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-144" name="line-144"></a><span class="p">{</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">variables</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_hash_table_lookup</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="p">}</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="kt">void</span> +<a id="line-151" name="line-151"></a><span class="nf">math_variables_delete</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">variables</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">g_hash_table_remove</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">registers_save</span><span class="p">(</span><span class="n">variables</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-160" name="line-160"></a><span class="nf">math_variables_class_init</span><span class="w"> </span><span class="p">(</span><span class="n">MathVariablesClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="p">{</span> +<a id="line-162" name="line-162"></a><span class="p">}</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-165" name="line-165"></a><span class="nf">math_variables_init</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">)</span> +<a id="line-166" name="line-166"></a><span class="p">{</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_variables_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">variables</span><span class="p">);</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">registers</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_hash_table_new_full</span><span class="p">(</span><span class="n">g_str_hash</span><span class="p">,</span><span class="w"> </span><span class="n">g_str_equal</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">,</span><span class="w"> </span><span class="n">g_free</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">file_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_build_filename</span><span class="p">(</span><span class="n">g_get_user_data_dir</span><span class="p">(),</span><span class="w"> </span><span class="s">"mate-calc"</span><span class="p">,</span><span class="w"> </span><span class="s">"registers"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_SCIENTIFIC</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">50</span><span class="p">);</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">mp_serializer_set_radix</span><span class="p">(</span><span class="n">variables</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="sc">'.'</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">registers_load</span><span class="p">(</span><span class="n">variables</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/36.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/36.html new file mode 100644 index 0000000..1a443d4 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/36.html @@ -0,0 +1,1681 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-window.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-window.c</p> +<a href="36.html#line-13"> missingIncludeSystem 13</a><a href="36.html#line-16"> missingIncludeSystem 16</a><a href="36.html#line-17"> missingIncludeSystem 17</a><a href="36.html#line-18"> missingIncludeSystem 18</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifdef HAVE_CONFIG_H</span> +<a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><config.h></span><span class="error2"><--- Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="cp">#endif</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gdk/gdkkeysyms.h></span><span class="error2"><--- Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-window.h"</span> +<a id="line-21" name="line-21"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-history.h"</span> +<a id="line-22" name="line-22"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"utility.h"</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="c1">// gtk3 hack</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="cp">#ifndef GDK_KEY_F1</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="cp">#define GDK_KEY_F1 GDK_F1</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="cp">#endif</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="cp">#ifndef GDK_KEY_W</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="cp">#define GDK_KEY_W GDK_w</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="cp">#endif</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="cp">#ifndef GDK_KEY_Z</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="cp">#define GDK_KEY_Z GDK_z</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cp">#endif</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">PROP_SHOW_HISTORY</span> +<a id="line-41" name="line-41"></a><span class="p">};</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MathWindowPrivate</span> +<a id="line-44" name="line-44"></a><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_bar</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span><span class="n">display</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">MathHistory</span><span class="w"> </span><span class="o">*</span><span class="n">history</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">MathPreferencesDialog</span><span class="w"> </span><span class="o">*</span><span class="n">preferences_dialog</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">right_aligned</span><span class="p">;</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">show_history</span><span class="p">;</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">mode_basic_menu_item</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">mode_advanced_menu_item</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">mode_financial_menu_item</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">mode_programming_menu_item</span><span class="p">;</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">view_history_menu_item</span><span class="p">;</span> +<a id="line-58" name="line-58"></a><span class="p">};</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MathWindow</span><span class="p">,</span><span class="w"> </span><span class="n">math_window</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_TYPE_WINDOW</span><span class="p">);</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="k">enum</span> +<a id="line-63" name="line-63"></a><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">QUIT</span><span class="p">,</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">LAST_SIGNAL</span> +<a id="line-66" name="line-66"></a><span class="p">};</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">LAST_SIGNAL</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="p">};</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span> +<a id="line-71" name="line-71"></a><span class="nf">math_window_new</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">math_window_get_type</span><span class="p">(),</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span><span class="w"> </span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="p">}</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">math_window_get_menu_bar</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-78" name="line-78"></a><span class="p">{</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">;</span> +<a id="line-80" name="line-80"></a><span class="p">}</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span> +<a id="line-83" name="line-83"></a><span class="nf">math_window_get_equation</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-84" name="line-84"></a><span class="p">{</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="p">}</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="n">MathDisplay</span><span class="w"> </span><span class="o">*</span> +<a id="line-90" name="line-90"></a><span class="nf">math_window_get_display</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-91" name="line-91"></a><span class="p">{</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">;</span> +<a id="line-94" name="line-94"></a><span class="p">}</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span> +<a id="line-97" name="line-97"></a><span class="nf">math_window_get_buttons</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-98" name="line-98"></a><span class="p">{</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">;</span> +<a id="line-101" name="line-101"></a><span class="p">}</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="n">gboolean</span> +<a id="line-104" name="line-104"></a><span class="nf">math_window_get_show_history</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-105" name="line-105"></a><span class="p">{</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_history</span><span class="p">;</span> +<a id="line-108" name="line-108"></a><span class="p">}</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></a><span class="kt">void</span> +<a id="line-111" name="line-111"></a><span class="nf">math_window_set_show_history</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-112" name="line-112"></a><span class="p">{</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_window_get_show_history</span><span class="p">(</span><span class="n">window</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_history</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">visible</span><span class="p">)</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">));</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">}</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="k">else</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">{</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">gtk_widget_hide</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">));</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">gtk_window_resize</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span><span class="w"> </span><span class="c1">//FIXME: is there a better way to shrink window size to its children?</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">}</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">g_object_notify</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">"show-history"</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="kt">void</span> +<a id="line-135" name="line-135"></a><span class="nf">math_window_critical_error</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">title</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">contents</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">dialog</span><span class="p">;</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">window</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">title</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="p">(</span><span class="n">contents</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-142" name="line-142"></a> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new</span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">,</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">GTK_BUTTONS_NONE</span><span class="p">,</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">title</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">gtk_message_dialog_format_secondary_text</span><span class="p">(</span><span class="n">GTK_MESSAGE_DIALOG</span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">contents</span><span class="p">);</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">gtk_dialog_add_buttons</span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="p">(</span><span class="n">dialog</span><span class="p">),</span><span class="w"> </span><span class="s">"gtk-quit"</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_RESPONSE_ACCEPT</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">gtk_dialog_run</span><span class="p">(</span><span class="n">GTK_DIALOG</span><span class="p">(</span><span class="n">dialog</span><span class="p">));</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">QUIT</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="p">}</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">mode_changed_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-157" name="line-157"></a><span class="p">{</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">mode</span><span class="p">;</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">gtk_check_menu_item_get_active</span><span class="p">(</span><span class="n">GTK_CHECK_MENU_ITEM</span><span class="p">(</span><span class="n">menu</span><span class="p">)))</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="p">{</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="p">}</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">mode</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">GPOINTER_TO_INT</span><span class="p">(</span><span class="n">g_object_get_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="s">"calcmode"</span><span class="p">));</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">math_buttons_set_mode</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="p">}</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">history_check_toggled_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-170" name="line-170"></a><span class="p">{</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_check_menu_item_get_active</span><span class="p">(</span><span class="n">GTK_CHECK_MENU_ITEM</span><span class="p">(</span><span class="n">menu</span><span class="p">));</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">math_window_set_show_history</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="p">}</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">show_history_cb</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">)</span> +<a id="line-178" name="line-178"></a><span class="p">{</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view_history_menu_item</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">gtk_check_menu_item_set_active</span><span class="p">(</span><span class="n">GTK_CHECK_MENU_ITEM</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">math_window_get_show_history</span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">g_settings_set_boolean</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"show-history"</span><span class="p">,</span><span class="w"> </span><span class="n">math_window_get_show_history</span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-183" name="line-183"></a><span class="p">}</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">clear_history_cb</span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-186" name="line-186"></a><span class="p">{</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">math_history_clear</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="p">}</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">show_preferences_cb</span><span class="p">(</span><span class="n">GtkMenuItem</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-191" name="line-191"></a><span class="p">{</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preferences_dialog</span><span class="p">)</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="p">{</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preferences_dialog</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_preferences_dialog_new</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">gtk_window_set_transient_for</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preferences_dialog</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">));</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">gtk_window_present</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">preferences_dialog</span><span class="p">));</span> +<a id="line-199" name="line-199"></a><span class="p">}</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-202" name="line-202"></a><span class="nf">key_press_cb</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-203" name="line-203"></a><span class="p">{</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">g_signal_emit_by_name</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">,</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="cm">/* Keyboard navigation for history */</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_MOD1_MASK</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Up</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Down</span><span class="p">))</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">{</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="p">{</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Up</span><span class="p">:</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">math_history_set_current</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_Down</span><span class="p">:</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">math_history_set_current</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">}</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">MathHistoryEntry</span><span class="w"> </span><span class="o">*</span><span class="n">entry</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_get_entry_at</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="n">math_history_get_current</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">));</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">entry</span><span class="p">)</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">{</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">equation_string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_entry_get_equation</span><span class="p">(</span><span class="n">entry</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">math_equation_set</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">equation_string</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">equation_string</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="p">}</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">}</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">math_buttons_get_mode</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PROGRAMMING</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">event</span><span class="o">-></span><span class="n">keyval</span><span class="p">)</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="p">{</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="cm">/* Binary */</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_b</span><span class="p">:</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="cm">/* Octal */</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_o</span><span class="p">:</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="cm">/* Decimal */</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_d</span><span class="p">:</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="cm">/* Hexdecimal */</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">GDK_KEY_h</span><span class="p">:</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">math_equation_set_base</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="p">}</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="p">}</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="p">}</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">delete_cb</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">GdkEvent</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span> +<a id="line-255" name="line-255"></a><span class="p">{</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">QUIT</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="p">}</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">copy_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-260" name="line-260"></a><span class="p">{</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">math_equation_copy</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="p">}</span> +<a id="line-263" name="line-263"></a> +<a id="line-264" name="line-264"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">paste_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-265" name="line-265"></a><span class="p">{</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">math_equation_paste</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-267" name="line-267"></a><span class="p">}</span> +<a id="line-268" name="line-268"></a> +<a id="line-269" name="line-269"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">undo_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-270" name="line-270"></a><span class="p">{</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">math_equation_undo</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-272" name="line-272"></a><span class="p">}</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">redo_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-275" name="line-275"></a><span class="p">{</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">math_equation_redo</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-277" name="line-277"></a><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">help_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-280" name="line-280"></a><span class="p">{</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-282" name="line-282"></a> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">gtk_show_uri_on_window</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="s">"help:mate-calc"</span><span class="p">,</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">gtk_get_current_event_time</span><span class="p">(),</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">{</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">d</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="cm">/* Translators: Error message displayed when unable to launch help browser */</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">message</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Unable to open help file"</span><span class="p">);</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_message_dialog_new</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_DIALOG_MODAL</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GTK_DIALOG_DESTROY_WITH_PARENT</span><span class="p">,</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">GTK_MESSAGE_ERROR</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_BUTTONS_CLOSE</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">message</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">gtk_message_dialog_format_secondary_text</span><span class="p">(</span><span class="n">GTK_MESSAGE_DIALOG</span><span class="p">(</span><span class="n">d</span><span class="p">),</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">error</span><span class="o">-></span><span class="n">message</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">d</span><span class="p">,</span><span class="w"> </span><span class="s">"response"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">gtk_widget_destroy</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">gtk_window_present</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="w"> </span><span class="p">(</span><span class="n">d</span><span class="p">));</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">g_error_free</span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="p">}</span> +<a id="line-302" name="line-302"></a><span class="p">}</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="cp">#define ABOUT_GROUP "About"</span> +<a id="line-305" name="line-305"></a><span class="cp">#define EMAILIFY(string) (g_strdelimit ((string), "%", '@'))</span> +<a id="line-306" name="line-306"></a> +<a id="line-307" name="line-307"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">about_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="o">*</span><span class="w"> </span><span class="n">window</span><span class="p">)</span> +<a id="line-308" name="line-308"></a><span class="p">{</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">documenters</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Sun Microsystems"</span><span class="p">),</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"MATE Documentation Team"</span><span class="p">),</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="nb">NULL</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="p">};</span> +<a id="line-314" name="line-314"></a> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="cm">/* The license this software is under (GPL2+) */</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">license</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"MATE Calculator is free software; you can redistribute it and/or modify "</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="s">"it under the terms of the GNU General Public License as published by "</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="s">"the Free Software Foundation; either version 2 of the License, or "</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="s">"(at your option) any later version."</span><span class="p">),</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"MATE Calculator is distributed in the hope that it will be useful, "</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="s">"but WITHOUT ANY WARRANTY; without even the implied warranty of "</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="s">"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="s">"GNU General Public License for more details."</span><span class="p">),</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"You should have received a copy of the GNU General Public License "</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="s">"along with MATE Calculator; if not, write to the Free Software Foundation, Inc., "</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="s">"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA."</span><span class="p">)</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="p">};</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">license_trans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strjoin</span><span class="w"> </span><span class="p">(</span><span class="s">"</span><span class="se">\n\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">license</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">license</span><span class="p">[</span><span class="mi">1</span><span class="p">]),</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">license</span><span class="p">[</span><span class="mi">2</span><span class="p">]),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-331" name="line-331"></a> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">GKeyFile</span><span class="w"> </span><span class="o">*</span><span class="n">key_file</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">GBytes</span><span class="w"> </span><span class="o">*</span><span class="n">bytes</span><span class="p">;</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">guint8</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">;</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">data_len</span><span class="p">;</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">GError</span><span class="w"> </span><span class="o">*</span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">authors</span><span class="p">;</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">n_authors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">comments</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">bytes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_resources_lookup_data</span><span class="w"> </span><span class="p">(</span><span class="s">"/org/mate/calculator/ui/mate-calc.about"</span><span class="p">,</span><span class="w"> </span><span class="n">G_RESOURCE_LOOKUP_FLAGS_NONE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">g_assert_no_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-343" name="line-343"></a> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_bytes_get_data</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">data_len</span><span class="p">);</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">key_file</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">g_key_file_load_from_data</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">data_len</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error</span><span class="p">);</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">g_assert_no_error</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-348" name="line-348"></a> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">authors</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_key_file_get_string_list</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">,</span><span class="w"> </span><span class="n">ABOUT_GROUP</span><span class="p">,</span><span class="w"> </span><span class="s">"Authors"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_authors</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-350" name="line-350"></a> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_key_file_free</span><span class="w"> </span><span class="p">(</span><span class="n">key_file</span><span class="p">);</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="n">g_bytes_unref</span><span class="w"> </span><span class="p">(</span><span class="n">bytes</span><span class="p">);</span> +<a id="line-353" name="line-353"></a> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">n_authors</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">i</span><span class="p">)</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="n">authors</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">EMAILIFY</span><span class="w"> </span><span class="p">(</span><span class="n">authors</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">p</span><span class="p">;</span> +<a id="line-358" name="line-358"></a> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">documenters</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">;</span><span class="w"> </span><span class="o">++</span><span class="n">p</span><span class="p">)</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">);</span> +<a id="line-361" name="line-361"></a> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">comments</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="w"> </span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Calculator with financial and scientific modes.</span><span class="se">\n</span><span class="s">Using GNU MPFR %s and GNU MPC %s"</span><span class="p">),</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">mpfr_get_version</span><span class="w"> </span><span class="p">(),</span><span class="w"> </span><span class="n">mpc_get_version</span><span class="w"> </span><span class="p">());</span> +<a id="line-364" name="line-364"></a> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">gtk_show_about_dialog</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="s">"program-name"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"MATE Calculator"</span><span class="p">),</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="s">"version"</span><span class="p">,</span><span class="w"> </span><span class="n">VERSION</span><span class="p">,</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="s">"title"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"About MATE Calculator"</span><span class="p">),</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="s">"copyright"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Copyright </span><span class="se">\xc2\xa9</span><span class="s"> 1986–2010 The GCalctool authors</span><span class="se">\n</span><span class="s">"</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="s">"Copyright </span><span class="se">\xc2\xa9</span><span class="s"> 2011-2021 MATE developers"</span><span class="p">),</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="s">"license"</span><span class="p">,</span><span class="w"> </span><span class="n">license_trans</span><span class="p">,</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="s">"comments"</span><span class="p">,</span><span class="w"> </span><span class="n">comments</span><span class="p">,</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="s">"authors"</span><span class="p">,</span><span class="w"> </span><span class="n">authors</span><span class="p">,</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="s">"documenters"</span><span class="p">,</span><span class="w"> </span><span class="n">documenters</span><span class="p">,</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="s">"translator_credits"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"translator-credits"</span><span class="p">),</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="s">"wrap-license"</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="s">"website"</span><span class="p">,</span><span class="w"> </span><span class="n">PACKAGE_URL</span><span class="p">,</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="s">"icon-name"</span><span class="p">,</span><span class="w"> </span><span class="s">"accessories-calculator"</span><span class="p">,</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="s">"logo-icon-name"</span><span class="p">,</span><span class="w"> </span><span class="s">"accessories-calculator"</span><span class="p">,</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-381" name="line-381"></a> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">comments</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">g_strfreev</span><span class="w"> </span><span class="p">(</span><span class="n">authors</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">license_trans</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="p">}</span> +<a id="line-386" name="line-386"></a> +<a id="line-387" name="line-387"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-388" name="line-388"></a><span class="nf">scroll_changed_cb</span><span class="p">(</span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjustment</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-389" name="line-389"></a><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">right_aligned</span><span class="p">)</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">gtk_adjustment_set_value</span><span class="p">(</span><span class="n">adjustment</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_adjustment_get_upper</span><span class="p">(</span><span class="n">adjustment</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_size</span><span class="p">(</span><span class="n">adjustment</span><span class="p">));</span> +<a id="line-392" name="line-392"></a><span class="p">}</span> +<a id="line-393" name="line-393"></a> +<a id="line-394" name="line-394"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-395" name="line-395"></a><span class="nf">scroll_value_changed_cb</span><span class="p">(</span><span class="n">GtkAdjustment</span><span class="w"> </span><span class="o">*</span><span class="n">adjustment</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-396" name="line-396"></a><span class="p">{</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_adjustment_get_value</span><span class="p">(</span><span class="n">adjustment</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">gtk_adjustment_get_upper</span><span class="p">(</span><span class="n">adjustment</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">gtk_adjustment_get_page_size</span><span class="p">(</span><span class="n">adjustment</span><span class="p">))</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">right_aligned</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="k">else</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">right_aligned</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="p">}</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">button_mode_changed_cb</span><span class="p">(</span><span class="n">MathButtons</span><span class="w"> </span><span class="o">*</span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">spec</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-404" name="line-404"></a><span class="p">{</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-406" name="line-406"></a> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">math_buttons_get_mode</span><span class="p">(</span><span class="n">buttons</span><span class="p">))</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="p">{</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">BASIC</span><span class="p">:</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_basic_menu_item</span><span class="p">;</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">ADVANCED</span><span class="p">:</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_advanced_menu_item</span><span class="p">;</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINANCIAL</span><span class="p">:</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_financial_menu_item</span><span class="p">;</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROGRAMMING</span><span class="p">:</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_programming_menu_item</span><span class="p">;</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">}</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">gtk_check_menu_item_set_active</span><span class="p">(</span><span class="n">GTK_CHECK_MENU_ITEM</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">g_settings_set_enum</span><span class="p">(</span><span class="n">g_settings_var</span><span class="p">,</span><span class="w"> </span><span class="s">"button-mode"</span><span class="p">,</span><span class="w"> </span><span class="n">math_buttons_get_mode</span><span class="p">(</span><span class="n">buttons</span><span class="p">));</span> +<a id="line-426" name="line-426"></a><span class="p">}</span> +<a id="line-427" name="line-427"></a> +<a id="line-428" name="line-428"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">add_menu</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_bar</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-429" name="line-429"></a><span class="p">{</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">;</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new_with_mnemonic</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="p">(</span><span class="n">menu_bar</span><span class="p">),</span><span class="w"> </span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_new</span><span class="p">();</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">gtk_menu_set_reserve_toggle_size</span><span class="p">(</span><span class="n">GTK_MENU</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">gtk_menu_item_set_submenu</span><span class="p">(</span><span class="n">GTK_MENU_ITEM</span><span class="p">(</span><span class="n">menu_item</span><span class="p">),</span><span class="w"> </span><span class="n">menu</span><span class="p">);</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">menu</span><span class="p">;</span> +<a id="line-441" name="line-441"></a><span class="p">}</span> +<a id="line-442" name="line-442"></a> +<a id="line-443" name="line-443"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-444" name="line-444"></a><span class="nf">update_history_cb</span><span class="w"> </span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">equation_string</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">answer</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-445" name="line-445"></a><span class="p">{</span><span class="w"> </span><span class="cm">/* Recieves signal emitted by a MathEquation object for updating history */</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">math_history_insert_entry</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="n">equation_string</span><span class="p">,</span><span class="w"> </span><span class="n">answer</span><span class="p">);</span><span class="w"> </span><span class="cm">/* Sends current equation string and answer for updating History-View */</span> +<a id="line-447" name="line-447"></a><span class="p">}</span> +<a id="line-448" name="line-448"></a> +<a id="line-449" name="line-449"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-450" name="line-450"></a><span class="nf">history_set_serializer_cb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-451" name="line-451"></a><span class="p">{</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_equation_get_serializer</span><span class="p">(</span><span class="n">equation</span><span class="p">);</span> +<a id="line-453" name="line-453"></a> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">math_history_set_serializer</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">,</span><span class="w"> </span><span class="n">serializer</span><span class="p">);</span> +<a id="line-455" name="line-455"></a><span class="p">}</span> +<a id="line-456" name="line-456"></a> +<a id="line-457" name="line-457"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">quit_cb</span><span class="p">(</span><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">MathWindow</span><span class="o">*</span><span class="w"> </span><span class="n">window</span><span class="p">)</span> +<a id="line-458" name="line-458"></a><span class="p">{</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">g_signal_emit</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">QUIT</span><span class="p">],</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="p">}</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">add_menu_item</span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="n">GCallback</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span><span class="w"> </span><span class="n">gpointer</span><span class="w"> </span><span class="n">callback_data</span><span class="p">)</span> +<a id="line-463" name="line-463"></a><span class="p">{</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="n">gtk_menu_shell_append</span><span class="p">(</span><span class="n">GTK_MENU_SHELL</span><span class="p">(</span><span class="n">menu</span><span class="p">),</span><span class="w"> </span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">callback</span><span class="p">)</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="p">{</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">callback</span><span class="p">,</span><span class="w"> </span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">}</span> +<a id="line-471" name="line-471"></a> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-473" name="line-473"></a><span class="p">}</span> +<a id="line-474" name="line-474"></a> +<a id="line-475" name="line-475"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">radio_menu_item_new</span><span class="p">(</span><span class="n">GSList</span><span class="w"> </span><span class="o">**</span><span class="n">group</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-476" name="line-476"></a><span class="p">{</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_radio_menu_item_new_with_mnemonic</span><span class="p">(</span><span class="o">*</span><span class="n">group</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-478" name="line-478"></a> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="o">*</span><span class="n">group</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_radio_menu_item_get_group</span><span class="p">(</span><span class="n">GTK_RADIO_MENU_ITEM</span><span class="p">(</span><span class="n">menu_item</span><span class="p">));</span> +<a id="line-480" name="line-480"></a> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-482" name="line-482"></a><span class="p">}</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="k">static</span><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="nf">gtk_image_menu_item_new_from_icon</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">icon_name</span><span class="p">,</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">label_name</span><span class="p">,</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">GtkAccelGroup</span><span class="w"> </span><span class="o">*</span><span class="n">accel_group</span><span class="p">)</span> +<a id="line-487" name="line-487"></a><span class="p">{</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">concat</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strconcat</span><span class="w"> </span><span class="p">(</span><span class="n">label_name</span><span class="p">,</span><span class="w"> </span><span class="s">" "</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">box</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ORIENTATION_HORIZONTAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_image_new_from_icon_name</span><span class="w"> </span><span class="p">(</span><span class="n">icon_name</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ICON_SIZE_MENU</span><span class="p">);</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">label</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_accel_label_new</span><span class="w"> </span><span class="p">(</span><span class="n">concat</span><span class="p">);</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_item_new</span><span class="w"> </span><span class="p">();</span> +<a id="line-493" name="line-493"></a> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">concat</span><span class="p">);</span> +<a id="line-495" name="line-495"></a> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">box</span><span class="p">),</span><span class="w"> </span><span class="n">icon</span><span class="p">);</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="n">gtk_label_set_use_underline</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">gtk_label_set_xalign</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="mf">0.0</span><span class="p">);</span> +<a id="line-500" name="line-500"></a> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">gtk_accel_label_set_accel_widget</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_ACCEL_LABEL</span><span class="w"> </span><span class="p">(</span><span class="n">label</span><span class="p">),</span><span class="w"> </span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-502" name="line-502"></a> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">gtk_box_pack_end</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_BOX</span><span class="w"> </span><span class="p">(</span><span class="n">box</span><span class="p">),</span><span class="w"> </span><span class="n">label</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-504" name="line-504"></a> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">),</span><span class="w"> </span><span class="n">box</span><span class="p">);</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">gtk_widget_show_all</span><span class="w"> </span><span class="p">(</span><span class="n">menu_item</span><span class="p">);</span> +<a id="line-508" name="line-508"></a> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-510" name="line-510"></a><span class="p">}</span> +<a id="line-511" name="line-511"></a> +<a id="line-512" name="line-512"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">create_menu</span><span class="p">(</span><span class="n">MathWindow</span><span class="o">*</span><span class="w"> </span><span class="n">window</span><span class="p">)</span> +<a id="line-513" name="line-513"></a><span class="p">{</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">GtkAccelGroup</span><span class="o">*</span><span class="w"> </span><span class="n">accel_group</span><span class="p">;</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="n">menu</span><span class="p">;</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="o">*</span><span class="w"> </span><span class="n">menu_item</span><span class="p">;</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">GSList</span><span class="o">*</span><span class="w"> </span><span class="n">group</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-518" name="line-518"></a> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">accel_group</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_accel_group_new</span><span class="p">();</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">gtk_window_add_accel_group</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">);</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="cm">/* Calculator menu */</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="cp">#define CALCULATOR_MENU_LABEL _("_Calculator")</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="cm">/* Mode menu */</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="cp">#define MODE_MENU_LABEL _("_Mode")</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="cm">/* View menu */</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="cp">#define VIEW_MENU_LABEL _("_View")</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="cm">/* Help menu label */</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="cp">#define HELP_MENU_LABEL _("_Help")</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="cm">/* Basic menu label */</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="cp">#define MODE_BASIC_LABEL _("_Basic")</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="cm">/* Advanced menu label */</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="cp">#define MODE_ADVANCED_LABEL _("_Advanced")</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="cm">/* Financial menu label */</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="cp">#define MODE_FINANCIAL_LABEL _("_Financial")</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="cm">/* Programming menu label */</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="cp">#define MODE_PROGRAMMING_LABEL _("_Programming")</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="cm">/* History menu label */</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="cp">#define VIEW_HISTORY_LABEL _("_History")</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="cm">/* Help>Contents menu label */</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="cp">#define HELP_CONTENTS_LABEL _("_Contents")</span> +<a id="line-542" name="line-542"></a> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">,</span><span class="w"> </span><span class="n">CALCULATOR_MENU_LABEL</span><span class="p">);</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"edit-copy"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Copy"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">copy_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_C</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"edit-paste"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Paste"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">paste_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_V</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"edit-undo"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Undo"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">undo_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Z</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"edit-redo"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Redo"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">redo_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Z</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"edit-clear"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Clear History"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">clear_history_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Delete</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_separator_menu_item_new</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"preferences-desktop"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Preferences"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">show_preferences_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_separator_menu_item_new</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"application-exit"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_Quit"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">quit_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_Q</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_W</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-560" name="line-560"></a> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">,</span><span class="w"> </span><span class="n">MODE_MENU_LABEL</span><span class="p">);</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_basic_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">radio_menu_item_new</span><span class="p">(</span><span class="o">&</span><span class="n">group</span><span class="p">,</span><span class="w"> </span><span class="n">MODE_BASIC_LABEL</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">mode_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_basic_menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">"calcmode"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">BASIC</span><span class="p">));</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_advanced_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">radio_menu_item_new</span><span class="p">(</span><span class="o">&</span><span class="n">group</span><span class="p">,</span><span class="w"> </span><span class="n">MODE_ADVANCED_LABEL</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">mode_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_advanced_menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">"calcmode"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">ADVANCED</span><span class="p">));</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_financial_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">radio_menu_item_new</span><span class="p">(</span><span class="o">&</span><span class="n">group</span><span class="p">,</span><span class="w"> </span><span class="n">MODE_FINANCIAL_LABEL</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">mode_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_financial_menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">"calcmode"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">FINANCIAL</span><span class="p">));</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_programming_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">radio_menu_item_new</span><span class="p">(</span><span class="o">&</span><span class="n">group</span><span class="p">,</span><span class="w"> </span><span class="n">MODE_PROGRAMMING_LABEL</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">mode_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">g_object_set_data</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">mode_programming_menu_item</span><span class="p">),</span><span class="w"> </span><span class="s">"calcmode"</span><span class="p">,</span><span class="w"> </span><span class="n">GINT_TO_POINTER</span><span class="p">(</span><span class="n">PROGRAMMING</span><span class="p">));</span> +<a id="line-570" name="line-570"></a> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">,</span><span class="w"> </span><span class="n">VIEW_MENU_LABEL</span><span class="p">);</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view_history_menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_check_menu_item_new_with_mnemonic</span><span class="p">(</span><span class="n">VIEW_HISTORY_LABEL</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">history_check_toggled_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">view_history_menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_H</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_CONTROL_MASK</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">GDK_SHIFT_MASK</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-574" name="line-574"></a> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">menu</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">,</span><span class="w"> </span><span class="n">HELP_MENU_LABEL</span><span class="p">);</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">menu_item</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"help-browser"</span><span class="p">,</span><span class="w"> </span><span class="n">HELP_CONTENTS_LABEL</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">help_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">gtk_widget_add_accelerator</span><span class="p">(</span><span class="n">menu_item</span><span class="p">,</span><span class="w"> </span><span class="s">"activate"</span><span class="p">,</span><span class="w"> </span><span class="n">accel_group</span><span class="p">,</span><span class="w"> </span><span class="n">GDK_KEY_F1</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_ACCEL_VISIBLE</span><span class="p">);</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">add_menu_item</span><span class="p">(</span><span class="n">menu</span><span class="p">,</span><span class="w"> </span><span class="n">gtk_image_menu_item_new_from_icon</span><span class="p">(</span><span class="s">"help-about"</span><span class="p">,</span><span class="n">_</span><span class="p">(</span><span class="s">"_About"</span><span class="p">),</span><span class="w"> </span><span class="n">accel_group</span><span class="p">),</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">about_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-579" name="line-579"></a><span class="p">}</span> +<a id="line-580" name="line-580"></a> +<a id="line-581" name="line-581"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-582" name="line-582"></a><span class="nf">create_gui</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-583" name="line-583"></a><span class="p">{</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">main_vbox</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">vbox</span><span class="p">;</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">scrolled_window</span><span class="p">;</span> +<a id="line-586" name="line-586"></a> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">main_vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">main_vbox</span><span class="p">);</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">main_vbox</span><span class="p">);</span> +<a id="line-590" name="line-590"></a> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_menu_bar_new</span><span class="p">();</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">main_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">menu_bar</span><span class="p">);</span> +<a id="line-594" name="line-594"></a> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">create_menu</span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-596" name="line-596"></a> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">vbox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_box_new</span><span class="p">(</span><span class="n">GTK_ORIENTATION_VERTICAL</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">gtk_container_set_border_width</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">main_vbox</span><span class="p">),</span><span class="w"> </span><span class="n">vbox</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">vbox</span><span class="p">);</span> +<a id="line-601" name="line-601"></a> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_history_new</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"history"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">update_history_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::show-history"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">show_history_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">show_history_cb</span><span class="p">(</span><span class="n">window</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="s">"display-changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">history_set_serializer_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">history_set_serializer_cb</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">history</span><span class="p">),</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">scrolled_window</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">gtk_scrolled_window_new</span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_policy</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_POLICY_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="n">GTK_POLICY_NEVER</span><span class="p">);</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">gtk_scrolled_window_set_shadow_type</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_SHADOW_IN</span><span class="p">);</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">gtk_scrolled_window_get_hadjustment</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">)),</span><span class="w"> </span><span class="s">"changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">scroll_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">gtk_scrolled_window_get_hadjustment</span><span class="p">(</span><span class="n">GTK_SCROLLED_WINDOW</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">)),</span><span class="w"> </span><span class="s">"value-changed"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">scroll_value_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">right_aligned</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">);</span> +<a id="line-618" name="line-618"></a> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_display_new_with_equation</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">gtk_container_add</span><span class="p">(</span><span class="n">GTK_CONTAINER</span><span class="p">(</span><span class="n">scrolled_window</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">));</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display</span><span class="p">));</span> +<a id="line-622" name="line-622"></a> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_buttons_new</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="s">"notify::mode"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">button_mode_changed_cb</span><span class="p">),</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">button_mode_changed_cb</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">window</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">gtk_box_pack_start</span><span class="p">(</span><span class="n">GTK_BOX</span><span class="p">(</span><span class="n">vbox</span><span class="p">),</span><span class="w"> </span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">gtk_widget_show</span><span class="p">(</span><span class="n">GTK_WIDGET</span><span class="p">(</span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">buttons</span><span class="p">));</span> +<a id="line-628" name="line-628"></a><span class="p">}</span> +<a id="line-629" name="line-629"></a> +<a id="line-630" name="line-630"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-631" name="line-631"></a><span class="nf">math_window_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-635" name="line-635"></a><span class="p">{</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-637" name="line-637"></a> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_WINDOW</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-639" name="line-639"></a> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_value_get_object</span><span class="p">(</span><span class="n">value</span><span class="p">);</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="n">create_gui</span><span class="p">(</span><span class="n">self</span><span class="p">);</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_HISTORY</span><span class="p">:</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">math_window_set_show_history</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="p">}</span> +<a id="line-652" name="line-652"></a><span class="p">}</span> +<a id="line-653" name="line-653"></a> +<a id="line-654" name="line-654"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-655" name="line-655"></a><span class="nf">math_window_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-659" name="line-659"></a><span class="p">{</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="p">;</span> +<a id="line-661" name="line-661"></a> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MATH_WINDOW</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-663" name="line-663"></a> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_EQUATION</span><span class="p">:</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">g_value_set_object</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">equation</span><span class="p">);</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_HISTORY</span><span class="p">:</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">math_window_get_show_history</span><span class="p">(</span><span class="n">self</span><span class="p">));</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="p">}</span> +<a id="line-675" name="line-675"></a><span class="p">}</span> +<a id="line-676" name="line-676"></a> +<a id="line-677" name="line-677"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-678" name="line-678"></a><span class="nf">math_window_class_init</span><span class="p">(</span><span class="n">MathWindowClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-679" name="line-679"></a><span class="p">{</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-681" name="line-681"></a> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_window_get_property</span><span class="p">;</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_window_set_property</span><span class="p">;</span> +<a id="line-684" name="line-684"></a> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">g_param_spec_object</span><span class="p">(</span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="s">"equation"</span><span class="p">,</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="s">"Equation being calculated"</span><span class="p">,</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">math_equation_get_type</span><span class="p">(),</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">G_PARAM_CONSTRUCT_ONLY</span><span class="p">));</span> +<a id="line-692" name="line-692"></a> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">PROP_EQUATION</span><span class="p">,</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="p">(</span><span class="s">"show-history"</span><span class="p">,</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="s">"show-history"</span><span class="p">,</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="s">"Show-history"</span><span class="p">,</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-700" name="line-700"></a> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">signals</span><span class="p">[</span><span class="n">QUIT</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_signal_new</span><span class="p">(</span><span class="s">"quit"</span><span class="p">,</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="n">G_TYPE_FROM_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">klass</span><span class="p">),</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">G_SIGNAL_RUN_LAST</span><span class="p">,</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">G_STRUCT_OFFSET</span><span class="w"> </span><span class="p">(</span><span class="n">MathWindowClass</span><span class="p">,</span><span class="w"> </span><span class="n">quit</span><span class="p">),</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">g_cclosure_marshal_VOID__VOID</span><span class="p">,</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">G_TYPE_NONE</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-708" name="line-708"></a><span class="p">}</span> +<a id="line-709" name="line-709"></a> +<a id="line-710" name="line-710"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-711" name="line-711"></a><span class="nf">math_window_init</span><span class="p">(</span><span class="n">MathWindow</span><span class="w"> </span><span class="o">*</span><span class="n">window</span><span class="p">)</span> +<a id="line-712" name="line-712"></a><span class="p">{</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">window</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">math_window_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">window</span><span class="p">);</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">gtk_window_set_title</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="cm">/* Title of main window */</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Calculator"</span><span class="p">));</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">gtk_window_set_icon_name</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">"accessories-calculator"</span><span class="p">);</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">gtk_window_set_role</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">"mate-calc"</span><span class="p">);</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">gtk_window_set_resizable</span><span class="p">(</span><span class="n">GTK_WINDOW</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">g_signal_connect_after</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">"key-press-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">key_press_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">g_signal_connect</span><span class="p">(</span><span class="n">G_OBJECT</span><span class="p">(</span><span class="n">window</span><span class="p">),</span><span class="w"> </span><span class="s">"delete-event"</span><span class="p">,</span><span class="w"> </span><span class="n">G_CALLBACK</span><span class="p">(</span><span class="n">delete_cb</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-722" name="line-722"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/37.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/37.html new file mode 100644 index 0000000..9d03500 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/37.html @@ -0,0 +1,639 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-binary.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-binary.c</p> +<a href="37.html#line-12"> missingIncludeSystem 12</a><a href="37.html#line-69"> uninitvar 69</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="c1">// FIXME: Make dynamic</span> +<a id="line-18" name="line-18"></a><span class="cp">#define MAX_DIGITS 1000</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"0123456789ABCDEF"</span><span class="p">;</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">hex_to_int</span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="n">digit</span><span class="p">)</span> +<a id="line-23" name="line-23"></a><span class="p">{</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">digit</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="sc">'0'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="sc">'9'</span><span class="p">)</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'0'</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">digit</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="sc">'A'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="sc">'F'</span><span class="p">)</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'A'</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">digit</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="sc">'f'</span><span class="p">)</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-31" name="line-31"></a><span class="p">}</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-34" name="line-34"></a><span class="nf">to_hex_string</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-35" name="line-35"></a><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">;</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_FIXED</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="p">}</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-47" name="line-47"></a><span class="nf">mp_bitwise</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">bitwise_operator</span><span class="p">)(</span><span class="kt">int</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="p">),</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="p">{</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">text1</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">text2</span><span class="p">,</span><span class="w"> </span><span class="n">text_out</span><span class="p">[</span><span class="n">MAX_DIGITS</span><span class="p">],</span><span class="w"> </span><span class="n">text_out2</span><span class="p">[</span><span class="n">MAX_DIGITS</span><span class="p">];</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">offset1</span><span class="p">,</span><span class="w"> </span><span class="n">offset2</span><span class="p">,</span><span class="w"> </span><span class="n">offset_out</span><span class="p">;</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">text1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">to_hex_string</span><span class="p">(</span><span class="n">x</span><span class="p">);</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">text2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">to_hex_string</span><span class="p">(</span><span class="n">y</span><span class="p">);</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">offset1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">text1</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">offset2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">text2</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">offset_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">wordlen</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset_out</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">offset_out</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">offset1</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">offset2</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">offset1</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="n">offset2</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="p">}</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset_out</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">offset_out</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">offset1</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">offset_out</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">offset2</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text1</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text2</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="s">"Overflow. Try a bigger word size"</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">}</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="cm">/* Perform bitwise operator on each character from right to left */</span> +<a id="line-69" name="line-69"></a><span class="hll"><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">text_out</span><span class="p">[</span><span class="n">offset_out</span><span class="o">+</span><span class="mi">1</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">offset_out</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">offset_out</span><span class="o">--</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="error2"><--- Uninitialized variable: text_out</span> +</span><a id="line-70" name="line-70"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">v1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">v2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset1</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">v1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hex_to_int</span><span class="p">(</span><span class="n">text1</span><span class="p">[</span><span class="n">offset1</span><span class="p">]);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">offset1</span><span class="o">--</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">}</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">offset2</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">v2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">hex_to_int</span><span class="p">(</span><span class="n">text2</span><span class="p">[</span><span class="n">offset2</span><span class="p">]);</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">offset2</span><span class="o">--</span><span class="p">;</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">}</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">text_out</span><span class="p">[</span><span class="n">offset_out</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">bitwise_operator</span><span class="p">(</span><span class="n">v1</span><span class="p">,</span><span class="w"> </span><span class="n">v2</span><span class="p">)];</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">}</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">snprintf</span><span class="p">(</span><span class="n">text_out2</span><span class="p">,</span><span class="w"> </span><span class="n">MAX_DIGITS</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">text_out</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">text_out2</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text1</span><span class="p">);</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">text2</span><span class="p">);</span> +<a id="line-87" name="line-87"></a><span class="p">}</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">mp_bitwise_and</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">v1</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">v2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">v1</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="n">v2</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> +<a id="line-90" name="line-90"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">mp_bitwise_or</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">v1</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">v2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">v1</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="n">v2</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> +<a id="line-91" name="line-91"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">mp_bitwise_xor</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">v1</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">v2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">v1</span><span class="w"> </span><span class="o">^</span><span class="w"> </span><span class="n">v2</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> +<a id="line-92" name="line-92"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="nf">mp_bitwise_not</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">v1</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">dummy</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">v1</span><span class="w"> </span><span class="o">^</span><span class="w"> </span><span class="mh">0xF</span><span class="p">;</span><span class="w"> </span><span class="p">}</span> +<a id="line-93" name="line-93"></a> +<a id="line-94" name="line-94"></a><span class="kt">bool</span> +<a id="line-95" name="line-95"></a><span class="nf">mp_is_overflow</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">)</span> +<a id="line-96" name="line-96"></a><span class="p">{</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">is_overflow</span><span class="p">;</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp1</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="o">&</span><span class="n">tmp1</span><span class="p">,</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp2</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">is_overflow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">tmp2</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp1</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp2</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">is_overflow</span><span class="p">;</span> +<a id="line-106" name="line-106"></a><span class="p">}</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="kt">void</span> +<a id="line-109" name="line-109"></a><span class="nf">mp_and</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-110" name="line-110"></a><span class="p">{</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">{</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when boolean AND attempted on non-integer values */</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Boolean AND is only defined for positive integers"</span><span class="p">));</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">}</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">mp_bitwise</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">mp_bitwise_and</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="p">}</span> +<a id="line-119" name="line-119"></a> +<a id="line-120" name="line-120"></a><span class="kt">void</span> +<a id="line-121" name="line-121"></a><span class="nf">mp_or</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-122" name="line-122"></a><span class="p">{</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when boolean OR attempted on non-integer values */</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Boolean OR is only defined for positive integers"</span><span class="p">));</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">}</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">mp_bitwise</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">mp_bitwise_or</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="p">}</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="kt">void</span> +<a id="line-133" name="line-133"></a><span class="nf">mp_xor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-134" name="line-134"></a><span class="p">{</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when boolean XOR attempted on non-integer values */</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Boolean XOR is only defined for positive integers"</span><span class="p">));</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span> +<a id="line-140" name="line-140"></a> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">mp_bitwise</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">mp_bitwise_xor</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-142" name="line-142"></a><span class="p">}</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="kt">void</span> +<a id="line-145" name="line-145"></a><span class="nf">mp_not</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-146" name="line-146"></a><span class="p">{</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-148" name="line-148"></a> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when boolean NOT attempted on non-integer values */</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Boolean NOT is only defined for positive integers"</span><span class="p">));</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">}</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">mp_bitwise</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="n">mp_bitwise_not</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">wordlen</span><span class="p">);</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-159" name="line-159"></a><span class="p">}</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="kt">void</span> +<a id="line-162" name="line-162"></a><span class="nf">mp_shift</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">count</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-163" name="line-163"></a><span class="p">{</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="n">x</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when bit shift attempted on non-integer values */</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Shift is only possible on integer values"</span><span class="p">));</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">multiplier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">multiplier</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">count</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">count</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">multiplier</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">multiplier</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">multiplier</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="p">}</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="o">-</span><span class="n">count</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">multiplier</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">multiplier</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">multiplier</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">multiplier</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="p">}</span> +<a id="line-185" name="line-185"></a> +<a id="line-186" name="line-186"></a><span class="kt">void</span> +<a id="line-187" name="line-187"></a><span class="nf">mp_ones_complement</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-188" name="line-188"></a><span class="p">{</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">mp_bitwise</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">mp_bitwise_xor</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">wordlen</span><span class="p">);</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">mp_not</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="p">}</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="kt">void</span> +<a id="line-197" name="line-197"></a><span class="nf">mp_twos_complement</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-198" name="line-198"></a><span class="p">{</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">mp_ones_complement</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="w"> </span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/38.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/38.html new file mode 100644 index 0000000..0047ef2 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/38.html @@ -0,0 +1,933 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-convert.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-convert.c</p> +<a href="38.html#line-12"> missingIncludeSystem 12</a><a href="38.html#line-13"> missingIncludeSystem 13</a><a href="38.html#line-14"> missingIncludeSystem 14</a><a href="38.html#line-15"> missingIncludeSystem 15</a><a href="38.html#line-16"> missingIncludeSystem 16</a><a href="38.html#line-17"> missingIncludeSystem 17</a><a href="38.html#line-158"> arrayIndexOutOfBounds 158</a><a href="38.html#line-159"> arrayIndexOutOfBounds 159</a><a href="38.html#line-169"> arrayIndexOutOfBounds 169</a><a href="38.html#line-199"> invalidscanf 199</a><a href="38.html#line-223"> knownConditionTrueFalse 223</a><a href="38.html#line-229"> variableScope 229</a><a href="38.html#line-229"> constVariable 229</a><a href="38.html#line-230"> variableScope 230</a><a href="38.html#line-230"> constVariable 230</a><a href="38.html#line-317"> knownConditionTrueFalse 317</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><ctype.h></span><span class="error2"><--- Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span><span class="error2"><--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><langinfo.h></span><span class="error2"><--- Include file: <langinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="kt">void</span> +<a id="line-22" name="line-22"></a><span class="nf">mp_set_from_mp</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-23" name="line-23"></a><span class="p">{</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">mpc_set</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-25" name="line-25"></a><span class="p">}</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="kt">void</span> +<a id="line-28" name="line-28"></a><span class="nf">mp_set_from_double</span><span class="p">(</span><span class="kt">double</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-29" name="line-29"></a><span class="p">{</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">mpc_set_d</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">dx</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-31" name="line-31"></a><span class="p">}</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="kt">void</span> +<a id="line-34" name="line-34"></a><span class="nf">mp_set_from_integer</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-35" name="line-35"></a><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">mpc_set_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="p">}</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="kt">void</span> +<a id="line-40" name="line-40"></a><span class="nf">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">ulong</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-41" name="line-41"></a><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">mpc_set_ui</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-43" name="line-43"></a><span class="p">}</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="kt">void</span> +<a id="line-46" name="line-46"></a><span class="nf">mp_set_from_fraction</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">denominator</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-47" name="line-47"></a><span class="p">{</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">denominator</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">numerator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">numerator</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">denominator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">denominator</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="p">}</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">denominator</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">denominator</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="p">}</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="kt">void</span> +<a id="line-59" name="line-59"></a><span class="nf">mp_set_from_polar</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">theta</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-60" name="line-60"></a><span class="p">{</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">mp_cos</span><span class="p">(</span><span class="n">theta</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">mp_sin</span><span class="p">(</span><span class="n">theta</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">mp_set_from_complex</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="p">}</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="kt">void</span> +<a id="line-75" name="line-75"></a><span class="nf">mp_set_from_complex</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-76" name="line-76"></a><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">mpc_set_fr_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-78" name="line-78"></a><span class="p">}</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="kt">void</span> +<a id="line-81" name="line-81"></a><span class="nf">mp_set_from_random</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-82" name="line-82"></a><span class="p">{</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">mp_set_from_double</span><span class="p">(</span><span class="n">drand48</span><span class="p">(),</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="p">}</span> +<a id="line-85" name="line-85"></a> +<a id="line-86" name="line-86"></a><span class="kt">long</span> +<a id="line-87" name="line-87"></a><span class="nf">mp_to_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-88" name="line-88"></a><span class="p">{</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_get_si</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-90" name="line-90"></a><span class="p">}</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="n">ulong</span> +<a id="line-93" name="line-93"></a><span class="nf">mp_to_unsigned_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-94" name="line-94"></a><span class="p">{</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_get_ui</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="kt">float</span> +<a id="line-99" name="line-99"></a><span class="nf">mp_to_float</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_get_flt</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="p">}</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="kt">double</span> +<a id="line-105" name="line-105"></a><span class="nf">mp_to_double</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-106" name="line-106"></a><span class="p">{</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_get_d</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-108" name="line-108"></a><span class="p">}</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-111" name="line-111"></a><span class="nf">char_val</span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-112" name="line-112"></a><span class="p">{</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">j</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="kt">size_t</span><span class="w"> </span><span class="n">offset</span><span class="p">;</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">digits</span><span class="p">[][</span><span class="mi">10</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{{</span><span class="s">"٠"</span><span class="p">,</span><span class="w"> </span><span class="s">"١"</span><span class="p">,</span><span class="w"> </span><span class="s">"٢"</span><span class="p">,</span><span class="w"> </span><span class="s">"٣"</span><span class="p">,</span><span class="w"> </span><span class="s">"٤"</span><span class="p">,</span><span class="w"> </span><span class="s">"٥"</span><span class="p">,</span><span class="w"> </span><span class="s">"٦"</span><span class="p">,</span><span class="w"> </span><span class="s">"٧"</span><span class="p">,</span><span class="w"> </span><span class="s">"٨"</span><span class="p">,</span><span class="w"> </span><span class="s">"٩"</span><span class="p">},</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">{</span><span class="s">"〇"</span><span class="p">,</span><span class="w"> </span><span class="s">"〡"</span><span class="p">,</span><span class="w"> </span><span class="s">"〢"</span><span class="p">,</span><span class="w"> </span><span class="s">"〣"</span><span class="p">,</span><span class="w"> </span><span class="s">"〤"</span><span class="p">,</span><span class="w"> </span><span class="s">"〥"</span><span class="p">,</span><span class="w"> </span><span class="s">"〦"</span><span class="p">,</span><span class="w"> </span><span class="s">"〧"</span><span class="p">,</span><span class="w"> </span><span class="s">"〨"</span><span class="p">,</span><span class="w"> </span><span class="s">"〩"</span><span class="p">},</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">{</span><span class="s">"۰"</span><span class="p">,</span><span class="w"> </span><span class="s">"۱"</span><span class="p">,</span><span class="w"> </span><span class="s">"۲"</span><span class="p">,</span><span class="w"> </span><span class="s">"۳"</span><span class="p">,</span><span class="w"> </span><span class="s">"۴"</span><span class="p">,</span><span class="w"> </span><span class="s">"۵"</span><span class="p">,</span><span class="w"> </span><span class="s">"۶"</span><span class="p">,</span><span class="w"> </span><span class="s">"۷"</span><span class="p">,</span><span class="w"> </span><span class="s">"۸"</span><span class="p">,</span><span class="w"> </span><span class="s">"۹"</span><span class="p">},</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="p">{</span><span class="s">"߀"</span><span class="p">,</span><span class="w"> </span><span class="s">"߁"</span><span class="p">,</span><span class="w"> </span><span class="s">"߂"</span><span class="p">,</span><span class="w"> </span><span class="s">"߃"</span><span class="p">,</span><span class="w"> </span><span class="s">"߄"</span><span class="p">,</span><span class="w"> </span><span class="s">"߅"</span><span class="p">,</span><span class="w"> </span><span class="s">"߆"</span><span class="p">,</span><span class="w"> </span><span class="s">"߇"</span><span class="p">,</span><span class="w"> </span><span class="s">"߈"</span><span class="p">,</span><span class="w"> </span><span class="s">"߉"</span><span class="p">},</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="p">{</span><span class="s">"०"</span><span class="p">,</span><span class="w"> </span><span class="s">"१"</span><span class="p">,</span><span class="w"> </span><span class="s">"२"</span><span class="p">,</span><span class="w"> </span><span class="s">"३"</span><span class="p">,</span><span class="w"> </span><span class="s">"४"</span><span class="p">,</span><span class="w"> </span><span class="s">"५"</span><span class="p">,</span><span class="w"> </span><span class="s">"६"</span><span class="p">,</span><span class="w"> </span><span class="s">"७"</span><span class="p">,</span><span class="w"> </span><span class="s">"८"</span><span class="p">,</span><span class="w"> </span><span class="s">"९"</span><span class="p">},</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">{</span><span class="s">"০"</span><span class="p">,</span><span class="w"> </span><span class="s">"১"</span><span class="p">,</span><span class="w"> </span><span class="s">"২"</span><span class="p">,</span><span class="w"> </span><span class="s">"৩"</span><span class="p">,</span><span class="w"> </span><span class="s">"৪"</span><span class="p">,</span><span class="w"> </span><span class="s">"৫"</span><span class="p">,</span><span class="w"> </span><span class="s">"৬"</span><span class="p">,</span><span class="w"> </span><span class="s">"৭"</span><span class="p">,</span><span class="w"> </span><span class="s">"৮"</span><span class="p">,</span><span class="w"> </span><span class="s">"৯"</span><span class="p">},</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span><span class="s">"੦"</span><span class="p">,</span><span class="w"> </span><span class="s">"੧"</span><span class="p">,</span><span class="w"> </span><span class="s">"੨"</span><span class="p">,</span><span class="w"> </span><span class="s">"੩"</span><span class="p">,</span><span class="w"> </span><span class="s">"੪"</span><span class="p">,</span><span class="w"> </span><span class="s">"੫"</span><span class="p">,</span><span class="w"> </span><span class="s">"੬"</span><span class="p">,</span><span class="w"> </span><span class="s">"੭"</span><span class="p">,</span><span class="w"> </span><span class="s">"੮"</span><span class="p">,</span><span class="w"> </span><span class="s">"੯"</span><span class="p">},</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">{</span><span class="s">"૦"</span><span class="p">,</span><span class="w"> </span><span class="s">"૧"</span><span class="p">,</span><span class="w"> </span><span class="s">"૨"</span><span class="p">,</span><span class="w"> </span><span class="s">"૩"</span><span class="p">,</span><span class="w"> </span><span class="s">"૪"</span><span class="p">,</span><span class="w"> </span><span class="s">"૫"</span><span class="p">,</span><span class="w"> </span><span class="s">"૬"</span><span class="p">,</span><span class="w"> </span><span class="s">"૭"</span><span class="p">,</span><span class="w"> </span><span class="s">"૮"</span><span class="p">,</span><span class="w"> </span><span class="s">"૯"</span><span class="p">},</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">{</span><span class="s">"୦"</span><span class="p">,</span><span class="w"> </span><span class="s">"୧"</span><span class="p">,</span><span class="w"> </span><span class="s">"୨"</span><span class="p">,</span><span class="w"> </span><span class="s">"୩"</span><span class="p">,</span><span class="w"> </span><span class="s">"୪"</span><span class="p">,</span><span class="w"> </span><span class="s">"୫"</span><span class="p">,</span><span class="w"> </span><span class="s">"୬"</span><span class="p">,</span><span class="w"> </span><span class="s">"୭"</span><span class="p">,</span><span class="w"> </span><span class="s">"୮"</span><span class="p">,</span><span class="w"> </span><span class="s">"୯"</span><span class="p">},</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">{</span><span class="s">"௦"</span><span class="p">,</span><span class="w"> </span><span class="s">"௧"</span><span class="p">,</span><span class="w"> </span><span class="s">"௨"</span><span class="p">,</span><span class="w"> </span><span class="s">"௩"</span><span class="p">,</span><span class="w"> </span><span class="s">"௪"</span><span class="p">,</span><span class="w"> </span><span class="s">"௫"</span><span class="p">,</span><span class="w"> </span><span class="s">"௬"</span><span class="p">,</span><span class="w"> </span><span class="s">"௭"</span><span class="p">,</span><span class="w"> </span><span class="s">"௮"</span><span class="p">,</span><span class="w"> </span><span class="s">"௯"</span><span class="p">},</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">{</span><span class="s">"౦"</span><span class="p">,</span><span class="w"> </span><span class="s">"౧"</span><span class="p">,</span><span class="w"> </span><span class="s">"౨"</span><span class="p">,</span><span class="w"> </span><span class="s">"౩"</span><span class="p">,</span><span class="w"> </span><span class="s">"౪"</span><span class="p">,</span><span class="w"> </span><span class="s">"౫"</span><span class="p">,</span><span class="w"> </span><span class="s">"౬"</span><span class="p">,</span><span class="w"> </span><span class="s">"౭"</span><span class="p">,</span><span class="w"> </span><span class="s">"౮"</span><span class="p">,</span><span class="w"> </span><span class="s">"౯"</span><span class="p">},</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">{</span><span class="s">"೦"</span><span class="p">,</span><span class="w"> </span><span class="s">"೧"</span><span class="p">,</span><span class="w"> </span><span class="s">"೨"</span><span class="p">,</span><span class="w"> </span><span class="s">"೩"</span><span class="p">,</span><span class="w"> </span><span class="s">"೪"</span><span class="p">,</span><span class="w"> </span><span class="s">"೫"</span><span class="p">,</span><span class="w"> </span><span class="s">"೬"</span><span class="p">,</span><span class="w"> </span><span class="s">"೭"</span><span class="p">,</span><span class="w"> </span><span class="s">"೮"</span><span class="p">,</span><span class="w"> </span><span class="s">"೯"</span><span class="p">},</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">{</span><span class="s">"൦"</span><span class="p">,</span><span class="w"> </span><span class="s">"൧"</span><span class="p">,</span><span class="w"> </span><span class="s">"൨"</span><span class="p">,</span><span class="w"> </span><span class="s">"൩"</span><span class="p">,</span><span class="w"> </span><span class="s">"൪"</span><span class="p">,</span><span class="w"> </span><span class="s">"൫"</span><span class="p">,</span><span class="w"> </span><span class="s">"൬"</span><span class="p">,</span><span class="w"> </span><span class="s">"൭"</span><span class="p">,</span><span class="w"> </span><span class="s">"൮"</span><span class="p">,</span><span class="w"> </span><span class="s">"൯"</span><span class="p">},</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">{</span><span class="s">"๐"</span><span class="p">,</span><span class="w"> </span><span class="s">"๑"</span><span class="p">,</span><span class="w"> </span><span class="s">"๒"</span><span class="p">,</span><span class="w"> </span><span class="s">"๓"</span><span class="p">,</span><span class="w"> </span><span class="s">"๔"</span><span class="p">,</span><span class="w"> </span><span class="s">"๕"</span><span class="p">,</span><span class="w"> </span><span class="s">"๖"</span><span class="p">,</span><span class="w"> </span><span class="s">"๗"</span><span class="p">,</span><span class="w"> </span><span class="s">"๘"</span><span class="p">,</span><span class="w"> </span><span class="s">"๙"</span><span class="p">},</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">{</span><span class="s">"໐"</span><span class="p">,</span><span class="w"> </span><span class="s">"໑"</span><span class="p">,</span><span class="w"> </span><span class="s">"໒"</span><span class="p">,</span><span class="w"> </span><span class="s">"໓"</span><span class="p">,</span><span class="w"> </span><span class="s">"໔"</span><span class="p">,</span><span class="w"> </span><span class="s">"໕"</span><span class="p">,</span><span class="w"> </span><span class="s">"໖"</span><span class="p">,</span><span class="w"> </span><span class="s">"໗"</span><span class="p">,</span><span class="w"> </span><span class="s">"໘"</span><span class="p">,</span><span class="w"> </span><span class="s">"໙"</span><span class="p">},</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">{</span><span class="s">"༠"</span><span class="p">,</span><span class="w"> </span><span class="s">"༡"</span><span class="p">,</span><span class="w"> </span><span class="s">"༢"</span><span class="p">,</span><span class="w"> </span><span class="s">"༣"</span><span class="p">,</span><span class="w"> </span><span class="s">"༤"</span><span class="p">,</span><span class="w"> </span><span class="s">"༥"</span><span class="p">,</span><span class="w"> </span><span class="s">"༦"</span><span class="p">,</span><span class="w"> </span><span class="s">"༧"</span><span class="p">,</span><span class="w"> </span><span class="s">"༨"</span><span class="p">,</span><span class="w"> </span><span class="s">"༩"</span><span class="p">},</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">{</span><span class="s">"၀"</span><span class="p">,</span><span class="w"> </span><span class="s">"၁"</span><span class="p">,</span><span class="w"> </span><span class="s">"၂"</span><span class="p">,</span><span class="w"> </span><span class="s">"၃"</span><span class="p">,</span><span class="w"> </span><span class="s">"၄"</span><span class="p">,</span><span class="w"> </span><span class="s">"၅"</span><span class="p">,</span><span class="w"> </span><span class="s">"၆"</span><span class="p">,</span><span class="w"> </span><span class="s">"၇"</span><span class="p">,</span><span class="w"> </span><span class="s">"၈"</span><span class="p">,</span><span class="w"> </span><span class="s">"၉"</span><span class="p">},</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">{</span><span class="s">"႐"</span><span class="p">,</span><span class="w"> </span><span class="s">"႑"</span><span class="p">,</span><span class="w"> </span><span class="s">"႒"</span><span class="p">,</span><span class="w"> </span><span class="s">"႓"</span><span class="p">,</span><span class="w"> </span><span class="s">"႔"</span><span class="p">,</span><span class="w"> </span><span class="s">"႕"</span><span class="p">,</span><span class="w"> </span><span class="s">"႖"</span><span class="p">,</span><span class="w"> </span><span class="s">"႗"</span><span class="p">,</span><span class="w"> </span><span class="s">"႘"</span><span class="p">,</span><span class="w"> </span><span class="s">"႙"</span><span class="p">},</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="p">{</span><span class="s">"០"</span><span class="p">,</span><span class="w"> </span><span class="s">"១"</span><span class="p">,</span><span class="w"> </span><span class="s">"២"</span><span class="p">,</span><span class="w"> </span><span class="s">"៣"</span><span class="p">,</span><span class="w"> </span><span class="s">"៤"</span><span class="p">,</span><span class="w"> </span><span class="s">"៥"</span><span class="p">,</span><span class="w"> </span><span class="s">"៦"</span><span class="p">,</span><span class="w"> </span><span class="s">"៧"</span><span class="p">,</span><span class="w"> </span><span class="s">"៨"</span><span class="p">,</span><span class="w"> </span><span class="s">"៩"</span><span class="p">},</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">{</span><span class="s">"᠐"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠑"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠒"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠓"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠔"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠕"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠖"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠗"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠘"</span><span class="p">,</span><span class="w"> </span><span class="s">"᠙"</span><span class="p">},</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="p">{</span><span class="s">"᥆"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥇"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥈"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥉"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥊"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥋"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥌"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥍"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥎"</span><span class="p">,</span><span class="w"> </span><span class="s">"᥏"</span><span class="p">},</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">{</span><span class="s">"᧐"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧑"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧒"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧓"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧔"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧕"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧖"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧗"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧘"</span><span class="p">,</span><span class="w"> </span><span class="s">"᧙"</span><span class="p">},</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="p">{</span><span class="s">"᭐"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭑"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭒"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭓"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭔"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭕"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭖"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭗"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭘"</span><span class="p">,</span><span class="w"> </span><span class="s">"᭙"</span><span class="p">},</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="p">{</span><span class="s">"᮰"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮱"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮲"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮳"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮴"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮵"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮶"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮷"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮸"</span><span class="p">,</span><span class="w"> </span><span class="s">"᮹"</span><span class="p">},</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span><span class="s">"᱀"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱁"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱂"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱃"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱄"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱅"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱆"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱇"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱈"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱉"</span><span class="p">},</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">{</span><span class="s">"᱐"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱑"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱒"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱓"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱔"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱕"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱖"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱗"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱘"</span><span class="p">,</span><span class="w"> </span><span class="s">"᱙"</span><span class="p">},</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">{</span><span class="s">"꘠"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘡"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘢"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘣"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘤"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘥"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘦"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘧"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘨"</span><span class="p">,</span><span class="w"> </span><span class="s">"꘩"</span><span class="p">},</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="p">{</span><span class="s">"꣐"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣑"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣒"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣓"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣔"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣕"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣖"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣗"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣘"</span><span class="p">,</span><span class="w"> </span><span class="s">"꣙"</span><span class="p">},</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="p">{</span><span class="s">"꤀"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤁"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤂"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤃"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤄"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤅"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤆"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤇"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤈"</span><span class="p">,</span><span class="w"> </span><span class="s">"꤉"</span><span class="p">},</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">{</span><span class="s">"꩐"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩑"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩒"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩓"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩔"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩕"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩖"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩗"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩘"</span><span class="p">,</span><span class="w"> </span><span class="s">"꩙"</span><span class="p">},</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="p">{</span><span class="s">"𐒠"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒡"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒢"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒣"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒤"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒥"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒦"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒧"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒨"</span><span class="p">,</span><span class="w"> </span><span class="s">"𐒩"</span><span class="p">},</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">}};</span> +<a id="line-147" name="line-147"></a> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="sc">'0'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="sc">'9'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'0'</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="sc">'f'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'a'</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="sc">'A'</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="sc">'F'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">**</span><span class="n">c</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'A'</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-158" name="line-158"></a><span class="hll"><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="mi">0</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="error2"><--- Assuming condition is false</span> +</span><a id="line-159" name="line-159"></a><span class="hll"><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="error2"><--- After for loop, j has value 10</span> +</span><a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">],</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">}</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">j</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">10</span><span class="p">)</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="p">}</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">j</span><span class="p">;</span> +<a id="line-169" name="line-169"></a><span class="hll"><span class="w"> </span><span class="n">offset</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]);</span><span class="error2"><--- Array index out of bounds</span> +</span><a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">}</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">value</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-173" name="line-173"></a> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">offset</span><span class="p">;</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-177" name="line-177"></a><span class="p">}</span> +<a id="line-178" name="line-178"></a> +<a id="line-179" name="line-179"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-180" name="line-180"></a><span class="nf">ends_with</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">start</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">word</span><span class="p">)</span> +<a id="line-181" name="line-181"></a><span class="p">{</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="kt">size_t</span><span class="w"> </span><span class="n">word_len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">word</span><span class="p">);</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">word_len</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">end</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">start</span><span class="p">)</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-186" name="line-186"></a> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strncmp</span><span class="p">(</span><span class="n">end</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">word_len</span><span class="p">,</span><span class="w"> </span><span class="n">word</span><span class="p">,</span><span class="w"> </span><span class="n">word_len</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="p">}</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="c1">// FIXME: Doesn't handle errors well (e.g. trailing space)</span> +<a id="line-191" name="line-191"></a><span class="k">static</span><span class="w"> </span><span class="kt">bool</span> +<a id="line-192" name="line-192"></a><span class="nf">set_from_sexagesimal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">length</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-193" name="line-193"></a><span class="p">{</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">degrees</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">minutes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">seconds</span><span class="p">[</span><span class="n">length</span><span class="o">+</span><span class="mi">1</span><span class="p">];</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_matched</span><span class="p">;</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">seconds</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="hll"><span class="w"> </span><span class="n">n_matched</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sscanf</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"%d°%d'%s</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">degrees</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minutes</span><span class="p">,</span><span class="w"> </span><span class="n">seconds</span><span class="p">);</span><div class="verbose expandable"><span class="error2"><--- sscanf() without field width limits can crash with huge input data. <span class="marker">[+]</span></span><div class="content">sscanf() without field width limits can crash with huge input data. Add a field width specifier to fix this problem. + +Sample program that can crash: + +#include <stdio.h> +int main() +{ + char c[5]; + scanf("%s", c); + return 0; +} + +Typing in 5 or more characters may make the program crash. The correct usage here is 'scanf("%4s", c);', as the maximum field width does not include the terminating null byte. +Source: http://linux.die.net/man/3/scanf +Source: http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/libkern/stdio/scanf.c</div></div> +</span><a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_matched</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">degrees</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_matched</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">minutes</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="mi">60</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="p">}</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_matched</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">seconds</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="mi">3600</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">}</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-216" name="line-216"></a> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-218" name="line-218"></a><span class="p">}</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="kt">bool</span> +<a id="line-221" name="line-221"></a><span class="nf">mp_set_from_string</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">default_base</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-222" name="line-222"></a><span class="p">{</span> +<a id="line-223" name="line-223"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">negate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">multiplier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">base_multiplier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="error2"><--- 'multiplier' is assigned value '0' here.</span> +</span><a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">end</span><span class="p">;</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">has_fraction</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">base_digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"₁"</span><span class="p">,</span><span class="w"> </span><span class="s">"₂"</span><span class="p">,</span><span class="w"> </span><span class="s">"₃"</span><span class="p">,</span><span class="w"> </span><span class="s">"₄"</span><span class="p">,</span><span class="w"> </span><span class="s">"₅"</span><span class="p">,</span><span class="w"> </span><span class="s">"₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"₇"</span><span class="p">,</span><span class="w"> </span><span class="s">"₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"₉"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">};</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">fractions</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"½"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅓"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅔"</span><span class="p">,</span><span class="w"> </span><span class="s">"¼"</span><span class="p">,</span><span class="w"> </span><span class="s">"¾"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅕"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅖"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅗"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅘"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅙"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅚"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅛"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅜"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅝"</span><span class="p">,</span><span class="w"> </span><span class="s">"⅞"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">};</span> +<a id="line-229" name="line-229"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">numerators</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">7</span><span class="p">};</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'numerators' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'numerators' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:<span class="error2"><--- Variable 'numerators' can be declared as const array</span> +void f(int x)<span class="error2"><--- Variable 'numerators' can be declared as const array</span> +{<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + int i = 0;<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + if (x) {<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + // it's safe to move 'int i = 0;' here<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + for (int n = 0; n < 10; ++n) {<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + // it is possible but not safe to move 'int i = 0;' here<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + do_something(&i);<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + }<span class="error2"><--- Variable 'numerators' can be declared as const array</span> + }<span class="error2"><--- Variable 'numerators' can be declared as const array</span> +}<span class="error2"><--- Variable 'numerators' can be declared as const array</span> +When you see this message it is always safe to reduce the variable scope 1 level.</div></div><span class="error2"><--- Variable 'numerators' can be declared as const array</span> +</span><a id="line-230" name="line-230"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">denominators</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">,</span><span class="w"> </span><span class="mi">8</span><span class="p">};</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'denominators' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'denominators' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced:<span class="error2"><--- Variable 'denominators' can be declared as const array</span> +void f(int x)<span class="error2"><--- Variable 'denominators' can be declared as const array</span> +{<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + int i = 0;<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + if (x) {<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + // it's safe to move 'int i = 0;' here<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + for (int n = 0; n < 10; ++n) {<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + // it is possible but not safe to move 'int i = 0;' here<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + do_something(&i);<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + }<span class="error2"><--- Variable 'denominators' can be declared as const array</span> + }<span class="error2"><--- Variable 'denominators' can be declared as const array</span> +}<span class="error2"><--- Variable 'denominators' can be declared as const array</span> +When you see this message it is always safe to reduce the variable scope 1 level.</div></div><span class="error2"><--- Variable 'denominators' can be declared as const array</span> +</span><a id="line-231" name="line-231"></a> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strstr</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"°"</span><span class="p">))</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">set_from_sexagesimal</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">str</span><span class="p">),</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="cm">/* Find the base */</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">end</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">str</span><span class="p">;</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">end</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">end</span><span class="o">++</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">base_digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ends_with</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">base_digits</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"> </span><span class="p">{</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">base_multiplier</span><span class="p">;</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">end</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">base_digits</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">base_multiplier</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">}</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="p">}</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base_digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="p">}</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base_multiplier</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">default_base</span><span class="p">;</span> +<a id="line-254" name="line-254"></a> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="cm">/* Check if this has a sign */</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">str</span><span class="p">;</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'+'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'-'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">negate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="s">"−"</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"−"</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">negate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"−"</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="cm">/* Convert integer part */</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">char_val</span><span class="p">((</span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="o">&</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">))</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">}</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="cm">/* Look for fraction characters, e.g. ⅚ */</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">fractions</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ends_with</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">end</span><span class="p">,</span><span class="w"> </span><span class="n">fractions</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"> </span><span class="p">{</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">end</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">fractions</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fractions</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">fraction</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="n">mp_set_from_fraction</span><span class="p">(</span><span class="n">numerators</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">denominators</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="o">&</span><span class="n">fraction</span><span class="p">);</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">fraction</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">fraction</span><span class="p">);</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span> +<a id="line-289" name="line-289"></a> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'.'</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">has_fraction</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">}</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="cm">/* Convert fractional part */</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">has_fraction</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">numerator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">denominator</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">numerator</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">denominator</span><span class="p">);</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">char_val</span><span class="p">((</span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="p">)</span><span class="o">&</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">))</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">denominator</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">denominator</span><span class="p">);</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">numerator</span><span class="p">);</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">numerator</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">}</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">denominator</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">numerator</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">numerator</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">numerator</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">denominator</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="p">}</span> +<a id="line-312" name="line-312"></a> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">end</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">true</span><span class="p">;</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="p">}</span> +<a id="line-316" name="line-316"></a> +<a id="line-317" name="line-317"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">multiplier</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><div class="verbose expandable"><span class="error2"><--- The comparison 'multiplier != 0' is always false. <span class="marker">[+]</span></span><div class="content">Finding the same expression on both sides of an operator is suspicious and might indicate a cut and paste or logic error. Please examine this code carefully to determine if it is correct.</div></div> +</span><a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">multiplier</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">}</span> +<a id="line-324" name="line-324"></a> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">negate</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">mp_invert_sign</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-329" name="line-329"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/39.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/39.html new file mode 100644 index 0000000..f61d272 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/39.html @@ -0,0 +1,959 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-equation.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-equation.c</p> +<a href="39.html#line-12"> missingIncludeSystem 12</a><a href="39.html#line-13"> missingIncludeSystem 13</a><a href="39.html#line-14"> missingIncludeSystem 14</a><a href="39.html#line-292"> variableScope 292</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2004-2008 Sami Pietila</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><ctype.h></span><span class="error2"><--- Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"parser.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-18" name="line-18"></a><span class="nf">variable_is_defined</span><span class="p">(</span><span class="n">ParserState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-19" name="line-19"></a><span class="p">{</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="cm">/* FIXME: Make more generic */</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"π"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"pi"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"c₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"μ₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"ε₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"G"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"h"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"mₑ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"mₚ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"Nₐ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">variable_is_defined</span><span class="p">)</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">variable_is_defined</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="p">}</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-41" name="line-41"></a><span class="nf">get_variable</span><span class="p">(</span><span class="n">ParserState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-42" name="line-42"></a><span class="p">{</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">mp_get_eulers</span><span class="p">(</span><span class="n">z</span><span class="p">);</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">mp_get_i</span><span class="p">(</span><span class="n">z</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"π"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"pi"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">mp_get_pi</span><span class="p">(</span><span class="n">z</span><span class="p">);</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"c₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"299792458"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* velocity of light */</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"μ₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.0000012566370614"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* magnetic constant */</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"ε₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.00000000000885418782"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* electric constant */</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"G"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.0000000000667408"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* Newtonian constant of gravitation */</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"h"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.000000000000000000000000000000000662607004"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* Planck constant */</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.00000000000000000016021766208"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* elementary charge */</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"mₑ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.000000000000000000000000000000910938356"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* electron mass */</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"mₚ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"0.000000000000000000000000001672621898"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* proton mass */</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"Nₐ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="s">"602214086000000000000000"</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="cm">/* Avogadro constant */</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">get_variable</span><span class="p">)</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">get_variable</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="k">else</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="p">}</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-78" name="line-78"></a><span class="nf">set_variable</span><span class="p">(</span><span class="n">ParserState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-79" name="line-79"></a><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="c1">// Reserved words, e, π, mod, and, or, xor, not, abs, log, ln, sqrt, int, frac, sin, cos, ...</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"π"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"pi"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"c₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"μ₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"ε₀"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"G"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"h"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"e"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"mₑ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"mₚ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"Nₐ"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span><span class="w"> </span><span class="c1">// FALSE</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">set_variable</span><span class="p">)</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">set_variable</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="p">}</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="c1">// FIXME: Accept "2sin" not "2 sin", i.e. let the tokenizer collect the multiple</span> +<a id="line-101" name="line-101"></a><span class="c1">// Parser then distinguishes between "sin"="s*i*n" or "sin5" = "sin 5" = "sin(5)"</span> +<a id="line-102" name="line-102"></a><span class="c1">// i.e. numbers+letters = variable or function depending on following arg</span> +<a id="line-103" name="line-103"></a><span class="c1">// letters+numbers = numbers+letters+numbers = function</span> +<a id="line-104" name="line-104"></a> +<a id="line-105" name="line-105"></a><span class="kt">int</span> +<a id="line-106" name="line-106"></a><span class="nf">sub_atoi</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-107" name="line-107"></a><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"₁"</span><span class="p">,</span><span class="w"> </span><span class="s">"₂"</span><span class="p">,</span><span class="w"> </span><span class="s">"₃"</span><span class="p">,</span><span class="w"> </span><span class="s">"₄"</span><span class="p">,</span><span class="w"> </span><span class="s">"₅"</span><span class="p">,</span><span class="w"> </span><span class="s">"₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"₇"</span><span class="p">,</span><span class="w"> </span><span class="s">"₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"₉"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">};</span> +<a id="line-110" name="line-110"></a> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">strncmp</span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="o">*</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">);</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="p">}</span> +<a id="line-121" name="line-121"></a> +<a id="line-122" name="line-122"></a><span class="kt">int</span> +<a id="line-123" name="line-123"></a><span class="nf">super_atoi</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">sign</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">digits</span><span class="p">[</span><span class="mi">11</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"⁰"</span><span class="p">,</span><span class="w"> </span><span class="s">"¹"</span><span class="p">,</span><span class="w"> </span><span class="s">"²"</span><span class="p">,</span><span class="w"> </span><span class="s">"³"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁴"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁵"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁶"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁷"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁸"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁹"</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">};</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">strncmp</span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻"</span><span class="p">,</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"⁻"</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">sign</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"⁻"</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">}</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">strncmp</span><span class="p">(</span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">],</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">data</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">digits</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="o">*</span><span class="n">data</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">);</span> +<a id="line-140" name="line-140"></a> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">sign</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="p">}</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-145" name="line-145"></a><span class="nf">function_is_defined</span><span class="p">(</span><span class="n">ParserState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-146" name="line-146"></a><span class="p">{</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">lower_name</span><span class="p">;</span> +<a id="line-148" name="line-148"></a> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">lower_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lower_name</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">)</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tolower</span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="p">);</span> +<a id="line-152" name="line-152"></a> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="cm">/* FIXME: Make more generic */</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"log"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"log"</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">sub_atoi</span><span class="p">(</span><span class="n">lower_name</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ln"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sqrt"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"abs"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sgn"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"arg"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"conj"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"int"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"frac"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"floor"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ceil"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"round"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"re"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"im"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sin"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cos"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tan"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"asin"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"acos"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"atan"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sin⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cos⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tan⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sinh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cosh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tanh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sinh⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cosh⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tanh⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"erf"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"zeta"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"asinh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"acosh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"atanh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ones"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"twos"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">lower_name</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">lower_name</span><span class="p">);</span> +<a id="line-182" name="line-182"></a> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">function_is_defined</span><span class="p">)</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">function_is_defined</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-186" name="line-186"></a><span class="p">}</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-189" name="line-189"></a><span class="nf">get_function</span><span class="p">(</span><span class="n">ParserState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-190" name="line-190"></a><span class="p">{</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">lower_name</span><span class="p">;</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">lower_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lower_name</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">)</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tolower</span><span class="p">(</span><span class="o">*</span><span class="n">c</span><span class="p">);</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="c1">// FIXME: Re Im ?</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"log"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">mp_logarithm</span><span class="p">(</span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: Default to ln</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strncmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"log"</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">base</span><span class="p">;</span> +<a id="line-204" name="line-204"></a> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sub_atoi</span><span class="p">(</span><span class="n">lower_name</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">3</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">else</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">mp_logarithm</span><span class="p">(</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">}</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ln"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sqrt"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="c1">// √x</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">mp_sqrt</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"abs"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="c1">// |x|</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sgn"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">mp_sgn</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"arg"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">mp_arg</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"conj"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">mp_conjugate</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"int"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">mp_integer_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"frac"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">mp_fractional_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"floor"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ceil"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">mp_ceiling</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"round"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">mp_round</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"re"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">mp_real_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"im"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">mp_imaginary_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sin"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">mp_sin</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cos"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">mp_cos</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tan"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">mp_tan</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sin⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"asin"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">mp_asin</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cos⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"acos"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">mp_acos</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tan⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"atan"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">mp_atan</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">angle_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sinh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">mp_sinh</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cosh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">mp_cosh</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tanh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">mp_tanh</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"sinh⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"asinh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">mp_asinh</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"cosh⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"acosh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">mp_acosh</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"tanh⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"atanh"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">mp_atanh</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"erf"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">mp_erf</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"zeta"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">mp_zeta</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"ones"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">mp_ones_complement</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">lower_name</span><span class="p">,</span><span class="w"> </span><span class="s">"twos"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">mp_twos_complement</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">get_function</span><span class="p">)</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">get_function</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">else</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-273" name="line-273"></a> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">lower_name</span><span class="p">);</span> +<a id="line-275" name="line-275"></a> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-277" name="line-277"></a><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-280" name="line-280"></a><span class="nf">convert</span><span class="p">(</span><span class="n">ParserState</span><span class="w"> </span><span class="o">*</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-281" name="line-281"></a><span class="p">{</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">convert</span><span class="p">)</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">convert</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">callback_data</span><span class="p">);</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="k">else</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-286" name="line-286"></a><span class="p">}</span> +<a id="line-287" name="line-287"></a> +<a id="line-288" name="line-288"></a><span class="n">MPErrorCode</span> +<a id="line-289" name="line-289"></a><span class="nf">mp_equation_parse</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="o">*</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">**</span><span class="n">error_token</span><span class="p">)</span> +<a id="line-290" name="line-290"></a><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-292" name="line-292"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">err</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'err' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'err' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_parser</span><span class="w"> </span><span class="p">(</span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">options</span><span class="p">);</span> +<a id="line-295" name="line-295"></a> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">expression</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">result</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">expression</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">;</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">variable_is_defined</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">variable_is_defined</span><span class="p">;</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_variable</span><span class="p">;</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">set_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">set_variable</span><span class="p">;</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">function_is_defined</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">function_is_defined</span><span class="p">;</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_function</span><span class="p">;</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">convert</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">convert</span><span class="p">;</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">mp_clear_error</span><span class="p">();</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_parse</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">error_token</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">error_token</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="o">*</span><span class="n">error_token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error_token</span><span class="p">;</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="p">}</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="cm">/* Error during parsing */</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">err</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="p">;</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">p_destroy_parser</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">err</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="p">}</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_get_error</span><span class="p">())</span><span class="w"> </span><span class="p">{</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">p_destroy_parser</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">;</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="p">}</span> +<a id="line-322" name="line-322"></a> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="cm">/* Failed to parse */</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">p_destroy_parser</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">;</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="p">}</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">ret</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="p">);</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">p_destroy_parser</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_NONE</span><span class="p">;</span> +<a id="line-331" name="line-331"></a><span class="p">}</span> +<a id="line-332" name="line-332"></a> +<a id="line-333" name="line-333"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-334" name="line-334"></a><span class="nf">mp_error_code_to_string</span><span class="p">(</span><span class="n">MPErrorCode</span><span class="w"> </span><span class="n">error_code</span><span class="p">)</span> +<a id="line-335" name="line-335"></a><span class="p">{</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">error_code</span><span class="p">)</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">{</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_NONE</span><span class="p">:</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_NONE"</span><span class="p">;</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_INVALID</span><span class="p">:</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_INVALID"</span><span class="p">;</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_OVERFLOW</span><span class="p">:</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_OVERFLOW"</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">:</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_UNKNOWN_VARIABLE"</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_UNKNOWN_FUNCTION</span><span class="p">:</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_UNKNOWN_FUNCTION"</span><span class="p">;</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_UNKNOWN_CONVERSION</span><span class="p">:</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_UNKNOWN_CONVERSION"</span><span class="p">;</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PARSER_ERR_MP</span><span class="p">:</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"PARSER_ERR_MP"</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="s">"Unknown parser error"</span><span class="p">;</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="p">}</span> +<a id="line-355" name="line-355"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/4.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/4.html new file mode 100644 index 0000000..09a3914 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/4.html @@ -0,0 +1,395 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-serializer.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-serializer.h</p> +<a href="4.html#line-15"> missingIncludeSystem 15</a><a href="4.html#line-16"> missingIncludeSystem 16</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span> +<span class="normal">61</span> +<span class="normal">62</span> +<span class="normal">63</span> +<span class="normal">64</span> +<span class="normal">65</span> +<span class="normal">66</span> +<span class="normal">67</span> +<span class="normal">68</span> +<span class="normal">69</span> +<span class="normal">70</span> +<span class="normal">71</span> +<span class="normal">72</span> +<span class="normal">73</span> +<span class="normal">74</span> +<span class="normal">75</span> +<span class="normal">76</span> +<span class="normal">77</span> +<span class="normal">78</span> +<span class="normal">79</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2010 Robin Sonefors</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifndef MP_SERIALIZER_H</span> +<a id="line-13" name="line-13"></a><span class="cp">#define MP_SERIALIZER_H</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cp">#define MP_TYPE_SERIALIZER (mp_serializer_get_type())</span> +<a id="line-23" name="line-23"></a><span class="cp">#define MP_SERIALIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), mp_serializer_get_type(), MpSerializer))</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MpSerializerPrivate</span><span class="w"> </span><span class="n">MpSerializerPrivate</span><span class="p">;</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">MpSerializerPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="p">}</span><span class="w"> </span><span class="n">MpSerializer</span><span class="p">;</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span> +<a id="line-34" name="line-34"></a><span class="p">}</span><span class="w"> </span><span class="n">MpSerializerClass</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="cm">/* Number display mode. */</span> +<a id="line-37" name="line-37"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_FIXED</span><span class="p">,</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_SCIENTIFIC</span><span class="p">,</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_ENGINEERING</span> +<a id="line-42" name="line-42"></a><span class="p">}</span><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="p">;</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">GType</span><span class="w"> </span><span class="nf">mp_serializer_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="nf">mp_serializer_new</span><span class="p">(</span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">);</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">mp_serializer_to_string</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mp_serializer_from_string</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-50" name="line-50"></a> +<a id="line-51" name="line-51"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_number_format</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-52" name="line-52"></a><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="nf">mp_serializer_get_number_format</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_base</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-55" name="line-55"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mp_serializer_get_base</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_leading_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">leading_digits</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mp_serializer_get_leading_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-59" name="line-59"></a> +<a id="line-60" name="line-60"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_trailing_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="kt">int</span><span class="w"> </span><span class="nf">mp_serializer_get_trailing_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_radix</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">radix</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="n">gunichar</span><span class="w"> </span><span class="nf">mp_serializer_get_radix</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_thousands_separator</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">separator</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="n">gunichar</span><span class="w"> </span><span class="nf">mp_serializer_get_thousands_separator</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="n">gint</span><span class="w"> </span><span class="nf">mp_serializer_get_thousands_separator_count</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mp_serializer_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_serializer_set_show_thousands_separators</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="n">G_END_DECLS</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="cp">#endif </span><span class="cm">/* MP_SERIALIZER_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/40.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/40.html new file mode 100644 index 0000000..74534e3 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/40.html @@ -0,0 +1,1507 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-serializer.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-serializer.c</p> +<a href="40.html#line-12"> missingIncludeSystem 12</a><a href="40.html#line-13"> missingIncludeSystem 13</a><a href="40.html#line-14"> missingIncludeSystem 14</a><a href="40.html#line-15"> missingIncludeSystem 15</a><a href="40.html#line-16"> missingIncludeSystem 16</a><a href="40.html#line-225"> knownConditionTrueFalse 225</a><a href="40.html#line-227"> knownConditionTrueFalse 227</a><a href="40.html#line-370"> knownConditionTrueFalse 370</a><a href="40.html#line-372"> knownConditionTrueFalse 372</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2010 Robin Sonefors</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><langinfo.h></span><span class="error2"><--- Include file: <langinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-enums.h"</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">PROP_0</span><span class="p">,</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">,</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">PROP_SHOW_TRAILING_ZEROES</span><span class="p">,</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">PROP_NUMBER_FORMAT</span><span class="p">,</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">PROP_BASE</span><span class="p">,</span> +<a id="line-27" name="line-27"></a><span class="p">};</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">struct</span><span class="w"> </span><span class="nc">MpSerializerPrivate</span> +<a id="line-30" name="line-30"></a><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">leading_digits</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Number of digits to show before radix */</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Number of digits to show after radix */</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Number display mode. */</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">show_tsep</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Set if the thousands separator should be shown. */</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">show_zeroes</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Set if trailing zeroes should be shown. */</span> +<a id="line-36" name="line-36"></a> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Numeric base */</span> +<a id="line-38" name="line-38"></a> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">tsep</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Locale specific thousands separator. */</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">radix</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Locale specific radix string. */</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">tsep_count</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Number of digits between separator. */</span> +<a id="line-42" name="line-42"></a><span class="p">};</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">MpSerializer</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span> +<a id="line-47" name="line-47"></a><span class="nf">mp_serializer_new</span><span class="p">(</span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="p">{</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">mp_serializer_get_type</span><span class="p">(),</span><span class="w"> </span><span class="cm">/*"number-format", format,*/</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">mp_serializer_set_number_format</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">mp_serializer_set_base</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">mp_serializer_set_trailing_digits</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">);</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="p">}</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-57" name="line-57"></a><span class="nf">mp_to_string_real</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">force_sign</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="p">,</span><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">)</span> +<a id="line-58" name="line-58"></a><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="n">digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"0123456789ABCDEF"</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">number</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">integer_component</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">fractional_component</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">gsize</span><span class="w"> </span><span class="n">last_non_zero</span><span class="p">;</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">number</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">else</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">number</span><span class="p">);</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="cm">/* Add rounding factor */</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="p">(</span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trailing_digits</span><span class="o">+</span><span class="mi">1</span><span class="p">),</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="o">&</span><span class="n">number</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="cm">/* If trying to add rounding factor causes overflow, don't add it */</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_get_error</span><span class="p">())</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">number</span><span class="p">);</span> +<a id="line-82" name="line-82"></a> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="cm">/* Split into integer and fractional component */</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="o">&</span><span class="n">number</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">integer_component</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">mp_fractional_component</span><span class="p">(</span><span class="o">&</span><span class="n">number</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">fractional_component</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="cm">/* Write out the integer component least significant digit to most */</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">integer_component</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="p">{</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">d</span><span class="p">;</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">10</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_tsep</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep_count</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">g_string_prepend_unichar</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">}</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-101" name="line-101"></a> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t3</span><span class="p">);</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t3</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">d</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">16</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">g_string_prepend_c</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">d</span><span class="p">]);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="k">else</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* FIXME: Should show an overflow error message in fixed mode */</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">g_string_assign</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">);</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">leading_digits</span><span class="o">+</span><span class="mi">1</span><span class="p">;</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">}</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">n_digits</span><span class="p">)</span><span class="o">++</span><span class="p">;</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">));</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t3</span><span class="p">);</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">last_non_zero</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">string</span><span class="o">-></span><span class="n">len</span><span class="p">;</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">g_string_append_unichar</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">radix</span><span class="p">);</span> +<a id="line-128" name="line-128"></a> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="cm">/* Write out the fractional component */</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">fractional_component</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">digit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trailing_digits</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">);</span><span class="w"> </span><span class="n">i</span><span class="o">--</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">d</span><span class="p">;</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">digit</span><span class="p">);</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_integer</span><span class="p">(</span><span class="o">&</span><span class="n">digit</span><span class="p">);</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">g_string_append_c</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">digits</span><span class="p">[</span><span class="n">d</span><span class="p">]);</span> +<a id="line-140" name="line-140"></a> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">d</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">last_non_zero</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">string</span><span class="o">-></span><span class="n">len</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">digit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">digit</span><span class="p">);</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="cm">/* Strip trailing zeroes */</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_zeroes</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trailing_digits</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">g_string_truncate</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">last_non_zero</span><span class="p">);</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="cm">/* Add sign on non-zero values */</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">force_sign</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">g_string_prepend</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"−"</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">force_sign</span><span class="p">)</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">g_string_prepend</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"+"</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="cm">/* Append base suffix if not in default base */</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">base_digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"₁"</span><span class="p">,</span><span class="w"> </span><span class="s">"₂"</span><span class="p">,</span><span class="w"> </span><span class="s">"₃"</span><span class="p">,</span><span class="w"> </span><span class="s">"₄"</span><span class="p">,</span><span class="w"> </span><span class="s">"₅"</span><span class="p">,</span><span class="w"> </span><span class="s">"₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"₇"</span><span class="p">,</span><span class="w"> </span><span class="s">"₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"₉"</span><span class="p">};</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">multiplier</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">base</span><span class="p">;</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">base</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">multiplier</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">multiplier</span><span class="w"> </span><span class="o">*=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">multiplier</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">d</span><span class="p">;</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">multiplier</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">multiplier</span><span class="p">;</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">base_digits</span><span class="p">[</span><span class="n">d</span><span class="p">]);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">multiplier</span><span class="p">;</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="p">}</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">}</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">number</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">integer_component</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">fractional_component</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="p">}</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-182" name="line-182"></a><span class="nf">mp_to_string</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="p">)</span> +<a id="line-183" name="line-183"></a><span class="p">{</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">;</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_real</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="p">(</span><span class="mi">1024</span><span class="p">);</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">mp_real_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_real</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">mp_to_string_real</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_real</span><span class="p">,</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="n">n_digits</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">);</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">force_sign</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_im</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_complex_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">mp_imaginary_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_im</span><span class="p">);</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">g_string_assign</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">force_sign</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="p">}</span> +<a id="line-204" name="line-204"></a> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="p">(</span><span class="mi">1024</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">mp_to_string_real</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_im</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="n">force_sign</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_complex_digits</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_complex_digits</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="p">)</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">n_complex_digits</span><span class="p">;</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"+0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"−0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="cm">/* Ignore unless the real part was also zero and string was cleared*/</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">}</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="p">}</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">}</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"+1"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"+i"</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="p">}</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"−i"</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">}</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-225" name="line-225"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"+0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="error2"><--- Condition 'strcmp(s->str,"+0")==0' is always false</span> +</span><a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"+"</span><span class="p">);</span> +<a id="line-227" name="line-227"></a><span class="hll"><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="error2"><--- Condition 'strcmp(s->str,"0")!=0' is always true</span> +</span><a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">);</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="p">}</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_im</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="p">}</span> +<a id="line-235" name="line-235"></a> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_real</span><span class="p">);</span> +<a id="line-239" name="line-239"></a> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-241" name="line-241"></a><span class="p">}</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-244" name="line-244"></a><span class="nf">mp_to_exponential_string_real</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">eng_format</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="p">)</span> +<a id="line-245" name="line-245"></a><span class="p">{</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">fixed</span><span class="p">;</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">base3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">base10</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">base10inv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">mantissa</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-255" name="line-255"></a> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"−"</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mantissa</span><span class="p">);</span> +<a id="line-260" name="line-260"></a> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="o">&</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base3</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="o">&</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10inv</span><span class="p">);</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eng_format</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10inv</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mantissa</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">}</span> +<a id="line-272" name="line-272"></a> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">((</span><span class="o">!</span><span class="n">eng_format</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base</span><span class="p">))</span><span class="w"> </span><span class="o">||</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="p">(</span><span class="n">eng_format</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_greater_equal</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base3</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)))</span><span class="w"> </span><span class="p">{</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mantissa</span><span class="p">);</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">eng_format</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10inv</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mantissa</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="p">}</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_less_than</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">eng_format</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mantissa</span><span class="p">);</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">}</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="p">}</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">fixed</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">mantissa</span><span class="p">,</span><span class="w"> </span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">fixed</span><span class="p">);</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">fixed</span><span class="p">);</span> +<a id="line-294" name="line-294"></a> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">z</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">base</span><span class="p">);</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">base3</span><span class="p">);</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">base10</span><span class="p">);</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">base10inv</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">mantissa</span><span class="p">);</span> +<a id="line-302" name="line-302"></a> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">exponent</span><span class="p">;</span> +<a id="line-304" name="line-304"></a><span class="p">}</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-307" name="line-307"></a><span class="nf">append_exponent</span><span class="p">(</span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">exponent</span><span class="p">)</span> +<a id="line-308" name="line-308"></a><span class="p">{</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">super_digits</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">{</span><span class="s">"⁰"</span><span class="p">,</span><span class="w"> </span><span class="s">"¹"</span><span class="p">,</span><span class="w"> </span><span class="s">"²"</span><span class="p">,</span><span class="w"> </span><span class="s">"³"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁴"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁵"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁶"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁷"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁸"</span><span class="p">,</span><span class="w"> </span><span class="s">"⁹"</span><span class="p">};</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">super_value</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exponent</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-314" name="line-314"></a> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">g_string_append_printf</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"×10"</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: Use the current base</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">exponent</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="o">-</span><span class="n">exponent</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻"</span><span class="p">);</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="p">}</span> +<a id="line-320" name="line-320"></a> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">super_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="s">"%d"</span><span class="p">,</span><span class="w"> </span><span class="n">exponent</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">super_value</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">)</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">super_digits</span><span class="p">[</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="sc">'0'</span><span class="p">]);</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">super_value</span><span class="p">);</span> +<a id="line-325" name="line-325"></a><span class="p">}</span> +<a id="line-326" name="line-326"></a> +<a id="line-327" name="line-327"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-328" name="line-328"></a><span class="nf">mp_to_exponential_string</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">eng_format</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="p">)</span> +<a id="line-329" name="line-329"></a><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">;</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_real</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">result</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">exponent</span><span class="p">;</span> +<a id="line-334" name="line-334"></a> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="p">(</span><span class="mi">1024</span><span class="p">);</span> +<a id="line-336" name="line-336"></a> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">mp_real_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_real</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_exponential_string_real</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_real</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">eng_format</span><span class="p">,</span><span class="w"> </span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">append_exponent</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">exponent</span><span class="p">);</span> +<a id="line-340" name="line-340"></a> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">GString</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="p">;</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_im</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_complex_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-345" name="line-345"></a> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">mp_imaginary_component</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_im</span><span class="p">);</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">g_string_assign</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">x_im</span><span class="p">))</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"+"</span><span class="p">);</span> +<a id="line-352" name="line-352"></a> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_string_sized_new</span><span class="p">(</span><span class="mi">1024</span><span class="p">);</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_exponential_string_real</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_im</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">eng_format</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_complex_digits</span><span class="p">);</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_complex_digits</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="p">)</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="o">*</span><span class="n">n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">n_complex_digits</span><span class="p">;</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"+0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"−0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="cm">/* Ignore */</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="p">}</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="p">}</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"+1"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"+i"</span><span class="p">);</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="p">}</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"−i"</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">}</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"+0"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="error2"><--- Condition 'strcmp(s->str,"+0")==0' is always false</span> +</span><a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"+"</span><span class="p">);</span> +<a id="line-372" name="line-372"></a><span class="hll"><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="error2"><--- Condition 'strcmp(s->str,"0")!=0' is always true</span> +</span><a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">s</span><span class="o">-></span><span class="n">str</span><span class="p">);</span> +<a id="line-374" name="line-374"></a> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="n">g_string_append</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_im</span><span class="p">);</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">append_exponent</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">exponent</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="p">}</span> +<a id="line-381" name="line-381"></a> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strndup</span><span class="p">(</span><span class="n">string</span><span class="o">-></span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="o">-></span><span class="n">len</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">g_string_free</span><span class="p">(</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">);</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_real</span><span class="p">);</span> +<a id="line-385" name="line-385"></a> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">result</span><span class="p">;</span> +<a id="line-387" name="line-387"></a><span class="p">}</span> +<a id="line-388" name="line-388"></a> +<a id="line-389" name="line-389"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-390" name="line-390"></a><span class="nf">mp_serializer_to_string</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-391" name="line-391"></a><span class="p">{</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s0</span><span class="p">;</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">n_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">format</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">:</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">s0</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n_digits</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">leading_digits</span><span class="p">)</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">s0</span><span class="p">;</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">s0</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_to_exponential_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="p">}</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_DISPLAY_FORMAT_FIXED</span><span class="p">:</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_to_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_DISPLAY_FORMAT_SCIENTIFIC</span><span class="p">:</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_to_exponential_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_DISPLAY_FORMAT_ENGINEERING</span><span class="p">:</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_to_exponential_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">n_digits</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="p">}</span> +<a id="line-412" name="line-412"></a><span class="p">}</span> +<a id="line-413" name="line-413"></a> +<a id="line-414" name="line-414"></a><span class="n">gboolean</span> +<a id="line-415" name="line-415"></a><span class="nf">mp_serializer_from_string</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-416" name="line-416"></a><span class="p">{</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">str</span><span class="p">,</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-418" name="line-418"></a><span class="p">}</span> +<a id="line-419" name="line-419"></a> +<a id="line-420" name="line-420"></a><span class="kt">void</span> +<a id="line-421" name="line-421"></a><span class="nf">mp_serializer_set_base</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">)</span> +<a id="line-422" name="line-422"></a><span class="p">{</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">base</span><span class="p">;</span> +<a id="line-424" name="line-424"></a><span class="p">}</span> +<a id="line-425" name="line-425"></a> +<a id="line-426" name="line-426"></a><span class="kt">int</span> +<a id="line-427" name="line-427"></a><span class="nf">mp_serializer_get_base</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-428" name="line-428"></a><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="p">;</span> +<a id="line-430" name="line-430"></a><span class="p">}</span> +<a id="line-431" name="line-431"></a> +<a id="line-432" name="line-432"></a><span class="kt">void</span> +<a id="line-433" name="line-433"></a><span class="nf">mp_serializer_set_radix</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">radix</span><span class="p">)</span> +<a id="line-434" name="line-434"></a><span class="p">{</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">radix</span><span class="p">;</span> +<a id="line-436" name="line-436"></a><span class="p">}</span> +<a id="line-437" name="line-437"></a> +<a id="line-438" name="line-438"></a><span class="n">gunichar</span> +<a id="line-439" name="line-439"></a><span class="nf">mp_serializer_get_radix</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-440" name="line-440"></a><span class="p">{</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">radix</span><span class="p">;</span> +<a id="line-442" name="line-442"></a><span class="p">}</span> +<a id="line-443" name="line-443"></a> +<a id="line-444" name="line-444"></a><span class="kt">void</span> +<a id="line-445" name="line-445"></a><span class="nf">mp_serializer_set_thousands_separator</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">separator</span><span class="p">)</span> +<a id="line-446" name="line-446"></a><span class="p">{</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">separator</span><span class="p">;</span> +<a id="line-448" name="line-448"></a><span class="p">}</span> +<a id="line-449" name="line-449"></a> +<a id="line-450" name="line-450"></a><span class="n">gunichar</span> +<a id="line-451" name="line-451"></a><span class="nf">mp_serializer_get_thousands_separator</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-452" name="line-452"></a><span class="p">{</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep</span><span class="p">;</span> +<a id="line-454" name="line-454"></a><span class="p">}</span> +<a id="line-455" name="line-455"></a> +<a id="line-456" name="line-456"></a><span class="n">gint</span> +<a id="line-457" name="line-457"></a><span class="nf">mp_serializer_get_thousands_separator_count</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-458" name="line-458"></a><span class="p">{</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep_count</span><span class="p">;</span> +<a id="line-460" name="line-460"></a><span class="p">}</span> +<a id="line-461" name="line-461"></a> +<a id="line-462" name="line-462"></a><span class="kt">void</span> +<a id="line-463" name="line-463"></a><span class="nf">mp_serializer_set_show_thousands_separators</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-464" name="line-464"></a><span class="p">{</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-466" name="line-466"></a><span class="p">}</span> +<a id="line-467" name="line-467"></a> +<a id="line-468" name="line-468"></a><span class="n">gboolean</span> +<a id="line-469" name="line-469"></a><span class="nf">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-470" name="line-470"></a><span class="p">{</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_tsep</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="p">}</span> +<a id="line-473" name="line-473"></a> +<a id="line-474" name="line-474"></a><span class="kt">void</span> +<a id="line-475" name="line-475"></a><span class="nf">mp_serializer_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">)</span> +<a id="line-476" name="line-476"></a><span class="p">{</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_zeroes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">visible</span><span class="p">;</span> +<a id="line-478" name="line-478"></a><span class="p">}</span> +<a id="line-479" name="line-479"></a> +<a id="line-480" name="line-480"></a><span class="n">gboolean</span> +<a id="line-481" name="line-481"></a><span class="nf">mp_serializer_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-482" name="line-482"></a><span class="p">{</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_zeroes</span><span class="p">;</span> +<a id="line-484" name="line-484"></a><span class="p">}</span> +<a id="line-485" name="line-485"></a> +<a id="line-486" name="line-486"></a><span class="kt">int</span> +<a id="line-487" name="line-487"></a><span class="nf">mp_serializer_get_leading_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-488" name="line-488"></a><span class="p">{</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">leading_digits</span><span class="p">;</span> +<a id="line-490" name="line-490"></a><span class="p">}</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="kt">void</span> +<a id="line-493" name="line-493"></a><span class="nf">mp_serializer_set_leading_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">leading_digits</span><span class="p">)</span> +<a id="line-494" name="line-494"></a><span class="p">{</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">leading_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">leading_digits</span><span class="p">;</span> +<a id="line-496" name="line-496"></a><span class="p">}</span> +<a id="line-497" name="line-497"></a> +<a id="line-498" name="line-498"></a><span class="kt">int</span> +<a id="line-499" name="line-499"></a><span class="nf">mp_serializer_get_trailing_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-500" name="line-500"></a><span class="p">{</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trailing_digits</span><span class="p">;</span> +<a id="line-502" name="line-502"></a><span class="p">}</span> +<a id="line-503" name="line-503"></a> +<a id="line-504" name="line-504"></a><span class="kt">void</span> +<a id="line-505" name="line-505"></a><span class="nf">mp_serializer_set_trailing_digits</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">)</span> +<a id="line-506" name="line-506"></a><span class="p">{</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trailing_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">;</span> +<a id="line-508" name="line-508"></a><span class="p">}</span> +<a id="line-509" name="line-509"></a> +<a id="line-510" name="line-510"></a><span class="n">MpDisplayFormat</span> +<a id="line-511" name="line-511"></a><span class="nf">mp_serializer_get_number_format</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-512" name="line-512"></a><span class="p">{</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">format</span><span class="p">;</span> +<a id="line-514" name="line-514"></a><span class="p">}</span> +<a id="line-515" name="line-515"></a> +<a id="line-516" name="line-516"></a><span class="kt">void</span> +<a id="line-517" name="line-517"></a><span class="nf">mp_serializer_set_number_format</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">)</span> +<a id="line-518" name="line-518"></a><span class="p">{</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">format</span><span class="p">;</span> +<a id="line-520" name="line-520"></a><span class="p">}</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-523" name="line-523"></a><span class="nf">mp_serializer_set_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-527" name="line-527"></a><span class="p">{</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_SERIALIZER</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-529" name="line-529"></a> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">:</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">mp_serializer_set_show_thousands_separators</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_TRAILING_ZEROES</span><span class="p">:</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">mp_serializer_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_BASE</span><span class="p">:</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">mp_serializer_set_base</span><span class="p">(</span><span class="n">self</span><span class="p">,</span><span class="w"> </span><span class="n">g_value_get_int</span><span class="p">(</span><span class="n">value</span><span class="p">));</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="p">}</span> +<a id="line-544" name="line-544"></a><span class="p">}</span> +<a id="line-545" name="line-545"></a> +<a id="line-546" name="line-546"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-547" name="line-547"></a><span class="nf">mp_serializer_get_property</span><span class="p">(</span><span class="n">GObject</span><span class="w"> </span><span class="o">*</span><span class="n">object</span><span class="p">,</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">GValue</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">,</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">GParamSpec</span><span class="w"> </span><span class="o">*</span><span class="n">pspec</span><span class="p">)</span> +<a id="line-551" name="line-551"></a><span class="p">{</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">self</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_SERIALIZER</span><span class="p">(</span><span class="n">object</span><span class="p">);</span> +<a id="line-553" name="line-553"></a> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">prop_id</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">:</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_show_thousands_separators</span><span class="p">(</span><span class="n">self</span><span class="p">));</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_SHOW_TRAILING_ZEROES</span><span class="p">:</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">g_value_set_boolean</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">self</span><span class="p">));</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">PROP_BASE</span><span class="p">:</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">g_value_set_int</span><span class="p">(</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">mp_serializer_get_base</span><span class="p">(</span><span class="n">self</span><span class="p">));</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">G_OBJECT_WARN_INVALID_PROPERTY_ID</span><span class="p">(</span><span class="n">object</span><span class="p">,</span><span class="w"> </span><span class="n">prop_id</span><span class="p">,</span><span class="w"> </span><span class="n">pspec</span><span class="p">);</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="p">}</span> +<a id="line-568" name="line-568"></a><span class="p">}</span> +<a id="line-569" name="line-569"></a> +<a id="line-570" name="line-570"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-571" name="line-571"></a><span class="nf">mp_serializer_class_init</span><span class="p">(</span><span class="n">MpSerializerClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-572" name="line-572"></a><span class="p">{</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="o">*</span><span class="n">object_class</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">G_OBJECT_CLASS</span><span class="p">(</span><span class="n">klass</span><span class="p">);</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">get_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_get_property</span><span class="p">;</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">object_class</span><span class="o">-></span><span class="n">set_property</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_set_property</span><span class="p">;</span> +<a id="line-576" name="line-576"></a> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">PROP_SHOW_THOUSANDS_SEPARATORS</span><span class="p">,</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="p">(</span><span class="s">"show-thousands-separators"</span><span class="p">,</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="s">"show-thousands-separators"</span><span class="p">,</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="s">"Show thousands separators"</span><span class="p">,</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">TRUE</span><span class="p">,</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">PROP_SHOW_TRAILING_ZEROES</span><span class="p">,</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">g_param_spec_boolean</span><span class="p">(</span><span class="s">"show-trailing-zeroes"</span><span class="p">,</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="s">"show-trailing-zeroes"</span><span class="p">,</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="s">"Show trailing zeroes"</span><span class="p">,</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">FALSE</span><span class="p">,</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">PROP_NUMBER_FORMAT</span><span class="p">,</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">g_param_spec_enum</span><span class="p">(</span><span class="s">"number-format"</span><span class="p">,</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="s">"number-format"</span><span class="p">,</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="s">"Display format"</span><span class="p">,</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">math_mp_display_format_get_type</span><span class="p">(),</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">g_object_class_install_property</span><span class="p">(</span><span class="n">object_class</span><span class="p">,</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">PROP_BASE</span><span class="p">,</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">g_param_spec_int</span><span class="p">(</span><span class="s">"base"</span><span class="p">,</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="s">"base"</span><span class="p">,</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="s">"Default number base"</span><span class="p">,</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">G_PARAM_READWRITE</span><span class="p">));</span> +<a id="line-606" name="line-606"></a><span class="p">}</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-609" name="line-609"></a><span class="nf">mp_serializer_init</span><span class="p">(</span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">)</span> +<a id="line-610" name="line-610"></a><span class="p">{</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">radix</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">utf8_radix</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">tsep</span><span class="p">;</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-613" name="line-613"></a> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">nl_langinfo</span><span class="p">(</span><span class="n">RADIXCHAR</span><span class="p">);</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">utf8_radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_locale_to_utf8</span><span class="p">(</span><span class="n">radix</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">radix</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">radix</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">utf8_radix</span><span class="p">)</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="sc">'.'</span><span class="p">;</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">utf8_radix</span><span class="p">);</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">nl_langinfo</span><span class="p">(</span><span class="n">THOUSEP</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">tsep</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">tsep</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="p">{</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">utf8_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_locale_to_utf8</span><span class="p">(</span><span class="n">tsep</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char</span><span class="p">(</span><span class="n">utf8_tsep</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">utf8_tsep</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="p">}</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="k">else</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="sc">' '</span><span class="p">;</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">tsep_count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">leading_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">12</span><span class="p">;</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">trailing_digits</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">9</span><span class="p">;</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_zeroes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">show_tsep</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">serializer</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">;</span> +<a id="line-635" name="line-635"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/41.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/41.html new file mode 100644 index 0000000..d954528 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/41.html @@ -0,0 +1,779 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp-trigonometric.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp-trigonometric.c</p> +<a href="41.html#line-12"> missingIncludeSystem 12</a><a href="41.html#line-13"> missingIncludeSystem 13</a><a href="41.html#line-14"> missingIncludeSystem 14</a><a href="41.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span><span class="error2"><--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><libintl.h></span><span class="error2"><--- Include file: <libintl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cm">/* Convert x to radians */</span> +<a id="line-20" name="line-20"></a><span class="kt">void</span> +<a id="line-21" name="line-21"></a><span class="nf">convert_to_radians</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-22" name="line-22"></a><span class="p">{</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">unit</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_RADIANS</span><span class="p">:</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_DEGREES</span><span class="p">:</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">180</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_GRADIANS</span><span class="p">:</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">200</span><span class="p">;</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="p">}</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">mpfr_t</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">mpfr_init2</span><span class="p">(</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">mpfr_const_pi</span><span class="p">(</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">mpfr_div_si</span><span class="p">(</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">mpc_mul_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">mpfr_clear</span><span class="p">(</span><span class="n">scale</span><span class="p">);</span> +<a id="line-45" name="line-45"></a><span class="p">}</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="kt">void</span> +<a id="line-48" name="line-48"></a><span class="nf">convert_from_radians</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-49" name="line-49"></a><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="k">switch</span><span class="p">(</span><span class="n">unit</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="k">default</span><span class="o">:</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_RADIANS</span><span class="p">:</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-57" name="line-57"></a> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_DEGREES</span><span class="p">:</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">180</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">MP_GRADIANS</span><span class="p">:</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">200</span><span class="p">;</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">}</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">mpfr_t</span><span class="w"> </span><span class="n">scale</span><span class="p">;</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">mpfr_init2</span><span class="p">(</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">mpfr_const_pi</span><span class="p">(</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">mpfr_si_div</span><span class="p">(</span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">mpc_mul_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">scale</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">mpfr_clear</span><span class="p">(</span><span class="n">scale</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="p">}</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="kt">void</span> +<a id="line-75" name="line-75"></a><span class="nf">mp_get_pi</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-76" name="line-76"></a><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">mpfr_const_pi</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-79" name="line-79"></a><span class="p">}</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="kt">void</span> +<a id="line-82" name="line-82"></a><span class="nf">mp_sin</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-83" name="line-83"></a><span class="p">{</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">else</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">convert_to_radians</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">mpc_sin</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="p">}</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="kt">void</span> +<a id="line-92" name="line-92"></a><span class="nf">mp_cos</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-93" name="line-93"></a><span class="p">{</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">else</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">convert_to_radians</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">mpc_cos</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="p">}</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="kt">void</span> +<a id="line-102" name="line-102"></a><span class="nf">mp_tan</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-103" name="line-103"></a><span class="p">{</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_radians</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">pi</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-107" name="line-107"></a> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">convert_to_radians</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_radians</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">mp_get_pi</span><span class="p">(</span><span class="o">&</span><span class="n">pi</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">pi</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="o">&</span><span class="n">x_radians</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">pi</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">))</span><span class="w"> </span><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when tangent value is undefined */</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Tangent is undefined for angles that are multiples of π (180°) from π∕2 (90°)"</span><span class="p">));</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_radians</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">pi</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">}</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="k">else</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">x_radians</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">mpc_tan</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_radians</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">pi</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="p">}</span> +<a id="line-133" name="line-133"></a> +<a id="line-134" name="line-134"></a><span class="kt">void</span> +<a id="line-135" name="line-135"></a><span class="nf">mp_asin</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_max</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_min</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="p">{</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when inverse sine value is undefined */</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Inverse sine is undefined for values outside [-1, 1]"</span><span class="p">));</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">mpc_asin</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">z</span><span class="p">))</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">convert_from_radians</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="p">}</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="kt">void</span> +<a id="line-159" name="line-159"></a><span class="nf">mp_acos</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-160" name="line-160"></a><span class="p">{</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_max</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_min</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="p">{</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when inverse sine value is undefined */</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Inverse cosine is undefined for values outside [-1, 1]"</span><span class="p">));</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">}</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">mpc_acos</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">z</span><span class="p">))</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">convert_from_radians</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="kt">void</span> +<a id="line-183" name="line-183"></a><span class="nf">mp_atan</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-184" name="line-184"></a><span class="p">{</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">minus_i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">mpc_set_si_si</span><span class="p">(</span><span class="n">i</span><span class="p">.</span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">mpc_set_si_si</span><span class="p">(</span><span class="n">minus_i</span><span class="p">.</span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="cm">/* Check x != i and x != -i */</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_equal</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">i</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_i</span><span class="p">))</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="p">{</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when inverse sine value is undefined */</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Arctangent function is undefined for values i and -i"</span><span class="p">));</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">i</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">minus_i</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">mpc_atan</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">z</span><span class="p">))</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">convert_from_radians</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">i</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">minus_i</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="p">}</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="kt">void</span> +<a id="line-208" name="line-208"></a><span class="nf">mp_sinh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-209" name="line-209"></a><span class="p">{</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">mpc_sinh</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-211" name="line-211"></a><span class="p">}</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="kt">void</span> +<a id="line-214" name="line-214"></a><span class="nf">mp_cosh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-215" name="line-215"></a><span class="p">{</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">mpc_cosh</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="p">}</span> +<a id="line-218" name="line-218"></a> +<a id="line-219" name="line-219"></a><span class="kt">void</span> +<a id="line-220" name="line-220"></a><span class="nf">mp_tanh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-221" name="line-221"></a><span class="p">{</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">mpc_tanh</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-223" name="line-223"></a><span class="p">}</span> +<a id="line-224" name="line-224"></a> +<a id="line-225" name="line-225"></a><span class="kt">void</span> +<a id="line-226" name="line-226"></a><span class="nf">mp_asinh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-227" name="line-227"></a><span class="p">{</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">mpc_asinh</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="p">}</span> +<a id="line-230" name="line-230"></a> +<a id="line-231" name="line-231"></a><span class="kt">void</span> +<a id="line-232" name="line-232"></a><span class="nf">mp_acosh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-233" name="line-233"></a><span class="p">{</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-235" name="line-235"></a> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="cm">/* Check x >= 1 */</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_less_than</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">))</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when inverse hyperbolic cosine value is undefined */</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Inverse hyperbolic cosine is undefined for values less than one"</span><span class="p">));</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="p">}</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">mpc_acosh</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="p">}</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="kt">void</span> +<a id="line-252" name="line-252"></a><span class="nf">mp_atanh</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-253" name="line-253"></a><span class="p">{</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x_min</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_max</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x_min</span><span class="p">)</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="p">{</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when inverse hyperbolic tangent value is undefined */</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Inverse hyperbolic tangent is undefined for values outside (-1, 1)"</span><span class="p">));</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">}</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="n">mpc_atanh</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_max</span><span class="p">);</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x_min</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/42.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/42.html new file mode 100644 index 0000000..208bd7b --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/42.html @@ -0,0 +1,2255 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/mp.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> mp.c</p> +<a href="42.html#line-12"> missingIncludeSystem 12</a><a href="42.html#line-13"> missingIncludeSystem 13</a><a href="42.html#line-14"> missingIncludeSystem 14</a><a href="42.html#line-15"> missingIncludeSystem 15</a><a href="42.html#line-16"> missingIncludeSystem 16</a><a href="42.html#line-658"> constParameterPointer 658</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdint.h></span><span class="error2"><--- Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><math.h></span><span class="error2"><--- Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><errno.h></span><span class="error2"><--- Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">mp_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cm">/* THIS ROUTINE IS CALLED WHEN AN ERROR CONDITION IS ENCOUNTERED, AND</span> +<a id="line-23" name="line-23"></a><span class="cm"> * AFTER A MESSAGE HAS BEEN WRITTEN TO STDERR.</span> +<a id="line-24" name="line-24"></a><span class="cm"> */</span> +<a id="line-25" name="line-25"></a><span class="kt">void</span> +<a id="line-26" name="line-26"></a><span class="nf">mperr</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span> +<a id="line-27" name="line-27"></a><span class="p">{</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">text</span><span class="p">[</span><span class="mi">1024</span><span class="p">];</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">va_start</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">vsnprintf</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">);</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">va_end</span><span class="p">(</span><span class="n">args</span><span class="p">);</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_error</span><span class="p">)</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">mp_error</span><span class="p">);</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">mp_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strdup</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="p">}</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-41" name="line-41"></a><span class="nf">mp_get_error</span><span class="p">()</span> +<a id="line-42" name="line-42"></a><span class="p">{</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_error</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="p">}</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="kt">void</span><span class="w"> </span><span class="nf">mp_clear_error</span><span class="p">()</span> +<a id="line-47" name="line-47"></a><span class="p">{</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_error</span><span class="p">)</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">mp_error</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">mp_error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-51" name="line-51"></a><span class="p">}</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="n">MPNumber</span> +<a id="line-54" name="line-54"></a><span class="nf">mp_new</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-55" name="line-55"></a><span class="p">{</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="p">;</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">z</span><span class="p">.</span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">z</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="p">}</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="n">MPNumber</span> +<a id="line-62" name="line-62"></a><span class="nf">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="n">ulong</span><span class="w"> </span><span class="n">x</span><span class="p">)</span> +<a id="line-63" name="line-63"></a><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">z</span><span class="p">;</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">z</span><span class="p">.</span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">mpc_set_ui</span><span class="p">(</span><span class="n">z</span><span class="p">.</span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">z</span><span class="p">;</span> +<a id="line-68" name="line-68"></a><span class="p">}</span> +<a id="line-69" name="line-69"></a> +<a id="line-70" name="line-70"></a><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span> +<a id="line-71" name="line-71"></a><span class="nf">mp_new_ptr</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">z</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="p">}</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="kt">void</span> +<a id="line-79" name="line-79"></a><span class="nf">mp_clear</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-80" name="line-80"></a><span class="p">{</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">z</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">mpc_clear</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">);</span> +<a id="line-83" name="line-83"></a><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="kt">void</span> +<a id="line-86" name="line-86"></a><span class="nf">mp_free</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-87" name="line-87"></a><span class="p">{</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">z</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">{</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">mpc_clear</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">z</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">}</span> +<a id="line-93" name="line-93"></a><span class="p">}</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="kt">void</span> +<a id="line-96" name="line-96"></a><span class="nf">mp_get_eulers</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-97" name="line-97"></a><span class="p">{</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="cm">/* e^1, since mpfr doesn't have a function to return e */</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">mpfr_set_ui</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">mpfr_exp</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="p">}</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="kt">void</span> +<a id="line-105" name="line-105"></a><span class="nf">mp_get_i</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-106" name="line-106"></a><span class="p">{</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">mpc_set_si_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-108" name="line-108"></a><span class="p">}</span> +<a id="line-109" name="line-109"></a> +<a id="line-110" name="line-110"></a><span class="kt">void</span> +<a id="line-111" name="line-111"></a><span class="nf">mp_abs</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-112" name="line-112"></a><span class="p">{</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">mpc_abs</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-115" name="line-115"></a><span class="p">}</span> +<a id="line-116" name="line-116"></a> +<a id="line-117" name="line-117"></a><span class="kt">void</span> +<a id="line-118" name="line-118"></a><span class="nf">mp_arg</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-119" name="line-119"></a><span class="p">{</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="cm">/* Translators: Error display when attempting to take argument of zero */</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Argument not defined for zero"</span><span class="p">));</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">}</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">mpc_arg</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">convert_from_radians</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="c1">// MPC returns -π for the argument of negative real numbers if</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="c1">// their imaginary part is -0, we want +π for all real negative</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="c1">// numbers</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">mpfr_abs</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="p">}</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="kt">void</span> +<a id="line-139" name="line-139"></a><span class="nf">mp_conjugate</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-140" name="line-140"></a><span class="p">{</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">mpc_conj</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-142" name="line-142"></a><span class="p">}</span> +<a id="line-143" name="line-143"></a> +<a id="line-144" name="line-144"></a><span class="kt">void</span> +<a id="line-145" name="line-145"></a><span class="nf">mp_real_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-146" name="line-146"></a><span class="p">{</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">mpc_set_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="p">}</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="kt">void</span> +<a id="line-151" name="line-151"></a><span class="nf">mp_imaginary_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">mpc_set_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="p">}</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="kt">void</span> +<a id="line-157" name="line-157"></a><span class="nf">mp_add</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-158" name="line-158"></a><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">mpc_add</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="p">}</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="kt">void</span> +<a id="line-163" name="line-163"></a><span class="nf">mp_add_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-164" name="line-164"></a><span class="p">{</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">mpc_add_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="p">}</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="kt">void</span> +<a id="line-169" name="line-169"></a><span class="nf">mp_subtract</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-170" name="line-170"></a><span class="p">{</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">mpc_sub</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="p">}</span> +<a id="line-173" name="line-173"></a> +<a id="line-174" name="line-174"></a><span class="kt">void</span> +<a id="line-175" name="line-175"></a><span class="nf">mp_sgn</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-176" name="line-176"></a><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">mpc_set_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">mpfr_sgn</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">)),</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="p">}</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="kt">void</span> +<a id="line-181" name="line-181"></a><span class="nf">mp_integer_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-182" name="line-182"></a><span class="p">{</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">mpfr_trunc</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">));</span> +<a id="line-185" name="line-185"></a><span class="p">}</span> +<a id="line-186" name="line-186"></a> +<a id="line-187" name="line-187"></a><span class="kt">void</span> +<a id="line-188" name="line-188"></a><span class="nf">mp_fractional_component</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-189" name="line-189"></a><span class="p">{</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">mpfr_frac</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-192" name="line-192"></a><span class="p">}</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="kt">void</span> +<a id="line-195" name="line-195"></a><span class="nf">mp_fractional_part</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-196" name="line-196"></a><span class="p">{</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">f</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">f</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">f</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">f</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="p">}</span> +<a id="line-202" name="line-202"></a> +<a id="line-203" name="line-203"></a><span class="kt">void</span> +<a id="line-204" name="line-204"></a><span class="nf">mp_floor</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-205" name="line-205"></a><span class="p">{</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">mpfr_floor</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">));</span> +<a id="line-208" name="line-208"></a><span class="p">}</span> +<a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="kt">void</span> +<a id="line-211" name="line-211"></a><span class="nf">mp_ceiling</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-212" name="line-212"></a><span class="p">{</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">mpfr_ceil</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">));</span> +<a id="line-215" name="line-215"></a><span class="p">}</span> +<a id="line-216" name="line-216"></a> +<a id="line-217" name="line-217"></a><span class="kt">void</span> +<a id="line-218" name="line-218"></a><span class="nf">mp_round</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-219" name="line-219"></a><span class="p">{</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">mpfr_round</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">));</span> +<a id="line-222" name="line-222"></a><span class="p">}</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="kt">int</span> +<a id="line-225" name="line-225"></a><span class="nf">mp_compare</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-226" name="line-226"></a><span class="p">{</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_cmp</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">));</span> +<a id="line-228" name="line-228"></a><span class="p">}</span> +<a id="line-229" name="line-229"></a> +<a id="line-230" name="line-230"></a><span class="kt">void</span> +<a id="line-231" name="line-231"></a><span class="nf">mp_divide</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-232" name="line-232"></a><span class="p">{</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="p">{</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed attempted to divide by zero */</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Division by zero is undefined"</span><span class="p">));</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="p">}</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">mpc_div</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="p">}</span> +<a id="line-242" name="line-242"></a> +<a id="line-243" name="line-243"></a><span class="kt">void</span> +<a id="line-244" name="line-244"></a><span class="nf">mp_divide_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-245" name="line-245"></a><span class="p">{</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-247" name="line-247"></a> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="p">}</span> +<a id="line-252" name="line-252"></a> +<a id="line-253" name="line-253"></a><span class="kt">bool</span> +<a id="line-254" name="line-254"></a><span class="nf">mp_is_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-255" name="line-255"></a><span class="p">{</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_integer_p</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-260" name="line-260"></a><span class="p">}</span> +<a id="line-261" name="line-261"></a> +<a id="line-262" name="line-262"></a><span class="kt">bool</span> +<a id="line-263" name="line-263"></a><span class="nf">mp_is_positive_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-264" name="line-264"></a><span class="p">{</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="k">else</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_sgn</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">))</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="n">x</span><span class="p">);</span> +<a id="line-269" name="line-269"></a><span class="p">}</span> +<a id="line-270" name="line-270"></a> +<a id="line-271" name="line-271"></a><span class="kt">bool</span> +<a id="line-272" name="line-272"></a><span class="nf">mp_is_natural</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-273" name="line-273"></a><span class="p">{</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">false</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">else</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_sgn</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">))</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="n">x</span><span class="p">);</span> +<a id="line-278" name="line-278"></a><span class="p">}</span> +<a id="line-279" name="line-279"></a> +<a id="line-280" name="line-280"></a><span class="kt">bool</span> +<a id="line-281" name="line-281"></a><span class="nf">mp_is_complex</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-282" name="line-282"></a><span class="p">{</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">!</span><span class="n">mpfr_zero_p</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">));</span> +<a id="line-284" name="line-284"></a><span class="p">}</span> +<a id="line-285" name="line-285"></a> +<a id="line-286" name="line-286"></a><span class="kt">bool</span> +<a id="line-287" name="line-287"></a><span class="nf">mp_is_equal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-288" name="line-288"></a><span class="p">{</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mpc_cmp</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">);</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MPC_INEX_RE</span><span class="p">(</span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">MPC_INEX_IM</span><span class="p">(</span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="p">}</span> +<a id="line-292" name="line-292"></a> +<a id="line-293" name="line-293"></a><span class="kt">void</span> +<a id="line-294" name="line-294"></a><span class="nf">mp_epowy</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-295" name="line-295"></a><span class="p">{</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">mpc_exp</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="p">}</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="kt">bool</span> +<a id="line-300" name="line-300"></a><span class="nf">mp_is_zero</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-301" name="line-301"></a><span class="p">{</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mpc_cmp_si_si</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">MPC_INEX_RE</span><span class="p">(</span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">MPC_INEX_IM</span><span class="p">(</span><span class="n">res</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-304" name="line-304"></a><span class="p">}</span> +<a id="line-305" name="line-305"></a> +<a id="line-306" name="line-306"></a><span class="kt">bool</span> +<a id="line-307" name="line-307"></a><span class="nf">mp_is_negative</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-308" name="line-308"></a><span class="p">{</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mpfr_sgn</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">))</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-310" name="line-310"></a><span class="p">}</span> +<a id="line-311" name="line-311"></a> +<a id="line-312" name="line-312"></a><span class="kt">bool</span> +<a id="line-313" name="line-313"></a><span class="nf">mp_is_greater_equal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-314" name="line-314"></a><span class="p">{</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="p">}</span> +<a id="line-317" name="line-317"></a> +<a id="line-318" name="line-318"></a><span class="kt">bool</span> +<a id="line-319" name="line-319"></a><span class="nf">mp_is_greater_than</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-320" name="line-320"></a><span class="p">{</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-322" name="line-322"></a><span class="p">}</span> +<a id="line-323" name="line-323"></a> +<a id="line-324" name="line-324"></a><span class="kt">bool</span> +<a id="line-325" name="line-325"></a><span class="nf">mp_is_less_equal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-326" name="line-326"></a><span class="p">{</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">)</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-328" name="line-328"></a><span class="p">}</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="kt">bool</span> +<a id="line-331" name="line-331"></a><span class="nf">mp_is_less_than</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">)</span> +<a id="line-332" name="line-332"></a><span class="p">{</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-334" name="line-334"></a><span class="p">}</span> +<a id="line-335" name="line-335"></a> +<a id="line-336" name="line-336"></a><span class="kt">void</span> +<a id="line-337" name="line-337"></a><span class="nf">mp_ln</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-338" name="line-338"></a><span class="p">{</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="cm">/* ln(0) undefined */</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="p">{</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when attempting to take logarithm of zero */</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Logarithm of zero is undefined"</span><span class="p">));</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="p">}</span> +<a id="line-347" name="line-347"></a> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="cm">/* ln(-x) complex */</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="cm">/* FIXME: Make complex numbers optional */</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="cm">/*if (mp_is_negative(x)) {</span> +<a id="line-351" name="line-351"></a><span class="cm"> // Translators: Error displayed attempted to take logarithm of negative value</span> +<a id="line-352" name="line-352"></a><span class="cm"> mperr(_("Logarithm of negative values is undefined"));</span> +<a id="line-353" name="line-353"></a><span class="cm"> mp_set_from_integer(0, z);</span> +<a id="line-354" name="line-354"></a><span class="cm"> return;</span> +<a id="line-355" name="line-355"></a><span class="cm"> }*/</span> +<a id="line-356" name="line-356"></a> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">mpc_log</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="c1">// MPC returns -π for the imaginary part of the log of</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="c1">// negative real numbers if their imaginary part is -0, we want +π</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="w"> </span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">mpfr_abs</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="p">}</span> +<a id="line-363" name="line-363"></a> +<a id="line-364" name="line-364"></a><span class="kt">void</span> +<a id="line-365" name="line-365"></a><span class="nf">mp_logarithm</span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-366" name="line-366"></a><span class="p">{</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="cm">/* log(0) undefined */</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="cm">/* Translators: Error displayed when attempting to take logarithm of zero */</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Logarithm of zero is undefined"</span><span class="p">));</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="p">}</span> +<a id="line-375" name="line-375"></a> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="cm">/* logn(x) = ln(x) / ln(n) */</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="p">}</span> +<a id="line-384" name="line-384"></a> +<a id="line-385" name="line-385"></a><span class="kt">void</span> +<a id="line-386" name="line-386"></a><span class="nf">mp_multiply</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-387" name="line-387"></a><span class="p">{</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">mpc_mul</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-389" name="line-389"></a><span class="p">}</span> +<a id="line-390" name="line-390"></a> +<a id="line-391" name="line-391"></a><span class="kt">void</span> +<a id="line-392" name="line-392"></a><span class="nf">mp_multiply_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-393" name="line-393"></a><span class="p">{</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">mpc_mul_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="p">}</span> +<a id="line-396" name="line-396"></a> +<a id="line-397" name="line-397"></a><span class="kt">void</span> +<a id="line-398" name="line-398"></a><span class="nf">mp_invert_sign</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-399" name="line-399"></a><span class="p">{</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">mpc_neg</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-401" name="line-401"></a><span class="p">}</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="kt">void</span> +<a id="line-404" name="line-404"></a><span class="nf">mp_reciprocal</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-405" name="line-405"></a><span class="p">{</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">mpc_t</span><span class="w"> </span><span class="n">temp</span><span class="p">;</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">mpc_set_ui</span><span class="p">(</span><span class="n">temp</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">mpc_fr_div</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">temp</span><span class="p">),</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">mpc_clear</span><span class="p">(</span><span class="n">temp</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="p">}</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="kt">void</span> +<a id="line-414" name="line-414"></a><span class="nf">mp_root</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-415" name="line-415"></a><span class="p">{</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">ulong</span><span class="w"> </span><span class="n">p</span><span class="p">;</span> +<a id="line-417" name="line-417"></a> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">{</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">mpc_ui_div</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-421" name="line-421"></a> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">LONG_MIN</span><span class="p">)</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ulong</span><span class="p">)</span><span class="w"> </span><span class="n">LONG_MAX</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">else</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ulong</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="n">n</span><span class="p">;</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="p">}</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">{</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">n</span><span class="p">;</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="p">}</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="k">else</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when attempting to take zeroth root */</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The zeroth root of a number is undefined"</span><span class="p">));</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="p">}</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">1</span><span class="p">))</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="p">{</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">mpfr_rootn_ui</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="p">}</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">else</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="p">{</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">mpfr_t</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">mpfr_init2</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">mpfr_set_ui</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">mpfr_ui_div</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">mpc_pow_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">mpfr_clear</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span> +<a id="line-452" name="line-452"></a><span class="p">}</span> +<a id="line-453" name="line-453"></a> +<a id="line-454" name="line-454"></a><span class="kt">void</span> +<a id="line-455" name="line-455"></a><span class="nf">mp_sqrt</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-456" name="line-456"></a><span class="p">{</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">mp_root</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="p">}</span> +<a id="line-459" name="line-459"></a> +<a id="line-460" name="line-460"></a><span class="kt">void</span> +<a id="line-461" name="line-461"></a><span class="nf">mp_factorial</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-462" name="line-462"></a><span class="p">{</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="cm">/* 0! == 1 */</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="p">{</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">mpc_set_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="p">}</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_natural</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">{</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="cm">/* Factorial Not defined for Complex or for negative numbers */</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when attempted take the factorial of a negative or complex number */</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Factorial is only defined for non-negative real numbers"</span><span class="p">));</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="p">}</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">mpfr_t</span><span class="w"> </span><span class="n">tmp2</span><span class="p">;</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">mpfr_init2</span><span class="p">(</span><span class="n">tmp2</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="cm">/* Factorial(x) = Gamma(x+1) - This is the formula used to calculate Factorial of positive real numbers.*/</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">mpfr_gamma</span><span class="p">(</span><span class="n">tmp2</span><span class="p">,</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">tmp</span><span class="p">.</span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">mpc_set_fr</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">tmp2</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="n">mpfr_clear</span><span class="p">(</span><span class="n">tmp2</span><span class="p">);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">}</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="k">else</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="p">{</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="cm">/* Convert to integer - if couldn't be converted then the factorial would be too big anyway */</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">ulong</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_unsigned_integer</span><span class="p">(</span><span class="n">x</span><span class="p">);</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">mpfr_fac_ui</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="p">}</span> +<a id="line-497" name="line-497"></a><span class="p">}</span> +<a id="line-498" name="line-498"></a> +<a id="line-499" name="line-499"></a><span class="kt">void</span> +<a id="line-500" name="line-500"></a><span class="nf">mp_modulus_divide</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-501" name="line-501"></a><span class="p">{</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when attemping to do a modulus division on non-integer numbers */</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"Modulus division is only defined for integers"</span><span class="p">));</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="p">}</span> +<a id="line-508" name="line-508"></a> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-511" name="line-511"></a> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-516" name="line-516"></a> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">mp_compare</span><span class="p">(</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="o">||</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">)</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">))</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-521" name="line-521"></a> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="p">}</span> +<a id="line-525" name="line-525"></a> +<a id="line-526" name="line-526"></a><span class="kt">void</span> +<a id="line-527" name="line-527"></a><span class="nf">mp_modular_exponentiation</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-528" name="line-528"></a><span class="p">{</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">base_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">exp_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">two</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-534" name="line-534"></a> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans</span><span class="p">);</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">);</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exp_value</span><span class="p">);</span> +<a id="line-538" name="line-538"></a> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">mp_reciprocal</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="k">else</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-543" name="line-543"></a> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">exp_value</span><span class="p">))</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="p">{</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="o">&</span><span class="n">exp_value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-547" name="line-547"></a> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">is_even</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_even</span><span class="p">)</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="p">{</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base_value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="o">&</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">ans</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="p">}</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">base_value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base_value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="o">&</span><span class="n">base_value</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">exp_value</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exp_value</span><span class="p">);</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="o">&</span><span class="n">exp_value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">exp_value</span><span class="p">);</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="p">}</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="o">&</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-561" name="line-561"></a> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">exp_value</span><span class="p">);</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">ans</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">two</span><span class="p">);</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="p">}</span> +<a id="line-568" name="line-568"></a> +<a id="line-569" name="line-569"></a><span class="kt">void</span> +<a id="line-570" name="line-570"></a><span class="nf">mp_xpowy</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-571" name="line-571"></a><span class="p">{</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="cm">/* 0^-n invalid */</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when attempted to raise 0 to a negative exponent */</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The power of zero is undefined for a negative exponent"</span><span class="p">));</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="p">}</span> +<a id="line-579" name="line-579"></a> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">y</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="n">y</span><span class="p">))</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="p">{</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">reciprocal</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-583" name="line-583"></a><span class="w"> </span><span class="n">mp_reciprocal</span><span class="p">(</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">reciprocal</span><span class="p">);</span> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">reciprocal</span><span class="p">))</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="p">{</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">mp_root</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">mp_to_integer</span><span class="p">(</span><span class="o">&</span><span class="n">reciprocal</span><span class="p">),</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">reciprocal</span><span class="p">);</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="p">}</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">reciprocal</span><span class="p">);</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="p">}</span> +<a id="line-592" name="line-592"></a> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">mpc_pow</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">y</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-594" name="line-594"></a><span class="p">}</span> +<a id="line-595" name="line-595"></a> +<a id="line-596" name="line-596"></a><span class="kt">void</span> +<a id="line-597" name="line-597"></a><span class="nf">mp_xpowy_integer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-598" name="line-598"></a><span class="p">{</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="cm">/* 0^-n invalid */</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">n</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when attempted to raise 0 to a negative re_exponent */</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The power of zero is undefined for a negative exponent"</span><span class="p">));</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="p">}</span> +<a id="line-606" name="line-606"></a> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">mpc_pow_si</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-608" name="line-608"></a><span class="p">}</span> +<a id="line-609" name="line-609"></a> +<a id="line-610" name="line-610"></a><span class="kt">void</span> +<a id="line-611" name="line-611"></a><span class="nf">mp_erf</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-612" name="line-612"></a><span class="p">{</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when error function (erf) value is undefined */</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The error function is only defined for real numbers"</span><span class="p">));</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="p">}</span> +<a id="line-619" name="line-619"></a> +<a id="line-620" name="line-620"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">mpfr_erf</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="p">}</span> +<a id="line-623" name="line-623"></a> +<a id="line-624" name="line-624"></a><span class="kt">void</span> +<a id="line-625" name="line-625"></a><span class="nf">mp_zeta</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-626" name="line-626"></a><span class="p">{</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_complex</span><span class="p">(</span><span class="n">x</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* Translators: Error displayed when zeta function value is undefined */</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">mperr</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"The Riemann zeta function is only defined for real numbers ≠1"</span><span class="p">));</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="p">}</span> +<a id="line-637" name="line-637"></a> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">mpfr_set_zero</span><span class="p">(</span><span class="n">mpc_imagref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">mpfr_zeta</span><span class="p">(</span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">z</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">mpc_realref</span><span class="p">(</span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">),</span><span class="w"> </span><span class="n">MPFR_RNDN</span><span class="p">);</span> +<a id="line-640" name="line-640"></a> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="p">}</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="cm">/***********************************************************************/</span> +<a id="line-645" name="line-645"></a><span class="cm">/** FACTORIZATION **/</span> +<a id="line-646" name="line-646"></a><span class="cm">/***********************************************************************/</span> +<a id="line-647" name="line-647"></a> +<a id="line-648" name="line-648"></a><span class="cm">/**</span> +<a id="line-649" name="line-649"></a><span class="cm"> * mp_is_pprime uses the Miller-Rabin primality test to decide</span> +<a id="line-650" name="line-650"></a><span class="cm"> * whether or not a number is probable prime.</span> +<a id="line-651" name="line-651"></a><span class="cm"> * For special values of @n and @rounds it can be deterministic,</span> +<a id="line-652" name="line-652"></a><span class="cm"> * but in general the probability of declaring @n as prime if it</span> +<a id="line-653" name="line-653"></a><span class="cm"> * is not is at most 4^(-@rounds).</span> +<a id="line-654" name="line-654"></a><span class="cm"> * @n has to be odd.</span> +<a id="line-655" name="line-655"></a><span class="cm"> * Returns TRUE if @n is probable prime and FALSE otherwise.</span> +<a id="line-656" name="line-656"></a><span class="cm"> */</span> +<a id="line-657" name="line-657"></a><span class="k">static</span><span class="w"> </span><span class="kt">bool</span> +<a id="line-658" name="line-658"></a><span class="hll"><span class="nf">mp_is_pprime</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">ulong</span><span class="w"> </span><span class="n">rounds</span><span class="p">)</span><span class="error2"><--- Parameter 'n' can be declared as pointer to const</span> +</span><a id="line-659" name="line-659"></a><span class="p">{</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">two</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">ulong</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">is_pprime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-664" name="line-664"></a> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="cm">/* Write t := n-1 = 2^l * q with q odd */</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">q</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">q</span><span class="p">);</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="k">do</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="p">{</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="o">&</span><span class="n">q</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">q</span><span class="p">);</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="o">&</span><span class="n">q</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="n">l</span><span class="o">++</span><span class="p">;</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">));</span> +<a id="line-676" name="line-676"></a> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="cm">/* @rounds Miller-Rabin tests to bases a = 2,3,...,@rounds+1 */</span> +<a id="line-678" name="line-678"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">b</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-681" name="line-681"></a> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">ulong</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">mp_to_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">))</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">rounds</span><span class="o">+</span><span class="mi">1</span><span class="p">);</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="p">{</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">a</span><span class="p">);</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="n">mp_modular_exponentiation</span><span class="p">(</span><span class="o">&</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">q</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">b</span><span class="p">);</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">b</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">mp_compare</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">b</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="p">{</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="p">}</span> +<a id="line-690" name="line-690"></a> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">is_witness</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">l</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="p">{</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">mp_modular_exponentiation</span><span class="p">(</span><span class="o">&</span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">b</span><span class="p">);</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="o">&</span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="p">{</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">is_witness</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="p">}</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="p">}</span> +<a id="line-701" name="line-701"></a> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">is_witness</span><span class="p">)</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="p">{</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">is_pprime</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="p">}</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="p">}</span> +<a id="line-708" name="line-708"></a> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">q</span><span class="p">);</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">a</span><span class="p">);</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">b</span><span class="p">);</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">two</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-716" name="line-716"></a> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">is_pprime</span><span class="p">;</span> +<a id="line-718" name="line-718"></a><span class="p">}</span> +<a id="line-719" name="line-719"></a> +<a id="line-720" name="line-720"></a><span class="cm">/**</span> +<a id="line-721" name="line-721"></a><span class="cm"> * Sets z = gcd(a,b) where gcd(a,b) is the greatest common divisor of @a and @b.</span> +<a id="line-722" name="line-722"></a><span class="cm"> */</span> +<a id="line-723" name="line-723"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-724" name="line-724"></a><span class="nf">mp_gcd</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-725" name="line-725"></a><span class="p">{</span> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">null</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-729" name="line-729"></a> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">b</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-732" name="line-732"></a> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="o">&</span><span class="n">t2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">null</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="p">{</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">t2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="p">}</span> +<a id="line-739" name="line-739"></a> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">null</span><span class="p">);</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t1</span><span class="p">);</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t2</span><span class="p">);</span> +<a id="line-743" name="line-743"></a><span class="p">}</span> +<a id="line-744" name="line-744"></a> +<a id="line-745" name="line-745"></a><span class="cm">/**</span> +<a id="line-746" name="line-746"></a><span class="cm"> * mp_pollard_rho searches a divisor of @n using Pollard's rho algorithm.</span> +<a id="line-747" name="line-747"></a><span class="cm"> * @i is the start value of the pseudorandom sequence which is generated</span> +<a id="line-748" name="line-748"></a><span class="cm"> * by the polynomial x^2+1 mod n.</span> +<a id="line-749" name="line-749"></a><span class="cm"> *</span> +<a id="line-750" name="line-750"></a><span class="cm"> * Returns TRUE if a divisor was found and stores the divisor in z.</span> +<a id="line-751" name="line-751"></a><span class="cm"> * Returns FALSE otherwise.</span> +<a id="line-752" name="line-752"></a><span class="cm"> */</span> +<a id="line-753" name="line-753"></a><span class="k">static</span><span class="w"> </span><span class="kt">bool</span> +<a id="line-754" name="line-754"></a><span class="nf">mp_pollard_rho</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">ulong</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-755" name="line-755"></a><span class="p">{</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">two</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="n">i</span><span class="p">);</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">y</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">d</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-761" name="line-761"></a> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="o">&</span><span class="n">d</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="p">{</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">mp_modular_exponentiation</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-766" name="line-766"></a> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">mp_modular_exponentiation</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-769" name="line-769"></a> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="n">mp_modular_exponentiation</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">two</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-772" name="line-772"></a> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">y</span><span class="p">,</span><span class="n">z</span><span class="p">);</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">mp_gcd</span><span class="p">(</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">d</span><span class="p">);</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="p">}</span> +<a id="line-777" name="line-777"></a> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_compare</span><span class="p">(</span><span class="o">&</span><span class="n">d</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="p">{</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">two</span><span class="p">);</span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">d</span><span class="p">);</span> +<a id="line-785" name="line-785"></a> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="p">}</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="k">else</span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="p">{</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">d</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-791" name="line-791"></a> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">two</span><span class="p">);</span> +<a id="line-794" name="line-794"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">x</span><span class="p">);</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">y</span><span class="p">);</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">d</span><span class="p">);</span> +<a id="line-797" name="line-797"></a> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="p">}</span> +<a id="line-800" name="line-800"></a><span class="p">}</span> +<a id="line-801" name="line-801"></a> +<a id="line-802" name="line-802"></a><span class="cm">/**</span> +<a id="line-803" name="line-803"></a><span class="cm"> * find_big_prime_factor acts as driver function for mp_pollard_rho which</span> +<a id="line-804" name="line-804"></a><span class="cm"> * is run as long as a prime factor is found.</span> +<a id="line-805" name="line-805"></a><span class="cm"> * On success sets @z to a prime factor of @n.</span> +<a id="line-806" name="line-806"></a><span class="cm"> */</span> +<a id="line-807" name="line-807"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-808" name="line-808"></a><span class="nf">find_big_prime_factor</span><span class="w"> </span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-809" name="line-809"></a><span class="p">{</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">ulong</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-812" name="line-812"></a> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">)</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="p">{</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">mp_pollard_rho</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">i</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">FALSE</span><span class="p">)</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="p">{</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">;</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="p">}</span> +<a id="line-819" name="line-819"></a> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_pprime</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="mi">50</span><span class="p">))</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="p">{</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="p">}</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="k">else</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="p">}</span> +<a id="line-827" name="line-827"></a> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-830" name="line-830"></a><span class="p">}</span> +<a id="line-831" name="line-831"></a> +<a id="line-832" name="line-832"></a><span class="cm">/**</span> +<a id="line-833" name="line-833"></a><span class="cm"> * mp_factorize tries to factorize the value of @x.</span> +<a id="line-834" name="line-834"></a><span class="cm"> * If @x < 2^64 it calls mp_factorize_unit64 which deals in integers</span> +<a id="line-835" name="line-835"></a><span class="cm"> * and should be fast enough for most values.</span> +<a id="line-836" name="line-836"></a><span class="cm"> * If @x > 2^64 the approach to find factors of @x is as follows:</span> +<a id="line-837" name="line-837"></a><span class="cm"> * - Try to divide @x by prime numbers 2,3,5,7,.. up to min(2^13, sqrt(x))</span> +<a id="line-838" name="line-838"></a><span class="cm"> * - Use Pollard rho to find prime factors > 2^13.</span> +<a id="line-839" name="line-839"></a><span class="cm"> * Returns a pointer to a GList with all prime factors of @x which needs to</span> +<a id="line-840" name="line-840"></a><span class="cm"> * be freed.</span> +<a id="line-841" name="line-841"></a><span class="cm"> */</span> +<a id="line-842" name="line-842"></a><span class="n">GList</span><span class="o">*</span> +<a id="line-843" name="line-843"></a><span class="nf">mp_factorize</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-844" name="line-844"></a><span class="p">{</span> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-848" name="line-848"></a> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-851" name="line-851"></a> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">))</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">{</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-858" name="line-858"></a><span class="w"> </span><span class="p">}</span> +<a id="line-859" name="line-859"></a> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-861" name="line-861"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">))</span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="p">{</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="p">}</span> +<a id="line-870" name="line-870"></a> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="cm">/* If value < 2^64-1, call for factorize_uint64 function which deals in integers */</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="kt">uint64_t</span><span class="w"> </span><span class="n">num</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="n">num</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">num</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">63</span><span class="p">;</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">num</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="p">(</span><span class="n">num</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">int_max</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">int_max</span><span class="p">);</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_less_equal</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">int_max</span><span class="p">))</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="p">{</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_factorize_unit64</span><span class="p">(</span><span class="n">mp_to_unsigned_integer</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">));</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">mp_invert_sign</span><span class="p">(</span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-883" name="line-883"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">int_max</span><span class="p">);</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="p">}</span> +<a id="line-887" name="line-887"></a> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">divisor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_from_unsigned_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">TRUE</span><span class="p">)</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="p">{</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">))</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="p">{</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="p">}</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="k">else</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="p">}</span> +<a id="line-903" name="line-903"></a> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">divisor</span><span class="p">);</span> +<a id="line-905" name="line-905"></a> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-907" name="line-907"></a><span class="w"> </span><span class="n">mp_sqrt</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">root</span><span class="p">);</span> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="kt">uint64_t</span><span class="w"> </span><span class="n">max_trial_division</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">uint64_t</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="mi">10</span><span class="p">);</span> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="kt">uint64_t</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_less_equal</span><span class="p">(</span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">root</span><span class="p">)</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="o">++</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">max_trial_division</span><span class="p">))</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="p">{</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">))</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="p">{</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">mp_sqrt</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">root</span><span class="p">);</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="p">}</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="k">else</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="p">{</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">divisor</span><span class="p">);</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="p">}</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="p">}</span> +<a id="line-927" name="line-927"></a> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_pprime</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="mi">50</span><span class="p">))</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="p">{</span> +<a id="line-930" name="line-930"></a><span class="w"> </span><span class="n">find_big_prime_factor</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">divisor</span><span class="p">);</span> +<a id="line-931" name="line-931"></a> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-933" name="line-933"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">))</span> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="p">{</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="p">}</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="p">}</span> +<a id="line-942" name="line-942"></a> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_greater_than</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">))</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="p">{</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="p">}</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">else</span> +<a id="line-950" name="line-950"></a><span class="w"> </span><span class="p">{</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">mpc_clear</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">);</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="p">}</span> +<a id="line-954" name="line-954"></a> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">mp_is_negative</span><span class="p">(</span><span class="n">x</span><span class="p">))</span> +<a id="line-956" name="line-956"></a><span class="w"> </span><span class="n">mp_invert_sign</span><span class="p">(</span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">,</span><span class="w"> </span><span class="n">list</span><span class="o">-></span><span class="n">data</span><span class="p">);</span> +<a id="line-957" name="line-957"></a> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-959" name="line-959"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">divisor</span><span class="p">);</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">root</span><span class="p">);</span> +<a id="line-962" name="line-962"></a> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-964" name="line-964"></a><span class="p">}</span> +<a id="line-965" name="line-965"></a> +<a id="line-966" name="line-966"></a><span class="n">GList</span><span class="o">*</span> +<a id="line-967" name="line-967"></a><span class="nf">mp_factorize_unit64</span><span class="p">(</span><span class="kt">uint64_t</span><span class="w"> </span><span class="n">n</span><span class="p">)</span> +<a id="line-968" name="line-968"></a><span class="p">{</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-972" name="line-972"></a> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="p">{</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="n">n</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="p">}</span> +<a id="line-983" name="line-983"></a> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">uint64_t</span><span class="w"> </span><span class="n">divisor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span><span class="w"> </span><span class="n">divisor</span><span class="w"> </span><span class="o"><=</span><span class="w"> </span><span class="n">n</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="n">divisor</span><span class="p">;</span><span class="w"> </span><span class="n">divisor</span><span class="w"> </span><span class="o">+=</span><span class="mi">2</span><span class="p">)</span> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="p">{</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">%</span><span class="w"> </span><span class="n">divisor</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="p">{</span> +<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">n</span><span class="w"> </span><span class="o">/=</span><span class="w"> </span><span class="n">divisor</span><span class="p">;</span> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">divisor</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="n">factor</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_slice_alloc0</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">));</span> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="n">mpc_init2</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">PRECISION</span><span class="p">);</span> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="p">}</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="p">}</span> +<a id="line-995" name="line-995"></a> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">n</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="p">{</span> +<a id="line-998" name="line-998"></a><span class="w"> </span><span class="n">mp_set_from_unsigned_integer</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-999" name="line-999"></a><span class="w"> </span><span class="n">list</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">list</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="n">mpc_clear</span><span class="p">(</span><span class="n">factor</span><span class="o">-></span><span class="n">num</span><span class="p">);</span> +<a id="line-1004" name="line-1004"></a><span class="w"> </span><span class="n">g_slice_free</span><span class="p">(</span><span class="n">MPNumber</span><span class="p">,</span><span class="w"> </span><span class="n">factor</span><span class="p">);</span> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-1007" name="line-1007"></a> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">list</span><span class="p">;</span> +<a id="line-1009" name="line-1009"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/43.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/43.html new file mode 100644 index 0000000..be08d9e --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/43.html @@ -0,0 +1,2749 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/parser.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> parser.c</p> +<a href="43.html#line-1"> missingIncludeSystem 1</a><a href="43.html#line-2"> missingIncludeSystem 2</a><a href="43.html#line-3"> missingIncludeSystem 3</a><a href="43.html#line-4"> missingIncludeSystem 4</a><a href="43.html#line-73"> constParameterPointer 73</a><a href="43.html#line-80"> constParameterPointer 80</a><a href="43.html#line-106"> constParameterPointer 106</a><a href="43.html#line-106"> constParameterPointer 106</a><a href="43.html#line-327"> variableScope 327</a><a href="43.html#line-542"> variableScope 542</a><a href="43.html#line-1165"> variableScope 1165</a><a href="43.html#line-1209"> variableScope 1209</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal"> 100</span> +<span class="normal"> 101</span> +<span class="normal"> 102</span> +<span class="normal"> 103</span> +<span class="normal"> 104</span> +<span class="normal"> 105</span> +<span class="normal"> 106</span> +<span class="normal"> 107</span> +<span class="normal"> 108</span> +<span class="normal"> 109</span> +<span class="normal"> 110</span> +<span class="normal"> 111</span> +<span class="normal"> 112</span> +<span class="normal"> 113</span> +<span class="normal"> 114</span> +<span class="normal"> 115</span> +<span class="normal"> 116</span> +<span class="normal"> 117</span> +<span class="normal"> 118</span> +<span class="normal"> 119</span> +<span class="normal"> 120</span> +<span class="normal"> 121</span> +<span class="normal"> 122</span> +<span class="normal"> 123</span> +<span class="normal"> 124</span> +<span class="normal"> 125</span> +<span class="normal"> 126</span> +<span class="normal"> 127</span> +<span class="normal"> 128</span> +<span class="normal"> 129</span> +<span class="normal"> 130</span> +<span class="normal"> 131</span> +<span class="normal"> 132</span> +<span class="normal"> 133</span> +<span class="normal"> 134</span> +<span class="normal"> 135</span> +<span class="normal"> 136</span> +<span class="normal"> 137</span> +<span class="normal"> 138</span> +<span class="normal"> 139</span> +<span class="normal"> 140</span> +<span class="normal"> 141</span> +<span class="normal"> 142</span> +<span class="normal"> 143</span> +<span class="normal"> 144</span> +<span class="normal"> 145</span> +<span class="normal"> 146</span> +<span class="normal"> 147</span> +<span class="normal"> 148</span> +<span class="normal"> 149</span> +<span class="normal"> 150</span> +<span class="normal"> 151</span> +<span class="normal"> 152</span> +<span class="normal"> 153</span> +<span class="normal"> 154</span> +<span class="normal"> 155</span> +<span class="normal"> 156</span> +<span class="normal"> 157</span> +<span class="normal"> 158</span> +<span class="normal"> 159</span> +<span class="normal"> 160</span> +<span class="normal"> 161</span> +<span class="normal"> 162</span> +<span class="normal"> 163</span> +<span class="normal"> 164</span> +<span class="normal"> 165</span> +<span class="normal"> 166</span> +<span class="normal"> 167</span> +<span class="normal"> 168</span> +<span class="normal"> 169</span> +<span class="normal"> 170</span> +<span class="normal"> 171</span> +<span class="normal"> 172</span> +<span class="normal"> 173</span> +<span class="normal"> 174</span> +<span class="normal"> 175</span> +<span class="normal"> 176</span> +<span class="normal"> 177</span> +<span class="normal"> 178</span> +<span class="normal"> 179</span> +<span class="normal"> 180</span> +<span class="normal"> 181</span> +<span class="normal"> 182</span> +<span class="normal"> 183</span> +<span class="normal"> 184</span> +<span class="normal"> 185</span> +<span class="normal"> 186</span> +<span class="normal"> 187</span> +<span class="normal"> 188</span> +<span class="normal"> 189</span> +<span class="normal"> 190</span> +<span class="normal"> 191</span> +<span class="normal"> 192</span> +<span class="normal"> 193</span> +<span class="normal"> 194</span> +<span class="normal"> 195</span> +<span class="normal"> 196</span> +<span class="normal"> 197</span> +<span class="normal"> 198</span> +<span class="normal"> 199</span> +<span class="normal"> 200</span> +<span class="normal"> 201</span> +<span class="normal"> 202</span> +<span class="normal"> 203</span> +<span class="normal"> 204</span> +<span class="normal"> 205</span> +<span class="normal"> 206</span> +<span class="normal"> 207</span> +<span class="normal"> 208</span> +<span class="normal"> 209</span> +<span class="normal"> 210</span> +<span class="normal"> 211</span> +<span class="normal"> 212</span> +<span class="normal"> 213</span> +<span class="normal"> 214</span> +<span class="normal"> 215</span> +<span class="normal"> 216</span> +<span class="normal"> 217</span> +<span class="normal"> 218</span> +<span class="normal"> 219</span> +<span class="normal"> 220</span> +<span class="normal"> 221</span> +<span class="normal"> 222</span> +<span class="normal"> 223</span> +<span class="normal"> 224</span> +<span class="normal"> 225</span> +<span class="normal"> 226</span> +<span class="normal"> 227</span> +<span class="normal"> 228</span> +<span class="normal"> 229</span> +<span class="normal"> 230</span> +<span class="normal"> 231</span> +<span class="normal"> 232</span> +<span class="normal"> 233</span> +<span class="normal"> 234</span> +<span class="normal"> 235</span> +<span class="normal"> 236</span> +<span class="normal"> 237</span> +<span class="normal"> 238</span> +<span class="normal"> 239</span> +<span class="normal"> 240</span> +<span class="normal"> 241</span> +<span class="normal"> 242</span> +<span class="normal"> 243</span> +<span class="normal"> 244</span> +<span class="normal"> 245</span> +<span class="normal"> 246</span> +<span class="normal"> 247</span> +<span class="normal"> 248</span> +<span class="normal"> 249</span> +<span class="normal"> 250</span> +<span class="normal"> 251</span> +<span class="normal"> 252</span> +<span class="normal"> 253</span> +<span class="normal"> 254</span> +<span class="normal"> 255</span> +<span class="normal"> 256</span> +<span class="normal"> 257</span> +<span class="normal"> 258</span> +<span class="normal"> 259</span> +<span class="normal"> 260</span> +<span class="normal"> 261</span> +<span class="normal"> 262</span> +<span class="normal"> 263</span> +<span class="normal"> 264</span> +<span class="normal"> 265</span> +<span class="normal"> 266</span> +<span class="normal"> 267</span> +<span class="normal"> 268</span> +<span class="normal"> 269</span> +<span class="normal"> 270</span> +<span class="normal"> 271</span> +<span class="normal"> 272</span> +<span class="normal"> 273</span> +<span class="normal"> 274</span> +<span class="normal"> 275</span> +<span class="normal"> 276</span> +<span class="normal"> 277</span> +<span class="normal"> 278</span> +<span class="normal"> 279</span> +<span class="normal"> 280</span> +<span class="normal"> 281</span> +<span class="normal"> 282</span> +<span class="normal"> 283</span> +<span class="normal"> 284</span> +<span class="normal"> 285</span> +<span class="normal"> 286</span> +<span class="normal"> 287</span> +<span class="normal"> 288</span> +<span class="normal"> 289</span> +<span class="normal"> 290</span> +<span class="normal"> 291</span> +<span class="normal"> 292</span> +<span class="normal"> 293</span> +<span class="normal"> 294</span> +<span class="normal"> 295</span> +<span class="normal"> 296</span> +<span class="normal"> 297</span> +<span class="normal"> 298</span> +<span class="normal"> 299</span> +<span class="normal"> 300</span> +<span class="normal"> 301</span> +<span class="normal"> 302</span> +<span class="normal"> 303</span> +<span class="normal"> 304</span> +<span class="normal"> 305</span> +<span class="normal"> 306</span> +<span class="normal"> 307</span> +<span class="normal"> 308</span> +<span class="normal"> 309</span> +<span class="normal"> 310</span> +<span class="normal"> 311</span> +<span class="normal"> 312</span> +<span class="normal"> 313</span> +<span class="normal"> 314</span> +<span class="normal"> 315</span> +<span class="normal"> 316</span> +<span class="normal"> 317</span> +<span class="normal"> 318</span> +<span class="normal"> 319</span> +<span class="normal"> 320</span> +<span class="normal"> 321</span> +<span class="normal"> 322</span> +<span class="normal"> 323</span> +<span class="normal"> 324</span> +<span class="normal"> 325</span> +<span class="normal"> 326</span> +<span class="normal"> 327</span> +<span class="normal"> 328</span> +<span class="normal"> 329</span> +<span class="normal"> 330</span> +<span class="normal"> 331</span> +<span class="normal"> 332</span> +<span class="normal"> 333</span> +<span class="normal"> 334</span> +<span class="normal"> 335</span> +<span class="normal"> 336</span> +<span class="normal"> 337</span> +<span class="normal"> 338</span> +<span class="normal"> 339</span> +<span class="normal"> 340</span> +<span class="normal"> 341</span> +<span class="normal"> 342</span> +<span class="normal"> 343</span> +<span class="normal"> 344</span> +<span class="normal"> 345</span> +<span class="normal"> 346</span> +<span class="normal"> 347</span> +<span class="normal"> 348</span> +<span class="normal"> 349</span> +<span class="normal"> 350</span> +<span class="normal"> 351</span> +<span class="normal"> 352</span> +<span class="normal"> 353</span> +<span class="normal"> 354</span> +<span class="normal"> 355</span> +<span class="normal"> 356</span> +<span class="normal"> 357</span> +<span class="normal"> 358</span> +<span class="normal"> 359</span> +<span class="normal"> 360</span> +<span class="normal"> 361</span> +<span class="normal"> 362</span> +<span class="normal"> 363</span> +<span class="normal"> 364</span> +<span class="normal"> 365</span> +<span class="normal"> 366</span> +<span class="normal"> 367</span> +<span class="normal"> 368</span> +<span class="normal"> 369</span> +<span class="normal"> 370</span> +<span class="normal"> 371</span> +<span class="normal"> 372</span> +<span class="normal"> 373</span> +<span class="normal"> 374</span> +<span class="normal"> 375</span> +<span class="normal"> 376</span> +<span class="normal"> 377</span> +<span class="normal"> 378</span> +<span class="normal"> 379</span> +<span class="normal"> 380</span> +<span class="normal"> 381</span> +<span class="normal"> 382</span> +<span class="normal"> 383</span> +<span class="normal"> 384</span> +<span class="normal"> 385</span> +<span class="normal"> 386</span> +<span class="normal"> 387</span> +<span class="normal"> 388</span> +<span class="normal"> 389</span> +<span class="normal"> 390</span> +<span class="normal"> 391</span> +<span class="normal"> 392</span> +<span class="normal"> 393</span> +<span class="normal"> 394</span> +<span class="normal"> 395</span> +<span class="normal"> 396</span> +<span class="normal"> 397</span> +<span class="normal"> 398</span> +<span class="normal"> 399</span> +<span class="normal"> 400</span> +<span class="normal"> 401</span> +<span class="normal"> 402</span> +<span class="normal"> 403</span> +<span class="normal"> 404</span> +<span class="normal"> 405</span> +<span class="normal"> 406</span> +<span class="normal"> 407</span> +<span class="normal"> 408</span> +<span class="normal"> 409</span> +<span class="normal"> 410</span> +<span class="normal"> 411</span> +<span class="normal"> 412</span> +<span class="normal"> 413</span> +<span class="normal"> 414</span> +<span class="normal"> 415</span> +<span class="normal"> 416</span> +<span class="normal"> 417</span> +<span class="normal"> 418</span> +<span class="normal"> 419</span> +<span class="normal"> 420</span> +<span class="normal"> 421</span> +<span class="normal"> 422</span> +<span class="normal"> 423</span> +<span class="normal"> 424</span> +<span class="normal"> 425</span> +<span class="normal"> 426</span> +<span class="normal"> 427</span> +<span class="normal"> 428</span> +<span class="normal"> 429</span> +<span class="normal"> 430</span> +<span class="normal"> 431</span> +<span class="normal"> 432</span> +<span class="normal"> 433</span> +<span class="normal"> 434</span> +<span class="normal"> 435</span> +<span class="normal"> 436</span> +<span class="normal"> 437</span> +<span class="normal"> 438</span> +<span class="normal"> 439</span> +<span class="normal"> 440</span> +<span class="normal"> 441</span> +<span class="normal"> 442</span> +<span class="normal"> 443</span> +<span class="normal"> 444</span> +<span class="normal"> 445</span> +<span class="normal"> 446</span> +<span class="normal"> 447</span> +<span class="normal"> 448</span> +<span class="normal"> 449</span> +<span class="normal"> 450</span> +<span class="normal"> 451</span> +<span class="normal"> 452</span> +<span class="normal"> 453</span> +<span class="normal"> 454</span> +<span class="normal"> 455</span> +<span class="normal"> 456</span> +<span class="normal"> 457</span> +<span class="normal"> 458</span> +<span class="normal"> 459</span> +<span class="normal"> 460</span> +<span class="normal"> 461</span> +<span class="normal"> 462</span> +<span class="normal"> 463</span> +<span class="normal"> 464</span> +<span class="normal"> 465</span> +<span class="normal"> 466</span> +<span class="normal"> 467</span> +<span class="normal"> 468</span> +<span class="normal"> 469</span> +<span class="normal"> 470</span> +<span class="normal"> 471</span> +<span class="normal"> 472</span> +<span class="normal"> 473</span> +<span class="normal"> 474</span> +<span class="normal"> 475</span> +<span class="normal"> 476</span> +<span class="normal"> 477</span> +<span class="normal"> 478</span> +<span class="normal"> 479</span> +<span class="normal"> 480</span> +<span class="normal"> 481</span> +<span class="normal"> 482</span> +<span class="normal"> 483</span> +<span class="normal"> 484</span> +<span class="normal"> 485</span> +<span class="normal"> 486</span> +<span class="normal"> 487</span> +<span class="normal"> 488</span> +<span class="normal"> 489</span> +<span class="normal"> 490</span> +<span class="normal"> 491</span> +<span class="normal"> 492</span> +<span class="normal"> 493</span> +<span class="normal"> 494</span> +<span class="normal"> 495</span> +<span class="normal"> 496</span> +<span class="normal"> 497</span> +<span class="normal"> 498</span> +<span class="normal"> 499</span> +<span class="normal"> 500</span> +<span class="normal"> 501</span> +<span class="normal"> 502</span> +<span class="normal"> 503</span> +<span class="normal"> 504</span> +<span class="normal"> 505</span> +<span class="normal"> 506</span> +<span class="normal"> 507</span> +<span class="normal"> 508</span> +<span class="normal"> 509</span> +<span class="normal"> 510</span> +<span class="normal"> 511</span> +<span class="normal"> 512</span> +<span class="normal"> 513</span> +<span class="normal"> 514</span> +<span class="normal"> 515</span> +<span class="normal"> 516</span> +<span class="normal"> 517</span> +<span class="normal"> 518</span> +<span class="normal"> 519</span> +<span class="normal"> 520</span> +<span class="normal"> 521</span> +<span class="normal"> 522</span> +<span class="normal"> 523</span> +<span class="normal"> 524</span> +<span class="normal"> 525</span> +<span class="normal"> 526</span> +<span class="normal"> 527</span> +<span class="normal"> 528</span> +<span class="normal"> 529</span> +<span class="normal"> 530</span> +<span class="normal"> 531</span> +<span class="normal"> 532</span> +<span class="normal"> 533</span> +<span class="normal"> 534</span> +<span class="normal"> 535</span> +<span class="normal"> 536</span> +<span class="normal"> 537</span> +<span class="normal"> 538</span> +<span class="normal"> 539</span> +<span class="normal"> 540</span> +<span class="normal"> 541</span> +<span class="normal"> 542</span> +<span class="normal"> 543</span> +<span class="normal"> 544</span> +<span class="normal"> 545</span> +<span class="normal"> 546</span> +<span class="normal"> 547</span> +<span class="normal"> 548</span> +<span class="normal"> 549</span> +<span class="normal"> 550</span> +<span class="normal"> 551</span> +<span class="normal"> 552</span> +<span class="normal"> 553</span> +<span class="normal"> 554</span> +<span class="normal"> 555</span> +<span class="normal"> 556</span> +<span class="normal"> 557</span> +<span class="normal"> 558</span> +<span class="normal"> 559</span> +<span class="normal"> 560</span> +<span class="normal"> 561</span> +<span class="normal"> 562</span> +<span class="normal"> 563</span> +<span class="normal"> 564</span> +<span class="normal"> 565</span> +<span class="normal"> 566</span> +<span class="normal"> 567</span> +<span class="normal"> 568</span> +<span class="normal"> 569</span> +<span class="normal"> 570</span> +<span class="normal"> 571</span> +<span class="normal"> 572</span> +<span class="normal"> 573</span> +<span class="normal"> 574</span> +<span class="normal"> 575</span> +<span class="normal"> 576</span> +<span class="normal"> 577</span> +<span class="normal"> 578</span> +<span class="normal"> 579</span> +<span class="normal"> 580</span> +<span class="normal"> 581</span> +<span class="normal"> 582</span> +<span class="normal"> 583</span> +<span class="normal"> 584</span> +<span class="normal"> 585</span> +<span class="normal"> 586</span> +<span class="normal"> 587</span> +<span class="normal"> 588</span> +<span class="normal"> 589</span> +<span class="normal"> 590</span> +<span class="normal"> 591</span> +<span class="normal"> 592</span> +<span class="normal"> 593</span> +<span class="normal"> 594</span> +<span class="normal"> 595</span> +<span class="normal"> 596</span> +<span class="normal"> 597</span> +<span class="normal"> 598</span> +<span class="normal"> 599</span> +<span class="normal"> 600</span> +<span class="normal"> 601</span> +<span class="normal"> 602</span> +<span class="normal"> 603</span> +<span class="normal"> 604</span> +<span class="normal"> 605</span> +<span class="normal"> 606</span> +<span class="normal"> 607</span> +<span class="normal"> 608</span> +<span class="normal"> 609</span> +<span class="normal"> 610</span> +<span class="normal"> 611</span> +<span class="normal"> 612</span> +<span class="normal"> 613</span> +<span class="normal"> 614</span> +<span class="normal"> 615</span> +<span class="normal"> 616</span> +<span class="normal"> 617</span> +<span class="normal"> 618</span> +<span class="normal"> 619</span> +<span class="normal"> 620</span> +<span class="normal"> 621</span> +<span class="normal"> 622</span> +<span class="normal"> 623</span> +<span class="normal"> 624</span> +<span class="normal"> 625</span> +<span class="normal"> 626</span> +<span class="normal"> 627</span> +<span class="normal"> 628</span> +<span class="normal"> 629</span> +<span class="normal"> 630</span> +<span class="normal"> 631</span> +<span class="normal"> 632</span> +<span class="normal"> 633</span> +<span class="normal"> 634</span> +<span class="normal"> 635</span> +<span class="normal"> 636</span> +<span class="normal"> 637</span> +<span class="normal"> 638</span> +<span class="normal"> 639</span> +<span class="normal"> 640</span> +<span class="normal"> 641</span> +<span class="normal"> 642</span> +<span class="normal"> 643</span> +<span class="normal"> 644</span> +<span class="normal"> 645</span> +<span class="normal"> 646</span> +<span class="normal"> 647</span> +<span class="normal"> 648</span> +<span class="normal"> 649</span> +<span class="normal"> 650</span> +<span class="normal"> 651</span> +<span class="normal"> 652</span> +<span class="normal"> 653</span> +<span class="normal"> 654</span> +<span class="normal"> 655</span> +<span class="normal"> 656</span> +<span class="normal"> 657</span> +<span class="normal"> 658</span> +<span class="normal"> 659</span> +<span class="normal"> 660</span> +<span class="normal"> 661</span> +<span class="normal"> 662</span> +<span class="normal"> 663</span> +<span class="normal"> 664</span> +<span class="normal"> 665</span> +<span class="normal"> 666</span> +<span class="normal"> 667</span> +<span class="normal"> 668</span> +<span class="normal"> 669</span> +<span class="normal"> 670</span> +<span class="normal"> 671</span> +<span class="normal"> 672</span> +<span class="normal"> 673</span> +<span class="normal"> 674</span> +<span class="normal"> 675</span> +<span class="normal"> 676</span> +<span class="normal"> 677</span> +<span class="normal"> 678</span> +<span class="normal"> 679</span> +<span class="normal"> 680</span> +<span class="normal"> 681</span> +<span class="normal"> 682</span> +<span class="normal"> 683</span> +<span class="normal"> 684</span> +<span class="normal"> 685</span> +<span class="normal"> 686</span> +<span class="normal"> 687</span> +<span class="normal"> 688</span> +<span class="normal"> 689</span> +<span class="normal"> 690</span> +<span class="normal"> 691</span> +<span class="normal"> 692</span> +<span class="normal"> 693</span> +<span class="normal"> 694</span> +<span class="normal"> 695</span> +<span class="normal"> 696</span> +<span class="normal"> 697</span> +<span class="normal"> 698</span> +<span class="normal"> 699</span> +<span class="normal"> 700</span> +<span class="normal"> 701</span> +<span class="normal"> 702</span> +<span class="normal"> 703</span> +<span class="normal"> 704</span> +<span class="normal"> 705</span> +<span class="normal"> 706</span> +<span class="normal"> 707</span> +<span class="normal"> 708</span> +<span class="normal"> 709</span> +<span class="normal"> 710</span> +<span class="normal"> 711</span> +<span class="normal"> 712</span> +<span class="normal"> 713</span> +<span class="normal"> 714</span> +<span class="normal"> 715</span> +<span class="normal"> 716</span> +<span class="normal"> 717</span> +<span class="normal"> 718</span> +<span class="normal"> 719</span> +<span class="normal"> 720</span> +<span class="normal"> 721</span> +<span class="normal"> 722</span> +<span class="normal"> 723</span> +<span class="normal"> 724</span> +<span class="normal"> 725</span> +<span class="normal"> 726</span> +<span class="normal"> 727</span> +<span class="normal"> 728</span> +<span class="normal"> 729</span> +<span class="normal"> 730</span> +<span class="normal"> 731</span> +<span class="normal"> 732</span> +<span class="normal"> 733</span> +<span class="normal"> 734</span> +<span class="normal"> 735</span> +<span class="normal"> 736</span> +<span class="normal"> 737</span> +<span class="normal"> 738</span> +<span class="normal"> 739</span> +<span class="normal"> 740</span> +<span class="normal"> 741</span> +<span class="normal"> 742</span> +<span class="normal"> 743</span> +<span class="normal"> 744</span> +<span class="normal"> 745</span> +<span class="normal"> 746</span> +<span class="normal"> 747</span> +<span class="normal"> 748</span> +<span class="normal"> 749</span> +<span class="normal"> 750</span> +<span class="normal"> 751</span> +<span class="normal"> 752</span> +<span class="normal"> 753</span> +<span class="normal"> 754</span> +<span class="normal"> 755</span> +<span class="normal"> 756</span> +<span class="normal"> 757</span> +<span class="normal"> 758</span> +<span class="normal"> 759</span> +<span class="normal"> 760</span> +<span class="normal"> 761</span> +<span class="normal"> 762</span> +<span class="normal"> 763</span> +<span class="normal"> 764</span> +<span class="normal"> 765</span> +<span class="normal"> 766</span> +<span class="normal"> 767</span> +<span class="normal"> 768</span> +<span class="normal"> 769</span> +<span class="normal"> 770</span> +<span class="normal"> 771</span> +<span class="normal"> 772</span> +<span class="normal"> 773</span> +<span class="normal"> 774</span> +<span class="normal"> 775</span> +<span class="normal"> 776</span> +<span class="normal"> 777</span> +<span class="normal"> 778</span> +<span class="normal"> 779</span> +<span class="normal"> 780</span> +<span class="normal"> 781</span> +<span class="normal"> 782</span> +<span class="normal"> 783</span> +<span class="normal"> 784</span> +<span class="normal"> 785</span> +<span class="normal"> 786</span> +<span class="normal"> 787</span> +<span class="normal"> 788</span> +<span class="normal"> 789</span> +<span class="normal"> 790</span> +<span class="normal"> 791</span> +<span class="normal"> 792</span> +<span class="normal"> 793</span> +<span class="normal"> 794</span> +<span class="normal"> 795</span> +<span class="normal"> 796</span> +<span class="normal"> 797</span> +<span class="normal"> 798</span> +<span class="normal"> 799</span> +<span class="normal"> 800</span> +<span class="normal"> 801</span> +<span class="normal"> 802</span> +<span class="normal"> 803</span> +<span class="normal"> 804</span> +<span class="normal"> 805</span> +<span class="normal"> 806</span> +<span class="normal"> 807</span> +<span class="normal"> 808</span> +<span class="normal"> 809</span> +<span class="normal"> 810</span> +<span class="normal"> 811</span> +<span class="normal"> 812</span> +<span class="normal"> 813</span> +<span class="normal"> 814</span> +<span class="normal"> 815</span> +<span class="normal"> 816</span> +<span class="normal"> 817</span> +<span class="normal"> 818</span> +<span class="normal"> 819</span> +<span class="normal"> 820</span> +<span class="normal"> 821</span> +<span class="normal"> 822</span> +<span class="normal"> 823</span> +<span class="normal"> 824</span> +<span class="normal"> 825</span> +<span class="normal"> 826</span> +<span class="normal"> 827</span> +<span class="normal"> 828</span> +<span class="normal"> 829</span> +<span class="normal"> 830</span> +<span class="normal"> 831</span> +<span class="normal"> 832</span> +<span class="normal"> 833</span> +<span class="normal"> 834</span> +<span class="normal"> 835</span> +<span class="normal"> 836</span> +<span class="normal"> 837</span> +<span class="normal"> 838</span> +<span class="normal"> 839</span> +<span class="normal"> 840</span> +<span class="normal"> 841</span> +<span class="normal"> 842</span> +<span class="normal"> 843</span> +<span class="normal"> 844</span> +<span class="normal"> 845</span> +<span class="normal"> 846</span> +<span class="normal"> 847</span> +<span class="normal"> 848</span> +<span class="normal"> 849</span> +<span class="normal"> 850</span> +<span class="normal"> 851</span> +<span class="normal"> 852</span> +<span class="normal"> 853</span> +<span class="normal"> 854</span> +<span class="normal"> 855</span> +<span class="normal"> 856</span> +<span class="normal"> 857</span> +<span class="normal"> 858</span> +<span class="normal"> 859</span> +<span class="normal"> 860</span> +<span class="normal"> 861</span> +<span class="normal"> 862</span> +<span class="normal"> 863</span> +<span class="normal"> 864</span> +<span class="normal"> 865</span> +<span class="normal"> 866</span> +<span class="normal"> 867</span> +<span class="normal"> 868</span> +<span class="normal"> 869</span> +<span class="normal"> 870</span> +<span class="normal"> 871</span> +<span class="normal"> 872</span> +<span class="normal"> 873</span> +<span class="normal"> 874</span> +<span class="normal"> 875</span> +<span class="normal"> 876</span> +<span class="normal"> 877</span> +<span class="normal"> 878</span> +<span class="normal"> 879</span> +<span class="normal"> 880</span> +<span class="normal"> 881</span> +<span class="normal"> 882</span> +<span class="normal"> 883</span> +<span class="normal"> 884</span> +<span class="normal"> 885</span> +<span class="normal"> 886</span> +<span class="normal"> 887</span> +<span class="normal"> 888</span> +<span class="normal"> 889</span> +<span class="normal"> 890</span> +<span class="normal"> 891</span> +<span class="normal"> 892</span> +<span class="normal"> 893</span> +<span class="normal"> 894</span> +<span class="normal"> 895</span> +<span class="normal"> 896</span> +<span class="normal"> 897</span> +<span class="normal"> 898</span> +<span class="normal"> 899</span> +<span class="normal"> 900</span> +<span class="normal"> 901</span> +<span class="normal"> 902</span> +<span class="normal"> 903</span> +<span class="normal"> 904</span> +<span class="normal"> 905</span> +<span class="normal"> 906</span> +<span class="normal"> 907</span> +<span class="normal"> 908</span> +<span class="normal"> 909</span> +<span class="normal"> 910</span> +<span class="normal"> 911</span> +<span class="normal"> 912</span> +<span class="normal"> 913</span> +<span class="normal"> 914</span> +<span class="normal"> 915</span> +<span class="normal"> 916</span> +<span class="normal"> 917</span> +<span class="normal"> 918</span> +<span class="normal"> 919</span> +<span class="normal"> 920</span> +<span class="normal"> 921</span> +<span class="normal"> 922</span> +<span class="normal"> 923</span> +<span class="normal"> 924</span> +<span class="normal"> 925</span> +<span class="normal"> 926</span> +<span class="normal"> 927</span> +<span class="normal"> 928</span> +<span class="normal"> 929</span> +<span class="normal"> 930</span> +<span class="normal"> 931</span> +<span class="normal"> 932</span> +<span class="normal"> 933</span> +<span class="normal"> 934</span> +<span class="normal"> 935</span> +<span class="normal"> 936</span> +<span class="normal"> 937</span> +<span class="normal"> 938</span> +<span class="normal"> 939</span> +<span class="normal"> 940</span> +<span class="normal"> 941</span> +<span class="normal"> 942</span> +<span class="normal"> 943</span> +<span class="normal"> 944</span> +<span class="normal"> 945</span> +<span class="normal"> 946</span> +<span class="normal"> 947</span> +<span class="normal"> 948</span> +<span class="normal"> 949</span> +<span class="normal"> 950</span> +<span class="normal"> 951</span> +<span class="normal"> 952</span> +<span class="normal"> 953</span> +<span class="normal"> 954</span> +<span class="normal"> 955</span> +<span class="normal"> 956</span> +<span class="normal"> 957</span> +<span class="normal"> 958</span> +<span class="normal"> 959</span> +<span class="normal"> 960</span> +<span class="normal"> 961</span> +<span class="normal"> 962</span> +<span class="normal"> 963</span> +<span class="normal"> 964</span> +<span class="normal"> 965</span> +<span class="normal"> 966</span> +<span class="normal"> 967</span> +<span class="normal"> 968</span> +<span class="normal"> 969</span> +<span class="normal"> 970</span> +<span class="normal"> 971</span> +<span class="normal"> 972</span> +<span class="normal"> 973</span> +<span class="normal"> 974</span> +<span class="normal"> 975</span> +<span class="normal"> 976</span> +<span class="normal"> 977</span> +<span class="normal"> 978</span> +<span class="normal"> 979</span> +<span class="normal"> 980</span> +<span class="normal"> 981</span> +<span class="normal"> 982</span> +<span class="normal"> 983</span> +<span class="normal"> 984</span> +<span class="normal"> 985</span> +<span class="normal"> 986</span> +<span class="normal"> 987</span> +<span class="normal"> 988</span> +<span class="normal"> 989</span> +<span class="normal"> 990</span> +<span class="normal"> 991</span> +<span class="normal"> 992</span> +<span class="normal"> 993</span> +<span class="normal"> 994</span> +<span class="normal"> 995</span> +<span class="normal"> 996</span> +<span class="normal"> 997</span> +<span class="normal"> 998</span> +<span class="normal"> 999</span> +<span class="normal">1000</span> +<span class="normal">1001</span> +<span class="normal">1002</span> +<span class="normal">1003</span> +<span class="normal">1004</span> +<span class="normal">1005</span> +<span class="normal">1006</span> +<span class="normal">1007</span> +<span class="normal">1008</span> +<span class="normal">1009</span> +<span class="normal">1010</span> +<span class="normal">1011</span> +<span class="normal">1012</span> +<span class="normal">1013</span> +<span class="normal">1014</span> +<span class="normal">1015</span> +<span class="normal">1016</span> +<span class="normal">1017</span> +<span class="normal">1018</span> +<span class="normal">1019</span> +<span class="normal">1020</span> +<span class="normal">1021</span> +<span class="normal">1022</span> +<span class="normal">1023</span> +<span class="normal">1024</span> +<span class="normal">1025</span> +<span class="normal">1026</span> +<span class="normal">1027</span> +<span class="normal">1028</span> +<span class="normal">1029</span> +<span class="normal">1030</span> +<span class="normal">1031</span> +<span class="normal">1032</span> +<span class="normal">1033</span> +<span class="normal">1034</span> +<span class="normal">1035</span> +<span class="normal">1036</span> +<span class="normal">1037</span> +<span class="normal">1038</span> +<span class="normal">1039</span> +<span class="normal">1040</span> +<span class="normal">1041</span> +<span class="normal">1042</span> +<span class="normal">1043</span> +<span class="normal">1044</span> +<span class="normal">1045</span> +<span class="normal">1046</span> +<span class="normal">1047</span> +<span class="normal">1048</span> +<span class="normal">1049</span> +<span class="normal">1050</span> +<span class="normal">1051</span> +<span class="normal">1052</span> +<span class="normal">1053</span> +<span class="normal">1054</span> +<span class="normal">1055</span> +<span class="normal">1056</span> +<span class="normal">1057</span> +<span class="normal">1058</span> +<span class="normal">1059</span> +<span class="normal">1060</span> +<span class="normal">1061</span> +<span class="normal">1062</span> +<span class="normal">1063</span> +<span class="normal">1064</span> +<span class="normal">1065</span> +<span class="normal">1066</span> +<span class="normal">1067</span> +<span class="normal">1068</span> +<span class="normal">1069</span> +<span class="normal">1070</span> +<span class="normal">1071</span> +<span class="normal">1072</span> +<span class="normal">1073</span> +<span class="normal">1074</span> +<span class="normal">1075</span> +<span class="normal">1076</span> +<span class="normal">1077</span> +<span class="normal">1078</span> +<span class="normal">1079</span> +<span class="normal">1080</span> +<span class="normal">1081</span> +<span class="normal">1082</span> +<span class="normal">1083</span> +<span class="normal">1084</span> +<span class="normal">1085</span> +<span class="normal">1086</span> +<span class="normal">1087</span> +<span class="normal">1088</span> +<span class="normal">1089</span> +<span class="normal">1090</span> +<span class="normal">1091</span> +<span class="normal">1092</span> +<span class="normal">1093</span> +<span class="normal">1094</span> +<span class="normal">1095</span> +<span class="normal">1096</span> +<span class="normal">1097</span> +<span class="normal">1098</span> +<span class="normal">1099</span> +<span class="normal">1100</span> +<span class="normal">1101</span> +<span class="normal">1102</span> +<span class="normal">1103</span> +<span class="normal">1104</span> +<span class="normal">1105</span> +<span class="normal">1106</span> +<span class="normal">1107</span> +<span class="normal">1108</span> +<span class="normal">1109</span> +<span class="normal">1110</span> +<span class="normal">1111</span> +<span class="normal">1112</span> +<span class="normal">1113</span> +<span class="normal">1114</span> +<span class="normal">1115</span> +<span class="normal">1116</span> +<span class="normal">1117</span> +<span class="normal">1118</span> +<span class="normal">1119</span> +<span class="normal">1120</span> +<span class="normal">1121</span> +<span class="normal">1122</span> +<span class="normal">1123</span> +<span class="normal">1124</span> +<span class="normal">1125</span> +<span class="normal">1126</span> +<span class="normal">1127</span> +<span class="normal">1128</span> +<span class="normal">1129</span> +<span class="normal">1130</span> +<span class="normal">1131</span> +<span class="normal">1132</span> +<span class="normal">1133</span> +<span class="normal">1134</span> +<span class="normal">1135</span> +<span class="normal">1136</span> +<span class="normal">1137</span> +<span class="normal">1138</span> +<span class="normal">1139</span> +<span class="normal">1140</span> +<span class="normal">1141</span> +<span class="normal">1142</span> +<span class="normal">1143</span> +<span class="normal">1144</span> +<span class="normal">1145</span> +<span class="normal">1146</span> +<span class="normal">1147</span> +<span class="normal">1148</span> +<span class="normal">1149</span> +<span class="normal">1150</span> +<span class="normal">1151</span> +<span class="normal">1152</span> +<span class="normal">1153</span> +<span class="normal">1154</span> +<span class="normal">1155</span> +<span class="normal">1156</span> +<span class="normal">1157</span> +<span class="normal">1158</span> +<span class="normal">1159</span> +<span class="normal">1160</span> +<span class="normal">1161</span> +<span class="normal">1162</span> +<span class="normal">1163</span> +<span class="normal">1164</span> +<span class="normal">1165</span> +<span class="normal">1166</span> +<span class="normal">1167</span> +<span class="normal">1168</span> +<span class="normal">1169</span> +<span class="normal">1170</span> +<span class="normal">1171</span> +<span class="normal">1172</span> +<span class="normal">1173</span> +<span class="normal">1174</span> +<span class="normal">1175</span> +<span class="normal">1176</span> +<span class="normal">1177</span> +<span class="normal">1178</span> +<span class="normal">1179</span> +<span class="normal">1180</span> +<span class="normal">1181</span> +<span class="normal">1182</span> +<span class="normal">1183</span> +<span class="normal">1184</span> +<span class="normal">1185</span> +<span class="normal">1186</span> +<span class="normal">1187</span> +<span class="normal">1188</span> +<span class="normal">1189</span> +<span class="normal">1190</span> +<span class="normal">1191</span> +<span class="normal">1192</span> +<span class="normal">1193</span> +<span class="normal">1194</span> +<span class="normal">1195</span> +<span class="normal">1196</span> +<span class="normal">1197</span> +<span class="normal">1198</span> +<span class="normal">1199</span> +<span class="normal">1200</span> +<span class="normal">1201</span> +<span class="normal">1202</span> +<span class="normal">1203</span> +<span class="normal">1204</span> +<span class="normal">1205</span> +<span class="normal">1206</span> +<span class="normal">1207</span> +<span class="normal">1208</span> +<span class="normal">1209</span> +<span class="normal">1210</span> +<span class="normal">1211</span> +<span class="normal">1212</span> +<span class="normal">1213</span> +<span class="normal">1214</span> +<span class="normal">1215</span> +<span class="normal">1216</span> +<span class="normal">1217</span> +<span class="normal">1218</span> +<span class="normal">1219</span> +<span class="normal">1220</span> +<span class="normal">1221</span> +<span class="normal">1222</span> +<span class="normal">1223</span> +<span class="normal">1224</span> +<span class="normal">1225</span> +<span class="normal">1226</span> +<span class="normal">1227</span> +<span class="normal">1228</span> +<span class="normal">1229</span> +<span class="normal">1230</span> +<span class="normal">1231</span> +<span class="normal">1232</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-2" name="line-2"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-3" name="line-3"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><assert.h></span><span class="error2"><--- Include file: <assert.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-5" name="line-5"></a> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"parser.h"</span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"parserfunc.h"</span> +<a id="line-8" name="line-8"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-9" name="line-9"></a> +<a id="line-10" name="line-10"></a><span class="cm">/* Converts LexerTokenType to Precedence value. */</span> +<a id="line-11" name="line-11"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-12" name="line-12"></a><span class="nf">p_get_precedence</span><span class="p">(</span><span class="n">LexerTokenType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-13" name="line-13"></a><span class="p">{</span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="cm">/* WARNING: This function doesn't work for Unary Plus and Unary Minus. Use their precedence directly while inserting them in tree. */</span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ADD</span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUBTRACT</span><span class="p">)</span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_AddSubtract</span><span class="p">;</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_MULTIPLY</span><span class="p">)</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Multiply</span><span class="p">;</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_MOD</span><span class="p">)</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Mod</span><span class="p">;</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_DIV</span><span class="p">)</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Divide</span><span class="p">;</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NOT</span><span class="p">)</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Not</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_3</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_4</span><span class="p">)</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Root</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">)</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Function</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_AND</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_OR</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_XOR</span><span class="p">)</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Boolean</span><span class="p">;</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="p">)</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Percentage</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_POWER</span><span class="p">)</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Power</span><span class="p">;</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_FACTORIAL</span><span class="p">)</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Factorial</span><span class="p">;</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NUMBER</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_NumberVariable</span><span class="p">;</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">P_Unknown</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="p">}</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="cm">/* Return associativity of specific token type from precedence. */</span> +<a id="line-49" name="line-49"></a><span class="k">static</span><span class="w"> </span><span class="n">Associativity</span> +<a id="line-50" name="line-50"></a><span class="nf">p_get_associativity_p</span><span class="p">(</span><span class="n">Precedence</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-51" name="line-51"></a><span class="p">{</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">P_Boolean</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">P_Divide</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">P_Mod</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">P_Multiply</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">P_AddSubtract</span><span class="p">)</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">LEFT_ASSOCIATIVE</span><span class="p">;</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">P_Power</span><span class="p">)</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">RIGHT_ASSOCIATIVE</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="cm">/* For all remaining / non-associative operators, return Left Associativity. */</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">LEFT_ASSOCIATIVE</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="p">}</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="cm">/* Return associativity of specific token by converting it to precedence first. */</span> +<a id="line-65" name="line-65"></a><span class="k">static</span><span class="w"> </span><span class="n">Associativity</span> +<a id="line-66" name="line-66"></a><span class="nf">p_get_associativity</span><span class="p">(</span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">)</span> +<a id="line-67" name="line-67"></a><span class="p">{</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">p_get_precedence</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">));</span> +<a id="line-69" name="line-69"></a><span class="p">}</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="cm">/* Generate precedence for a node from precedence value. Includes depth_level. */</span> +<a id="line-72" name="line-72"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-73" name="line-73"></a><span class="hll"><span class="nf">p_make_precedence_p</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">Precedence</span><span class="w"> </span><span class="n">p</span><span class="p">)</span><span class="error2"><--- Parameter 'state' can be declared as pointer to const</span> +</span><a id="line-74" name="line-74"></a><span class="p">{</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">P_Depth</span><span class="p">));</span> +<a id="line-76" name="line-76"></a><span class="p">}</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="cm">/* Generate precedence for a node from lexer token type. Includes depth_level. */</span> +<a id="line-79" name="line-79"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-80" name="line-80"></a><span class="hll"><span class="nf">p_make_precedence_t</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">LexerTokenType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span><span class="error2"><--- Parameter 'state' can be declared as pointer to const</span> +</span><a id="line-81" name="line-81"></a><span class="p">{</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">p_get_precedence</span><span class="p">(</span><span class="n">type</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">P_Depth</span><span class="p">));</span> +<a id="line-83" name="line-83"></a><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="cm">/* Allocate and create a new node. */</span> +<a id="line-86" name="line-86"></a><span class="k">static</span><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span> +<a id="line-87" name="line-87"></a><span class="nf">p_create_node</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">precedence</span><span class="p">,</span><span class="w"> </span><span class="n">Associativity</span><span class="w"> </span><span class="n">associativity</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="o">*</span><span class="w"> </span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">function</span><span class="p">)(</span><span class="n">ParseNode</span><span class="o">*</span><span class="p">))</span> +<a id="line-88" name="line-88"></a><span class="p">{</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">new</span><span class="p">;</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">new</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">ParseNode</span><span class="p">));</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">new</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">precedence</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">associativity</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">associativity</span><span class="p">;</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">value</span><span class="p">;</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">new</span><span class="o">-></span><span class="n">evaluate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">function</span><span class="p">;</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">new</span><span class="p">;</span> +<a id="line-102" name="line-102"></a><span class="p">}</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="cm">/* Compares two nodes to decide, which will be parent and which willbe child. */</span> +<a id="line-105" name="line-105"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-106" name="line-106"></a><span class="hll"><span class="nf">p_cmp_nodes</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">)</span><span class="error2"><--- Parameter 'left' can be declared as pointer to const</span><span class="error2"><--- Parameter 'right' can be declared as pointer to const</span> +</span><a id="line-107" name="line-107"></a><span class="p">{</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="cm">/* Return values.</span> +<a id="line-109" name="line-109"></a><span class="cm"> 1 = right goes up (near root) in parse tree.</span> +<a id="line-110" name="line-110"></a><span class="cm"> 0 = left goes up (near root) in parse tree.</span> +<a id="line-111" name="line-111"></a><span class="cm"> */</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">right</span><span class="o">-></span><span class="n">precedence</span><span class="p">)</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="p">{</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">}</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">right</span><span class="o">-></span><span class="n">precedence</span><span class="p">)</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="p">{</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">}</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">else</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="p">{</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="o">-></span><span class="n">associativity</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">RIGHT_ASSOCIATIVE</span><span class="p">)</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="p">}</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">else</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="p">{</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">}</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="p">}</span> +<a id="line-133" name="line-133"></a><span class="p">}</span> +<a id="line-134" name="line-134"></a> +<a id="line-135" name="line-135"></a><span class="cm">/* Unified interface (unary and binary nodes) to insert node into parse tree. */</span> +<a id="line-136" name="line-136"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-137" name="line-137"></a><span class="nf">p_insert_into_tree_all</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">unary_function</span><span class="p">)</span> +<a id="line-138" name="line-138"></a><span class="p">{</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="p">{</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="p">;</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">p_cmp_nodes</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">))</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">parent</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">unary_function</span><span class="p">)</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="p">{</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="cm">/* If tmp is null, that means, we have to insert new node at root. */</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="p">;</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">else</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="p">{</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="p">;</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="p">)</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-163" name="line-163"></a> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="p">)</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="o">-></span><span class="n">right</span><span class="p">;</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="p">}</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">else</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="p">{</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="cm">/* If tmp is null, that means, we have to insert new node at root. */</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="p">{</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="p">;</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="k">else</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="p">{</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="p">;</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">left</span><span class="p">)</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-188" name="line-188"></a> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="p">)</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">tmp</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="p">}</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="p">}</span> +<a id="line-196" name="line-196"></a><span class="p">}</span> +<a id="line-197" name="line-197"></a> +<a id="line-198" name="line-198"></a><span class="cm">/* Insert binary node into the parse tree. */</span> +<a id="line-199" name="line-199"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-200" name="line-200"></a><span class="nf">p_insert_into_tree</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">)</span> +<a id="line-201" name="line-201"></a><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">p_insert_into_tree_all</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="p">}</span> +<a id="line-204" name="line-204"></a> +<a id="line-205" name="line-205"></a><span class="cm">/* Insert unary node into the parse tree. */</span> +<a id="line-206" name="line-206"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-207" name="line-207"></a><span class="nf">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">)</span> +<a id="line-208" name="line-208"></a><span class="p">{</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">p_insert_into_tree_all</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="p">}</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="cm">/* Recursive call to free every node of parse-tree. */</span> +<a id="line-213" name="line-213"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-214" name="line-214"></a><span class="nf">p_destroy_all_nodes</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">)</span> +<a id="line-215" name="line-215"></a><span class="p">{</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">node</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="p">;</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">p_destroy_all_nodes</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">p_destroy_all_nodes</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="cm">/* Don't call free for tokens, as they are allocated and freed in lexer. */</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="cm">/* WARNING: If node->value is freed elsewhere, please assign it NULL before calling p_destroy_all_nodes(). */</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">value</span><span class="p">)</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">value</span><span class="p">);</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">node</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="p">}</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="cm">/* Create parser state. */</span> +<a id="line-228" name="line-228"></a><span class="n">ParserState</span><span class="o">*</span> +<a id="line-229" name="line-229"></a><span class="nf">p_create_parser</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">input</span><span class="p">,</span><span class="w"> </span><span class="n">MPEquationOptions</span><span class="o">*</span><span class="w"> </span><span class="n">options</span><span class="p">)</span> +<a id="line-230" name="line-230"></a><span class="p">{</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">ParserState</span><span class="p">));</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_create_lexer</span><span class="p">(</span><span class="n">input</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">right_most</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error_token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="p">}</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">statement</span><span class="w"> </span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="cm">/* Start parsing input string. And call evaluate on success. */</span> +<a id="line-246" name="line-246"></a><span class="n">guint</span> +<a id="line-247" name="line-247"></a><span class="nf">p_parse</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-248" name="line-248"></a><span class="p">{</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">l_insert_all_tokens</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">statement</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ASSIGN</span><span class="p">)</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="p">{</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PL_EOS</span><span class="p">)</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">{</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="cm">/* Full string is not parsed. */</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="p">)</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PL_EOS</span><span class="p">)</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="cm">/* Full string is not parsed. */</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="p">)</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">;</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="p">}</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">ret</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="cm">/* Input can't be parsed with grammar. */</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">;</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="p">);</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">ans</span><span class="p">)</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="p">{</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">ret</span><span class="p">);</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_NONE</span><span class="p">;</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="p">}</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">;</span> +<a id="line-285" name="line-285"></a><span class="p">}</span> +<a id="line-286" name="line-286"></a> +<a id="line-287" name="line-287"></a><span class="cm">/* Destroy parser state. */</span> +<a id="line-288" name="line-288"></a><span class="kt">void</span> +<a id="line-289" name="line-289"></a><span class="nf">p_destroy_parser</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-290" name="line-290"></a><span class="p">{</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="cm">/* If state has a parse tree, destroy it first. */</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="p">)</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">p_destroy_all_nodes</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">root</span><span class="p">);</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="p">}</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">l_destroy_lexer</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-298" name="line-298"></a><span class="p">}</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="cm">/* LL (*) parser. Lookahead count depends on tokens. Handle with care. :P */</span> +<a id="line-301" name="line-301"></a> +<a id="line-302" name="line-302"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">expression</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-303" name="line-303"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">expression_1</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-304" name="line-304"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">expression_2</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-305" name="line-305"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">unit</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">variable</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-307" name="line-307"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">term</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="nf">term_2</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">);</span> +<a id="line-309" name="line-309"></a> +<a id="line-310" name="line-310"></a><span class="cm">/* Helping function to p_check_variable. */</span> +<a id="line-311" name="line-311"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span> +<a id="line-312" name="line-312"></a><span class="nf">utf8_next_char</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">c</span><span class="p">)</span> +<a id="line-313" name="line-313"></a><span class="p">{</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xC0</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x80</span><span class="p">)</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">c</span><span class="p">;</span> +<a id="line-318" name="line-318"></a><span class="p">}</span> +<a id="line-319" name="line-319"></a> +<a id="line-320" name="line-320"></a><span class="cm">/* Check if string "name" is a valid variable for given ParserState. It is the same code, used to get the value of variable in parserfunc.c. */</span> +<a id="line-321" name="line-321"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-322" name="line-322"></a><span class="nf">p_check_variable</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">name</span><span class="p">)</span> +<a id="line-323" name="line-323"></a><span class="p">{</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-325" name="line-325"></a> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="p">;</span> +<a id="line-327" name="line-327"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">buffer</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'buffer' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'buffer' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">temp</span><span class="p">;</span> +<a id="line-329" name="line-329"></a> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">{</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">}</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">temp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="cm">/* If defined, then get the variable */</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="o">*</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">))</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">{</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">}</span> +<a id="line-341" name="line-341"></a> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="cm">/* If has more than one character then assume a multiplication of variables */</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">utf8_next_char</span><span class="p">(</span><span class="n">name</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="p">{</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="n">buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">name</span><span class="p">));</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">name</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">)</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="p">{</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">utf8_next_char</span><span class="p">(</span><span class="n">c</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">snprintf</span><span class="p">(</span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="kt">size_t</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="n">next</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">),</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">temp</span><span class="p">))</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">{</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-355" name="line-355"></a><span class="w"> </span><span class="p">}</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="p">}</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">buffer</span><span class="p">);</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="p">}</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">temp</span><span class="p">);</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="p">{</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-365" name="line-365"></a><span class="p">}</span> +<a id="line-366" name="line-366"></a> +<a id="line-367" name="line-367"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-368" name="line-368"></a><span class="nf">statement</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-369" name="line-369"></a><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token_old</span><span class="p">;</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="p">{</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="n">token_old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ASSIGN</span><span class="p">)</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="p">{</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="cm">/* VARIABLE = expression. */</span> +<a id="line-381" name="line-381"></a> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_NumberVariable</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_none</span><span class="p">);</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-384" name="line-384"></a> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_set_var</span><span class="p">);</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-387" name="line-387"></a> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="p">}</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_IN</span><span class="p">)</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="p">{</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="cm">/* UNIT in UNIT. */</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-400" name="line-400"></a> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_convert_1</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-403" name="line-403"></a> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="p">}</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">)</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="p">{</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_IN</span><span class="p">)</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="p">{</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="cm">/* UNIT in UNIT */</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-420" name="line-420"></a> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_convert_1</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-423" name="line-423"></a> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="p">}</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="k">else</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="p">{</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="p">}</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="p">}</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="k">else</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="p">{</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="p">}</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="p">}</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">)</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="p">{</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">token_old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">{</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_IN</span><span class="p">)</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="p">{</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="cm">/* NUMBER UNIT in UNIT */</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-459" name="line-459"></a> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_constant</span><span class="p">);</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-462" name="line-462"></a> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-466" name="line-466"></a> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_convert_number</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-469" name="line-469"></a> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="p">}</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">)</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="p">{</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_IN</span><span class="p">)</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">{</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="cm">/* NUMBER UNIT in UNIT */</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-483" name="line-483"></a> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_constant</span><span class="p">);</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-486" name="line-486"></a> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-490" name="line-490"></a> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_convert_number</span><span class="p">);</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-493" name="line-493"></a> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">unit</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="p">}</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">else</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="p">{</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="p">}</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="p">}</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="k">else</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="p">{</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="p">}</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="p">}</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">else</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="p">{</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="p">}</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="p">}</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="k">else</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="p">{</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="p">}</span> +<a id="line-535" name="line-535"></a><span class="p">}</span> +<a id="line-536" name="line-536"></a> +<a id="line-537" name="line-537"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-538" name="line-538"></a><span class="nf">unit</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-539" name="line-539"></a><span class="p">{</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token_old</span><span class="p">;</span> +<a id="line-542" name="line-542"></a><span class="hll"><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'node' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'node' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="p">{</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">token_old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">)</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="cm">/* VARIABLE POWER */</span> +<a id="line-551" name="line-551"></a> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="n">pf_make_unit</span><span class="p">(</span><span class="n">token_old</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">),</span><span class="w"> </span><span class="n">pf_none</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-554" name="line-554"></a> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="p">}</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">else</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="p">{</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="cm">/* VARIABLE */</span> +<a id="line-561" name="line-561"></a> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_none</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-564" name="line-564"></a> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="p">}</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="p">}</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="k">else</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="p">{</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="p">}</span> +<a id="line-573" name="line-573"></a><span class="p">}</span> +<a id="line-574" name="line-574"></a> +<a id="line-575" name="line-575"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-576" name="line-576"></a><span class="nf">expression</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-577" name="line-577"></a><span class="p">{</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-583" name="line-583"></a><span class="p">}</span> +<a id="line-584" name="line-584"></a> +<a id="line-585" name="line-585"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-586" name="line-586"></a><span class="nf">expression_1</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-587" name="line-587"></a><span class="p">{</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_EOS</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ASSIGN</span><span class="p">)</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="p">{</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="p">}</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_R_BRACKET</span><span class="p">)</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">{</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_R_BRACKET</span><span class="p">)</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="p">{</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="p">}</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="k">else</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="c1">//Expected ")" here...</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="p">}</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_S_BRACKET</span><span class="p">)</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="p">{</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-615" name="line-615"></a> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="cm">/* Give round, preference of P_Unknown aka 0, to keep it on the top of expression. */</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_round</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-620" name="line-620"></a> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_S_BRACKET</span><span class="p">)</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="p">{</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="p">}</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="k">else</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="c1">//Expected "]" here...</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="p">}</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_C_BRACKET</span><span class="p">)</span> +<a id="line-634" name="line-634"></a><span class="w"> </span><span class="p">{</span> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-636" name="line-636"></a> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="cm">/* Give fraction, preference of P_Unknown aka 0, to keep it on the top of expression. */</span> +<a id="line-638" name="line-638"></a> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_fraction</span><span class="p">);</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-641" name="line-641"></a> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_C_BRACKET</span><span class="p">)</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="p">{</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="p">}</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="k">else</span> +<a id="line-651" name="line-651"></a><span class="w"> </span><span class="c1">//Expected "}" here...</span> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="p">}</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ABS</span><span class="p">)</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="p">{</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="cm">/* Give abs, preference of P_Unknown aka 0, to keep it on the top of expression. */</span> +<a id="line-659" name="line-659"></a> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_abs</span><span class="p">);</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-662" name="line-662"></a> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ABS</span><span class="p">)</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="p">{</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="p">}</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="k">else</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="c1">//Expected "|" here...</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-674" name="line-674"></a><span class="w"> </span><span class="p">}</span> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NOT</span><span class="p">)</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="p">{</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="cm">/* NOT expression */</span> +<a id="line-678" name="line-678"></a> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Not</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_not</span><span class="p">);</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-681" name="line-681"></a> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="p">}</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">)</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="p">{</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="cm">/* NUMBER */</span> +<a id="line-689" name="line-689"></a> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_constant</span><span class="p">);</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-692" name="line-692"></a> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-695" name="line-695"></a> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_FUNCTION</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUB_NUMBER</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_3</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_4</span><span class="p">)</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="p">{</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="cm">/* NUMBER variable. */</span> +<a id="line-704" name="line-704"></a> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Multiply</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Multiply</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_multiply</span><span class="p">);</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-707" name="line-707"></a> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">variable</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="k">else</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="p">}</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="k">else</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="p">{</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="p">}</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="p">}</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_FLOOR</span><span class="p">)</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="p">{</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="cm">/* Give floor, preference of P_Unknown aka 0, to keep it on the top of expression. */</span> +<a id="line-722" name="line-722"></a> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_floor</span><span class="p">);</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-725" name="line-725"></a> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_FLOOR</span><span class="p">)</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="p">{</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="p">}</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="k">else</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="c1">//Expected ⌋ here...</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="p">}</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_CEILING</span><span class="p">)</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="p">{</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="cm">/* Give ceiling, preference of P_Unknown aka 0, to keep it on the top of expression. */</span> +<a id="line-742" name="line-742"></a> +<a id="line-743" name="line-743"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Unknown</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_ceiling</span><span class="p">);</span> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-745" name="line-745"></a> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_CEILING</span><span class="p">)</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="p">{</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="p">}</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="k">else</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="c1">//Expected ⌉ here...</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="p">}</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUBTRACT</span><span class="p">)</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="p">{</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="cm">/* UnaryMinus expression */</span> +<a id="line-761" name="line-761"></a> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_UnaryMinus</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_UnaryMinus</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_unary_minus</span><span class="p">);</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-764" name="line-764"></a> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="p">}</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ADD</span><span class="p">)</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="p">{</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">)</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="p">{</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="cm">/* UnaryPlus expression */</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="cm">/* Ignore T_ADD. It is not required. */</span> +<a id="line-776" name="line-776"></a> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_constant</span><span class="p">);</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="p">}</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="k">else</span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="p">{</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="p">}</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="p">}</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="k">else</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="p">{</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-789" name="line-789"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">variable</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-790" name="line-790"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-791" name="line-791"></a><span class="w"> </span><span class="k">else</span> +<a id="line-792" name="line-792"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-793" name="line-793"></a><span class="w"> </span><span class="p">}</span> +<a id="line-794" name="line-794"></a><span class="p">}</span> +<a id="line-795" name="line-795"></a> +<a id="line-796" name="line-796"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-797" name="line-797"></a><span class="nf">expression_2</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-798" name="line-798"></a><span class="p">{</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_R_BRACKET</span><span class="p">)</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="p">{</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="cm">/* expression "(" expression ")" */</span> +<a id="line-805" name="line-805"></a> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Multiply</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Multiply</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_multiply</span><span class="p">);</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-808" name="line-808"></a> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">++</span><span class="p">;</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_R_BRACKET</span><span class="p">)</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="p">{</span> +<a id="line-815" name="line-815"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">depth_level</span><span class="o">--</span><span class="p">;</span> +<a id="line-816" name="line-816"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-817" name="line-817"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-818" name="line-818"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-819" name="line-819"></a><span class="w"> </span><span class="p">}</span> +<a id="line-820" name="line-820"></a><span class="w"> </span><span class="k">else</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="p">{</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="p">}</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="p">}</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_POWER</span><span class="p">)</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="p">{</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="cm">/* expression "^" expression */</span> +<a id="line-828" name="line-828"></a> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_x_pow_y</span><span class="p">);</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-831" name="line-831"></a> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="p">}</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">)</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="p">{</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="cm">/* expression T_SUP_NUMBER */</span> +<a id="line-841" name="line-841"></a> +<a id="line-842" name="line-842"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Power</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Power</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_x_pow_y_int</span><span class="p">);</span> +<a id="line-843" name="line-843"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-844" name="line-844"></a> +<a id="line-845" name="line-845"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_NumberVariable</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_NumberVariable</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_none</span><span class="p">);</span> +<a id="line-846" name="line-846"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-847" name="line-847"></a> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="p">}</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NSUP_NUMBER</span><span class="p">)</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="p">{</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="cm">/* expression T_NSUP_NUMBER */</span> +<a id="line-855" name="line-855"></a> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Power</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Power</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_x_pow_y_int</span><span class="p">);</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-858" name="line-858"></a> +<a id="line-859" name="line-859"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_NumberVariable</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_NumberVariable</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_none</span><span class="p">);</span> +<a id="line-860" name="line-860"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-861" name="line-861"></a> +<a id="line-862" name="line-862"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-863" name="line-863"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="p">}</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_FACTORIAL</span><span class="p">)</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="p">{</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="cm">/* expression T_FACTORIAL */</span> +<a id="line-869" name="line-869"></a> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_factorial</span><span class="p">);</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-872" name="line-872"></a> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="p">}</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_MULTIPLY</span><span class="p">)</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="p">{</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="cm">/* expression T_MULTIPLY expression */</span> +<a id="line-880" name="line-880"></a> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_multiply</span><span class="p">);</span> +<a id="line-882" name="line-882"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-883" name="line-883"></a> +<a id="line-884" name="line-884"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-885" name="line-885"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-886" name="line-886"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-887" name="line-887"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="p">}</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="p">)</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="p">{</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="cm">/* expression % */</span> +<a id="line-893" name="line-893"></a> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_percent</span><span class="p">);</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-896" name="line-896"></a> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="p">}</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_AND</span><span class="p">)</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="p">{</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="cm">/* expression T_AND expression */</span> +<a id="line-904" name="line-904"></a> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_and</span><span class="p">);</span> +<a id="line-906" name="line-906"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-907" name="line-907"></a> +<a id="line-908" name="line-908"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-909" name="line-909"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-910" name="line-910"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-911" name="line-911"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="p">}</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_OR</span><span class="p">)</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="p">{</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="cm">/* expression T_OR expression */</span> +<a id="line-917" name="line-917"></a> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_or</span><span class="p">);</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-920" name="line-920"></a> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="p">}</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_XOR</span><span class="p">)</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="p">{</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="cm">/* expression T_XOR expression */</span> +<a id="line-930" name="line-930"></a> +<a id="line-931" name="line-931"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_xor</span><span class="p">);</span> +<a id="line-932" name="line-932"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-933" name="line-933"></a> +<a id="line-934" name="line-934"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-935" name="line-935"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="p">}</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_DIV</span><span class="p">)</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="p">{</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="cm">/* expression T_DIV expression */</span> +<a id="line-943" name="line-943"></a> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_divide</span><span class="p">);</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-946" name="line-946"></a> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-950" name="line-950"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="p">}</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_MOD</span><span class="p">)</span> +<a id="line-954" name="line-954"></a><span class="w"> </span><span class="p">{</span> +<a id="line-955" name="line-955"></a><span class="w"> </span><span class="cm">/* expression T_MOD expression */</span> +<a id="line-956" name="line-956"></a> +<a id="line-957" name="line-957"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_mod</span><span class="p">);</span> +<a id="line-958" name="line-958"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-959" name="line-959"></a> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="p">}</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ADD</span><span class="p">)</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="p">{</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="cm">/* expression T_ADD expression */</span> +<a id="line-969" name="line-969"></a> +<a id="line-970" name="line-970"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_add</span><span class="p">);</span> +<a id="line-971" name="line-971"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-972" name="line-972"></a> +<a id="line-973" name="line-973"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-974" name="line-974"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-975" name="line-975"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-976" name="line-976"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="p">)</span> +<a id="line-977" name="line-977"></a><span class="w"> </span><span class="p">{</span> +<a id="line-978" name="line-978"></a><span class="w"> </span><span class="c1">//FIXME: This condition needs to be verified for all cases.. :(</span> +<a id="line-979" name="line-979"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">P_Percentage</span><span class="p">)</span> +<a id="line-980" name="line-980"></a><span class="w"> </span><span class="p">{</span> +<a id="line-981" name="line-981"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">P_Percentage</span><span class="p">;</span> +<a id="line-982" name="line-982"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">evaluate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pf_do_add_percent</span><span class="p">;</span> +<a id="line-983" name="line-983"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-984" name="line-984"></a><span class="w"> </span><span class="p">}</span> +<a id="line-985" name="line-985"></a><span class="w"> </span><span class="k">else</span> +<a id="line-986" name="line-986"></a><span class="w"> </span><span class="p">{</span> +<a id="line-987" name="line-987"></a><span class="w"> </span><span class="cm">/* Assume '%' to be part of 'expression T_PERCENTAGE' statement. */</span> +<a id="line-988" name="line-988"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-989" name="line-989"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-990" name="line-990"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-991" name="line-991"></a><span class="w"> </span><span class="p">}</span> +<a id="line-992" name="line-992"></a><span class="w"> </span><span class="p">}</span> +<a id="line-993" name="line-993"></a><span class="w"> </span><span class="k">else</span> +<a id="line-994" name="line-994"></a><span class="w"> </span><span class="p">{</span> +<a id="line-995" name="line-995"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-996" name="line-996"></a><span class="w"> </span><span class="p">}</span> +<a id="line-997" name="line-997"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-998" name="line-998"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-999" name="line-999"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1000" name="line-1000"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1001" name="line-1001"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUBTRACT</span><span class="p">)</span> +<a id="line-1002" name="line-1002"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1003" name="line-1003"></a><span class="w"> </span><span class="cm">/* expression T_SUBTRACT expression */</span> +<a id="line-1004" name="line-1004"></a> +<a id="line-1005" name="line-1005"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_subtract</span><span class="p">);</span> +<a id="line-1006" name="line-1006"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1007" name="line-1007"></a> +<a id="line-1008" name="line-1008"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_1</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1009" name="line-1009"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1010" name="line-1010"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1011" name="line-1011"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="p">)</span> +<a id="line-1012" name="line-1012"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1013" name="line-1013"></a><span class="w"> </span><span class="c1">//FIXME: This condition needs to be verified for all cases.. :(</span> +<a id="line-1014" name="line-1014"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">node</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="n">P_Percentage</span><span class="p">)</span> +<a id="line-1015" name="line-1015"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1016" name="line-1016"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">precedence</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">P_Percentage</span><span class="p">;</span> +<a id="line-1017" name="line-1017"></a><span class="w"> </span><span class="n">node</span><span class="o">-></span><span class="n">evaluate</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pf_do_subtract_percent</span><span class="p">;</span> +<a id="line-1018" name="line-1018"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1019" name="line-1019"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1020" name="line-1020"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1021" name="line-1021"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1022" name="line-1022"></a><span class="w"> </span><span class="cm">/* Assume '%' to be part of 'expression T_PERCENTAGE' statement. */</span> +<a id="line-1023" name="line-1023"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1024" name="line-1024"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1025" name="line-1025"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1026" name="line-1026"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1027" name="line-1027"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1028" name="line-1028"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1029" name="line-1029"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1030" name="line-1030"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1031" name="line-1031"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1032" name="line-1032"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1033" name="line-1033"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1034" name="line-1034"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1035" name="line-1035"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1036" name="line-1036"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1037" name="line-1037"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1038" name="line-1038"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1039" name="line-1039"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1040" name="line-1040"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1041" name="line-1041"></a><span class="p">}</span> +<a id="line-1042" name="line-1042"></a> +<a id="line-1043" name="line-1043"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-1044" name="line-1044"></a><span class="nf">variable</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-1045" name="line-1045"></a><span class="p">{</span> +<a id="line-1046" name="line-1046"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-1047" name="line-1047"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token_old</span><span class="p">;</span> +<a id="line-1048" name="line-1048"></a><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span> +<a id="line-1049" name="line-1049"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1050" name="line-1050"></a> +<a id="line-1051" name="line-1051"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">)</span> +<a id="line-1052" name="line-1052"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1053" name="line-1053"></a><span class="w"> </span><span class="n">token_old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-1054" name="line-1054"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1055" name="line-1055"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">)</span> +<a id="line-1056" name="line-1056"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1057" name="line-1057"></a><span class="w"> </span><span class="cm">/* FUNCTION SUP_NUMBER expression */</span> +<a id="line-1058" name="line-1058"></a><span class="w"> </span><span class="cm">/* Pass power as void * value. That will be taken care in pf_apply_func_with_powre. */</span> +<a id="line-1059" name="line-1059"></a> +<a id="line-1060" name="line-1060"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">pf_apply_func_with_power</span><span class="p">);</span> +<a id="line-1061" name="line-1061"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1062" name="line-1062"></a> +<a id="line-1063" name="line-1063"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1064" name="line-1064"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1065" name="line-1065"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1066" name="line-1066"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1067" name="line-1067"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NSUP_NUMBER</span><span class="p">)</span> +<a id="line-1068" name="line-1068"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1069" name="line-1069"></a><span class="w"> </span><span class="cm">/* FUNCTION NSUP_NUMBER expression */</span> +<a id="line-1070" name="line-1070"></a><span class="w"> </span><span class="cm">/* Pass power as void * value. That will be taken care in pf_apply_func_with_npowre. */</span> +<a id="line-1071" name="line-1071"></a> +<a id="line-1072" name="line-1072"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">pf_apply_func_with_npower</span><span class="p">);</span> +<a id="line-1073" name="line-1073"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1074" name="line-1074"></a> +<a id="line-1075" name="line-1075"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1076" name="line-1076"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1077" name="line-1077"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1078" name="line-1078"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1079" name="line-1079"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1080" name="line-1080"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1081" name="line-1081"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1082" name="line-1082"></a><span class="w"> </span><span class="cm">/* FUNCTION expression */</span> +<a id="line-1083" name="line-1083"></a> +<a id="line-1084" name="line-1084"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_apply_func</span><span class="p">);</span> +<a id="line-1085" name="line-1085"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1086" name="line-1086"></a> +<a id="line-1087" name="line-1087"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1088" name="line-1088"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1089" name="line-1089"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1090" name="line-1090"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1091" name="line-1091"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1092" name="line-1092"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUB_NUMBER</span><span class="p">)</span> +<a id="line-1093" name="line-1093"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1094" name="line-1094"></a><span class="w"> </span><span class="n">token_old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-1095" name="line-1095"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1096" name="line-1096"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT</span><span class="p">)</span> +<a id="line-1097" name="line-1097"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1098" name="line-1098"></a><span class="w"> </span><span class="cm">/* SUB_NUM ROOT expression */</span> +<a id="line-1099" name="line-1099"></a><span class="w"> </span><span class="cm">/* Pass SUB_NUM as void* value in node. pf_do_nth_root will take care of it. */</span> +<a id="line-1100" name="line-1100"></a> +<a id="line-1101" name="line-1101"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_nth_root</span><span class="p">);</span> +<a id="line-1102" name="line-1102"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1103" name="line-1103"></a> +<a id="line-1104" name="line-1104"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1105" name="line-1105"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1106" name="line-1106"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1107" name="line-1107"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1108" name="line-1108"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1109" name="line-1109"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1110" name="line-1110"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1111" name="line-1111"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1112" name="line-1112"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1113" name="line-1113"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT</span><span class="p">)</span> +<a id="line-1114" name="line-1114"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1115" name="line-1115"></a><span class="w"> </span><span class="cm">/* ROOT expression */</span> +<a id="line-1116" name="line-1116"></a> +<a id="line-1117" name="line-1117"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_sqrt</span><span class="p">);</span> +<a id="line-1118" name="line-1118"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1119" name="line-1119"></a> +<a id="line-1120" name="line-1120"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1121" name="line-1121"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1122" name="line-1122"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1123" name="line-1123"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1124" name="line-1124"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_3</span><span class="p">)</span> +<a id="line-1125" name="line-1125"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1126" name="line-1126"></a><span class="w"> </span><span class="cm">/* ROOT_3 expression */</span> +<a id="line-1127" name="line-1127"></a> +<a id="line-1128" name="line-1128"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_root_3</span><span class="p">);</span> +<a id="line-1129" name="line-1129"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1130" name="line-1130"></a> +<a id="line-1131" name="line-1131"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1132" name="line-1132"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1133" name="line-1133"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1134" name="line-1134"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1135" name="line-1135"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_4</span><span class="p">)</span> +<a id="line-1136" name="line-1136"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1137" name="line-1137"></a><span class="w"> </span><span class="cm">/* ROOT_4 expression */</span> +<a id="line-1138" name="line-1138"></a> +<a id="line-1139" name="line-1139"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_root_4</span><span class="p">);</span> +<a id="line-1140" name="line-1140"></a><span class="w"> </span><span class="n">p_insert_into_tree_unary</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1141" name="line-1141"></a> +<a id="line-1142" name="line-1142"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">expression</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1143" name="line-1143"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1144" name="line-1144"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1145" name="line-1145"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1146" name="line-1146"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-1147" name="line-1147"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1148" name="line-1148"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1149" name="line-1149"></a><span class="w"> </span><span class="c1">//TODO: unknown function ERROR for (T_VARIABLE T_SUP_NUMBER expression).</span> +<a id="line-1150" name="line-1150"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">term</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1151" name="line-1151"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1152" name="line-1152"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1153" name="line-1153"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1154" name="line-1154"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1155" name="line-1155"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1156" name="line-1156"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1157" name="line-1157"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1158" name="line-1158"></a><span class="p">}</span> +<a id="line-1159" name="line-1159"></a> +<a id="line-1160" name="line-1160"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-1161" name="line-1161"></a><span class="nf">term</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-1162" name="line-1162"></a><span class="p">{</span> +<a id="line-1163" name="line-1163"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-1164" name="line-1164"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token_old</span><span class="p">;</span> +<a id="line-1165" name="line-1165"></a><span class="hll"><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'node' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'node' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-1166" name="line-1166"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1167" name="line-1167"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-1168" name="line-1168"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1169" name="line-1169"></a><span class="w"> </span><span class="n">token_old</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-1170" name="line-1170"></a><span class="w"> </span><span class="cm">/* Check if the token is a valid variable or not. */</span> +<a id="line-1171" name="line-1171"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">p_check_variable</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">))</span> +<a id="line-1172" name="line-1172"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1173" name="line-1173"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">,</span><span class="w"> </span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-1174" name="line-1174"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1175" name="line-1175"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1176" name="line-1176"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1177" name="line-1177"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">)</span> +<a id="line-1178" name="line-1178"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1179" name="line-1179"></a><span class="w"> </span><span class="cm">/* VARIABLE SUP_NUMBER */</span> +<a id="line-1180" name="line-1180"></a><span class="w"> </span><span class="cm">/* Pass power as void* value. pf_get_variable_with_power will take care of it. */</span> +<a id="line-1181" name="line-1181"></a> +<a id="line-1182" name="line-1182"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="n">token</span><span class="p">,</span><span class="w"> </span><span class="n">pf_get_variable_with_power</span><span class="p">);</span> +<a id="line-1183" name="line-1183"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1184" name="line-1184"></a> +<a id="line-1185" name="line-1185"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1186" name="line-1186"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1187" name="line-1187"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1188" name="line-1188"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1189" name="line-1189"></a><span class="w"> </span><span class="cm">/* VARIABLE */</span> +<a id="line-1190" name="line-1190"></a> +<a id="line-1191" name="line-1191"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_t</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">token_old</span><span class="o">-></span><span class="n">token_type</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity</span><span class="p">(</span><span class="n">token_old</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_get_variable</span><span class="p">);</span> +<a id="line-1192" name="line-1192"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1193" name="line-1193"></a> +<a id="line-1194" name="line-1194"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1195" name="line-1195"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">term_2</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1196" name="line-1196"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1197" name="line-1197"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1198" name="line-1198"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1199" name="line-1199"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1200" name="line-1200"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1201" name="line-1201"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1202" name="line-1202"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1203" name="line-1203"></a><span class="p">}</span> +<a id="line-1204" name="line-1204"></a> +<a id="line-1205" name="line-1205"></a><span class="k">static</span><span class="w"> </span><span class="n">guint</span> +<a id="line-1206" name="line-1206"></a><span class="nf">term_2</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-1207" name="line-1207"></a><span class="p">{</span> +<a id="line-1208" name="line-1208"></a><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span> +<a id="line-1209" name="line-1209"></a><span class="hll"><span class="w"> </span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">node</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'node' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'node' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-1210" name="line-1210"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1211" name="line-1211"></a><span class="w"> </span><span class="n">l_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">lexer</span><span class="p">);</span> +<a id="line-1212" name="line-1212"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_EOS</span> +<a id="line-1213" name="line-1213"></a><span class="w"> </span><span class="o">||</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ASSIGN</span><span class="p">)</span> +<a id="line-1214" name="line-1214"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1215" name="line-1215"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1216" name="line-1216"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1217" name="line-1217"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">)</span> +<a id="line-1218" name="line-1218"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1219" name="line-1219"></a><span class="w"> </span><span class="cm">/* Insert multiply in between two distinct (variable). */</span> +<a id="line-1220" name="line-1220"></a> +<a id="line-1221" name="line-1221"></a><span class="w"> </span><span class="n">node</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">p_create_node</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">p_make_precedence_p</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">P_Multiply</span><span class="p">),</span><span class="w"> </span><span class="n">p_get_associativity_p</span><span class="p">(</span><span class="n">P_Multiply</span><span class="p">),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">pf_do_multiply</span><span class="p">);</span> +<a id="line-1222" name="line-1222"></a><span class="w"> </span><span class="n">p_insert_into_tree</span><span class="p">(</span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">node</span><span class="p">);</span> +<a id="line-1223" name="line-1223"></a> +<a id="line-1224" name="line-1224"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">term</span><span class="p">(</span><span class="n">state</span><span class="p">))</span> +<a id="line-1225" name="line-1225"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-1226" name="line-1226"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1227" name="line-1227"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1228" name="line-1228"></a><span class="w"> </span><span class="k">else</span> +<a id="line-1229" name="line-1229"></a><span class="w"> </span><span class="p">{</span> +<a id="line-1230" name="line-1230"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-1231" name="line-1231"></a><span class="w"> </span><span class="p">}</span> +<a id="line-1232" name="line-1232"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/44.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/44.html new file mode 100644 index 0000000..1569463 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/44.html @@ -0,0 +1,2203 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/parserfunc.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> parserfunc.c</p> +<a href="44.html#line-1"> missingIncludeSystem 1</a><a href="44.html#line-2"> missingIncludeSystem 2</a><a href="44.html#line-3"> missingIncludeSystem 3</a><a href="44.html#line-4"> missingIncludeSystem 4</a><a href="44.html#line-172"> variableScope 172</a><a href="44.html#line-228"> variableScope 228</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span> +<span class="normal">789</span> +<span class="normal">790</span> +<span class="normal">791</span> +<span class="normal">792</span> +<span class="normal">793</span> +<span class="normal">794</span> +<span class="normal">795</span> +<span class="normal">796</span> +<span class="normal">797</span> +<span class="normal">798</span> +<span class="normal">799</span> +<span class="normal">800</span> +<span class="normal">801</span> +<span class="normal">802</span> +<span class="normal">803</span> +<span class="normal">804</span> +<span class="normal">805</span> +<span class="normal">806</span> +<span class="normal">807</span> +<span class="normal">808</span> +<span class="normal">809</span> +<span class="normal">810</span> +<span class="normal">811</span> +<span class="normal">812</span> +<span class="normal">813</span> +<span class="normal">814</span> +<span class="normal">815</span> +<span class="normal">816</span> +<span class="normal">817</span> +<span class="normal">818</span> +<span class="normal">819</span> +<span class="normal">820</span> +<span class="normal">821</span> +<span class="normal">822</span> +<span class="normal">823</span> +<span class="normal">824</span> +<span class="normal">825</span> +<span class="normal">826</span> +<span class="normal">827</span> +<span class="normal">828</span> +<span class="normal">829</span> +<span class="normal">830</span> +<span class="normal">831</span> +<span class="normal">832</span> +<span class="normal">833</span> +<span class="normal">834</span> +<span class="normal">835</span> +<span class="normal">836</span> +<span class="normal">837</span> +<span class="normal">838</span> +<span class="normal">839</span> +<span class="normal">840</span> +<span class="normal">841</span> +<span class="normal">842</span> +<span class="normal">843</span> +<span class="normal">844</span> +<span class="normal">845</span> +<span class="normal">846</span> +<span class="normal">847</span> +<span class="normal">848</span> +<span class="normal">849</span> +<span class="normal">850</span> +<span class="normal">851</span> +<span class="normal">852</span> +<span class="normal">853</span> +<span class="normal">854</span> +<span class="normal">855</span> +<span class="normal">856</span> +<span class="normal">857</span> +<span class="normal">858</span> +<span class="normal">859</span> +<span class="normal">860</span> +<span class="normal">861</span> +<span class="normal">862</span> +<span class="normal">863</span> +<span class="normal">864</span> +<span class="normal">865</span> +<span class="normal">866</span> +<span class="normal">867</span> +<span class="normal">868</span> +<span class="normal">869</span> +<span class="normal">870</span> +<span class="normal">871</span> +<span class="normal">872</span> +<span class="normal">873</span> +<span class="normal">874</span> +<span class="normal">875</span> +<span class="normal">876</span> +<span class="normal">877</span> +<span class="normal">878</span> +<span class="normal">879</span> +<span class="normal">880</span> +<span class="normal">881</span> +<span class="normal">882</span> +<span class="normal">883</span> +<span class="normal">884</span> +<span class="normal">885</span> +<span class="normal">886</span> +<span class="normal">887</span> +<span class="normal">888</span> +<span class="normal">889</span> +<span class="normal">890</span> +<span class="normal">891</span> +<span class="normal">892</span> +<span class="normal">893</span> +<span class="normal">894</span> +<span class="normal">895</span> +<span class="normal">896</span> +<span class="normal">897</span> +<span class="normal">898</span> +<span class="normal">899</span> +<span class="normal">900</span> +<span class="normal">901</span> +<span class="normal">902</span> +<span class="normal">903</span> +<span class="normal">904</span> +<span class="normal">905</span> +<span class="normal">906</span> +<span class="normal">907</span> +<span class="normal">908</span> +<span class="normal">909</span> +<span class="normal">910</span> +<span class="normal">911</span> +<span class="normal">912</span> +<span class="normal">913</span> +<span class="normal">914</span> +<span class="normal">915</span> +<span class="normal">916</span> +<span class="normal">917</span> +<span class="normal">918</span> +<span class="normal">919</span> +<span class="normal">920</span> +<span class="normal">921</span> +<span class="normal">922</span> +<span class="normal">923</span> +<span class="normal">924</span> +<span class="normal">925</span> +<span class="normal">926</span> +<span class="normal">927</span> +<span class="normal">928</span> +<span class="normal">929</span> +<span class="normal">930</span> +<span class="normal">931</span> +<span class="normal">932</span> +<span class="normal">933</span> +<span class="normal">934</span> +<span class="normal">935</span> +<span class="normal">936</span> +<span class="normal">937</span> +<span class="normal">938</span> +<span class="normal">939</span> +<span class="normal">940</span> +<span class="normal">941</span> +<span class="normal">942</span> +<span class="normal">943</span> +<span class="normal">944</span> +<span class="normal">945</span> +<span class="normal">946</span> +<span class="normal">947</span> +<span class="normal">948</span> +<span class="normal">949</span> +<span class="normal">950</span> +<span class="normal">951</span> +<span class="normal">952</span> +<span class="normal">953</span> +<span class="normal">954</span> +<span class="normal">955</span> +<span class="normal">956</span> +<span class="normal">957</span> +<span class="normal">958</span> +<span class="normal">959</span> +<span class="normal">960</span> +<span class="normal">961</span> +<span class="normal">962</span> +<span class="normal">963</span> +<span class="normal">964</span> +<span class="normal">965</span> +<span class="normal">966</span> +<span class="normal">967</span> +<span class="normal">968</span> +<span class="normal">969</span> +<span class="normal">970</span> +<span class="normal">971</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-2" name="line-2"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-3" name="line-3"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-5" name="line-5"></a> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"parser.h"</span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"parserfunc.h"</span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="cm">/* Register error variables in ParserState structure. */</span> +<a id="line-10" name="line-10"></a><span class="kt">void</span> +<a id="line-11" name="line-11"></a><span class="nf">set_error</span><span class="p">(</span><span class="n">ParserState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">errorno</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">token</span><span class="p">)</span> +<a id="line-12" name="line-12"></a><span class="p">{</span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">errorno</span><span class="p">;</span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="p">)</span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">error_token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strdup</span><span class="p">(</span><span class="n">token</span><span class="p">);</span> +<a id="line-16" name="line-16"></a><span class="p">}</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cm">/* Unused function pointer. This won't be called anytime. */</span> +<a id="line-19" name="line-19"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-20" name="line-20"></a><span class="nf">pf_none</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-21" name="line-21"></a><span class="p">{</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-23" name="line-23"></a><span class="p">}</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="cm">/* Set variable. */</span> +<a id="line-26" name="line-26"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-27" name="line-27"></a><span class="nf">pf_set_var</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-28" name="line-28"></a><span class="p">{</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">set_variable</span><span class="p">))</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="p">}</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">set_variable</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-39" name="line-39"></a><span class="p">}</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="cm">/* Converts Number from one unit to other. */</span> +<a id="line-42" name="line-42"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-43" name="line-43"></a><span class="nf">pf_convert_number</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-44" name="line-44"></a><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">from</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">to</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">free_from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">free_to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="p">)</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">{</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="p">;</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">free_from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="p">}</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="k">else</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">;</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="p">)</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="p">{</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="p">;</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">free_to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">}</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="k">else</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">;</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">{</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">END_PF_CONVERT_NUMBER</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="p">}</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">convert</span><span class="p">))</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="p">{</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">END_PF_CONVERT_NUMBER</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">}</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">convert</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">from</span><span class="p">,</span><span class="w"> </span><span class="n">to</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">))</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_CONVERSION</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">}</span> +<a id="line-84" name="line-84"></a><span class="nl">END_PF_CONVERT_NUMBER</span><span class="p">:</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">free_from</span><span class="p">)</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">{</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">}</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">free_to</span><span class="p">)</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">{</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">}</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-97" name="line-97"></a><span class="p">}</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="cm">/* Conversion rate. */</span> +<a id="line-100" name="line-100"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-101" name="line-101"></a><span class="nf">pf_convert_1</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="w"> </span><span class="p">)</span> +<a id="line-102" name="line-102"></a><span class="p">{</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">from</span><span class="p">;</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">to</span><span class="p">;</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">free_from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">free_to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="p">)</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="p">{</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="p">;</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">free_from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="p">}</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">else</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">from</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="p">)</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="p">{</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="p">;</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">free_to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="p">}</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">else</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">to</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">;</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">convert</span><span class="p">))</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">{</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">}</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">convert</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">from</span><span class="p">,</span><span class="w"> </span><span class="n">to</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">))</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="p">{</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_CONVERSION</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="p">}</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">free_from</span><span class="p">)</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">{</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="p">);</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">free_to</span><span class="p">)</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="p">{</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="p">}</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-147" name="line-147"></a><span class="p">}</span> +<a id="line-148" name="line-148"></a> +<a id="line-149" name="line-149"></a><span class="cm">/* Join source unit and power. */</span> +<a id="line-150" name="line-150"></a><span class="n">gchar</span><span class="o">*</span> +<a id="line-151" name="line-151"></a><span class="nf">pf_make_unit</span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">power</span><span class="p">)</span> +<a id="line-152" name="line-152"></a><span class="p">{</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strjoin</span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">source</span><span class="p">,</span><span class="w"> </span><span class="n">power</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="p">}</span> +<a id="line-155" name="line-155"></a> +<a id="line-156" name="line-156"></a><span class="k">static</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-157" name="line-157"></a><span class="nf">utf8_next_char</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">)</span> +<a id="line-158" name="line-158"></a><span class="p">{</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">&</span><span class="w"> </span><span class="mh">0xC0</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0x80</span><span class="p">)</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">c</span><span class="o">++</span><span class="p">;</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">return</span><span class="p">(</span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="p">}</span> +<a id="line-164" name="line-164"></a> +<a id="line-165" name="line-165"></a><span class="cm">/* Get value of variable. */</span> +<a id="line-166" name="line-166"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-167" name="line-167"></a><span class="nf">pf_get_variable</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-168" name="line-168"></a><span class="p">{</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="p">;</span> +<a id="line-172" name="line-172"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">buffer</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'buffer' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'buffer' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-177" name="line-177"></a> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="p">{</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="p">}</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="cm">/* If defined, then get the variable */</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">))</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">{</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="p">}</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="cm">/* If has more than one character then assume a multiplication of variables */</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">utf8_next_char</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="p">{</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">));</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">)</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="p">{</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">utf8_next_char</span><span class="p">(</span><span class="n">c</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">snprintf</span><span class="p">(</span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">))</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="p">{</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="p">}</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="p">}</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">buffer</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">result</span><span class="p">)</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">}</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="p">{</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">free</span><span class="w"> </span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="p">}</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-218" name="line-218"></a><span class="p">}</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="cm">/* Get value of variable with power. */</span> +<a id="line-221" name="line-221"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-222" name="line-222"></a><span class="nf">pf_get_variable_with_power</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-223" name="line-223"></a><span class="p">{</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pow</span><span class="p">;</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">next</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">buffer</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'buffer' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'buffer' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-230" name="line-230"></a> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">super_atoi</span><span class="p">(((</span><span class="n">LexerToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="p">)</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="cm">/* No need to free the memory. It is allocated and freed somewhere else. */</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-237" name="line-237"></a> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="cm">/* If defined, then get the variable */</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">))</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="p">{</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="n">ans</span><span class="p">,</span><span class="w"> </span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="p">}</span> +<a id="line-250" name="line-250"></a> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="cm">/* If has more than one character then assume a multiplication of variables */</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">utf8_next_char</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">)[</span><span class="mi">0</span><span class="p">]</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="p">{</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">buffer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">));</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">;</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">;</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">next</span><span class="p">)</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="p">{</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">utf8_next_char</span><span class="p">(</span><span class="n">c</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">snprintf</span><span class="p">(</span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="n">next</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">c</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="n">c</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_variable</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">buffer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">))</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">{</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-266" name="line-266"></a> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="cm">/* If last term do power */</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">*</span><span class="n">next</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="sc">'\0'</span><span class="p">)</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">value</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">}</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">buffer</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">result</span><span class="p">)</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">value</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">}</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="p">)</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="p">{</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">}</span> +<a id="line-282" name="line-282"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-283" name="line-283"></a><span class="p">}</span> +<a id="line-284" name="line-284"></a> +<a id="line-285" name="line-285"></a><span class="cm">/* Apply function on child. */</span> +<a id="line-286" name="line-286"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-287" name="line-287"></a><span class="nf">pf_apply_func</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-288" name="line-288"></a><span class="p">{</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="p">))</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="p">{</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="p">}</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="p">{</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">}</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">))</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="p">{</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_FUNCTION</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="p">}</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-312" name="line-312"></a><span class="p">}</span> +<a id="line-313" name="line-313"></a> +<a id="line-314" name="line-314"></a><span class="cm">/* Apply function with +ve power. */</span> +<a id="line-315" name="line-315"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-316" name="line-316"></a><span class="nf">pf_apply_func_with_power</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-317" name="line-317"></a><span class="p">{</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pow</span><span class="p">;</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="p">))</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="p">{</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="p">}</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="p">{</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">}</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="p">))</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="p">{</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_FUNCTION</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="p">}</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">super_atoi</span><span class="p">(((</span><span class="n">LexerToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="p">)</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-353" name="line-353"></a><span class="p">}</span> +<a id="line-354" name="line-354"></a> +<a id="line-355" name="line-355"></a><span class="cm">/* Apply function with -ve power. */</span> +<a id="line-356" name="line-356"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-357" name="line-357"></a><span class="nf">pf_apply_func_with_npower</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-358" name="line-358"></a><span class="p">{</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pow</span><span class="p">;</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">inv_name</span><span class="p">;</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="n">inv_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">gchar</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="s">"⁻¹"</span><span class="p">)</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">);</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="n">strcpy</span><span class="p">(</span><span class="n">inv_name</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">strcat</span><span class="p">(</span><span class="n">inv_name</span><span class="p">,</span><span class="w"> </span><span class="s">"⁻¹"</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="p">{</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">inv_name</span><span class="p">);</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="p">}</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="p">))</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="p">{</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">inv_name</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="p">}</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">get_function</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">inv_name</span><span class="p">,</span><span class="w"> </span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="p">))</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="p">{</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">inv_name</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_FUNCTION</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="p">}</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">super_atoi</span><span class="p">(((</span><span class="n">LexerToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="p">)</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">inv_name</span><span class="p">);</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-401" name="line-401"></a><span class="p">}</span> +<a id="line-402" name="line-402"></a> +<a id="line-403" name="line-403"></a><span class="cm">/* Find nth root of child. */</span> +<a id="line-404" name="line-404"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-405" name="line-405"></a><span class="nf">pf_do_nth_root</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-406" name="line-406"></a><span class="p">{</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">pow</span><span class="p">;</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">sub_atoi</span><span class="p">(((</span><span class="n">LexerToken</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="p">)</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="p">{</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="p">}</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="n">mp_root</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-421" name="line-421"></a><span class="p">}</span> +<a id="line-422" name="line-422"></a> +<a id="line-423" name="line-423"></a><span class="cm">/* Find sqrt of child. */</span> +<a id="line-424" name="line-424"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-425" name="line-425"></a><span class="nf">pf_do_sqrt</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-426" name="line-426"></a><span class="p">{</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="p">{</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="p">}</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">mp_sqrt</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-438" name="line-438"></a><span class="p">}</span> +<a id="line-439" name="line-439"></a> +<a id="line-440" name="line-440"></a><span class="cm">/* Find 3rd root of child. */</span> +<a id="line-441" name="line-441"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-442" name="line-442"></a><span class="nf">pf_do_root_3</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-443" name="line-443"></a><span class="p">{</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="p">{</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="p">}</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">mp_root</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-455" name="line-455"></a><span class="p">}</span> +<a id="line-456" name="line-456"></a> +<a id="line-457" name="line-457"></a><span class="cm">/* Find 4th root of child. */</span> +<a id="line-458" name="line-458"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-459" name="line-459"></a><span class="nf">pf_do_root_4</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-460" name="line-460"></a><span class="p">{</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="p">{</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="p">}</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="n">mp_root</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-472" name="line-472"></a><span class="p">}</span> +<a id="line-473" name="line-473"></a> +<a id="line-474" name="line-474"></a><span class="cm">/* Apply floor function. */</span> +<a id="line-475" name="line-475"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-476" name="line-476"></a><span class="nf">pf_do_floor</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-477" name="line-477"></a><span class="p">{</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="p">{</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="p">}</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="n">mp_floor</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-489" name="line-489"></a><span class="p">}</span> +<a id="line-490" name="line-490"></a> +<a id="line-491" name="line-491"></a><span class="cm">/* Apply ceiling function. */</span> +<a id="line-492" name="line-492"></a><span class="kt">void</span><span class="o">*</span><span class="w"> </span><span class="nf">pf_do_ceiling</span><span class="w"> </span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-493" name="line-493"></a><span class="p">{</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="p">{</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="p">}</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">mp_ceiling</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-505" name="line-505"></a><span class="p">}</span> +<a id="line-506" name="line-506"></a> +<a id="line-507" name="line-507"></a><span class="cm">/* Round off. */</span> +<a id="line-508" name="line-508"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-509" name="line-509"></a><span class="nf">pf_do_round</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-510" name="line-510"></a><span class="p">{</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="p">{</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="p">}</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="n">mp_round</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-522" name="line-522"></a><span class="p">}</span> +<a id="line-523" name="line-523"></a> +<a id="line-524" name="line-524"></a><span class="cm">/* Fraction. */</span> +<a id="line-525" name="line-525"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-526" name="line-526"></a><span class="nf">pf_do_fraction</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-527" name="line-527"></a><span class="p">{</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-529" name="line-529"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="p">{</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="p">}</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">mp_fractional_part</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-539" name="line-539"></a><span class="p">}</span> +<a id="line-540" name="line-540"></a> +<a id="line-541" name="line-541"></a><span class="cm">/* Absolute value. */</span> +<a id="line-542" name="line-542"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-543" name="line-543"></a><span class="nf">pf_do_abs</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-544" name="line-544"></a><span class="p">{</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="p">{</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="p">}</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">mp_abs</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-556" name="line-556"></a><span class="p">}</span> +<a id="line-557" name="line-557"></a> +<a id="line-558" name="line-558"></a><span class="cm">/* Find x^y for x and y being MPNumber. */</span> +<a id="line-559" name="line-559"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-560" name="line-560"></a><span class="nf">pf_do_x_pow_y</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-561" name="line-561"></a><span class="p">{</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">pow</span><span class="p">;</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">pow</span><span class="p">)</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="p">{</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pow</span><span class="p">)</span> +<a id="line-572" name="line-572"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">pow</span><span class="p">);</span> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="p">}</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">mp_xpowy</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">pow</span><span class="p">);</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-580" name="line-580"></a><span class="p">}</span> +<a id="line-581" name="line-581"></a> +<a id="line-582" name="line-582"></a><span class="cm">/* Find x^y for MPNumber x and integer y. */</span> +<a id="line-583" name="line-583"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-584" name="line-584"></a><span class="nf">pf_do_x_pow_y_int</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-585" name="line-585"></a><span class="p">{</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">pow</span><span class="p">;</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-590" name="line-590"></a> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="p">{</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">super_atoi</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">),</span><span class="w"> </span><span class="n">val</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="p">}</span> +<a id="line-596" name="line-596"></a> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">token</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="p">{</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">super_atoi</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="p">}</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="k">else</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="p">{</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">aux</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">pow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_integer</span><span class="p">(</span><span class="n">aux</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">aux</span><span class="p">);</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="p">}</span> +<a id="line-607" name="line-607"></a> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="p">{</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="p">}</span> +<a id="line-613" name="line-613"></a><span class="w"> </span><span class="n">mp_xpowy_integer</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">pow</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-616" name="line-616"></a><span class="p">}</span> +<a id="line-617" name="line-617"></a> +<a id="line-618" name="line-618"></a><span class="cm">/* Find factorial. */</span> +<a id="line-619" name="line-619"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-620" name="line-620"></a><span class="nf">pf_do_factorial</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-621" name="line-621"></a><span class="p">{</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="p">{</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-628" name="line-628"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="p">}</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">mp_factorial</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-633" name="line-633"></a><span class="p">}</span> +<a id="line-634" name="line-634"></a> +<a id="line-635" name="line-635"></a><span class="cm">/* Apply unary minus. */</span> +<a id="line-636" name="line-636"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-637" name="line-637"></a><span class="nf">pf_unary_minus</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-638" name="line-638"></a><span class="p">{</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-643" name="line-643"></a><span class="w"> </span><span class="p">{</span> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="p">}</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">mp_invert_sign</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-650" name="line-650"></a><span class="p">}</span> +<a id="line-651" name="line-651"></a> +<a id="line-652" name="line-652"></a><span class="cm">/* Divide. */</span> +<a id="line-653" name="line-653"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-654" name="line-654"></a><span class="nf">pf_do_divide</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-655" name="line-655"></a><span class="p">{</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-657" name="line-657"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="p">{</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-664" name="line-664"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="p">}</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-671" name="line-671"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-674" name="line-674"></a><span class="p">}</span> +<a id="line-675" name="line-675"></a> +<a id="line-676" name="line-676"></a><span class="cm">/* Modulus. */</span> +<a id="line-677" name="line-677"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-678" name="line-678"></a><span class="nf">pf_do_mod</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-679" name="line-679"></a><span class="p">{</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-682" name="line-682"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-685" name="line-685"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="p">{</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-688" name="line-688"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-691" name="line-691"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="p">}</span> +<a id="line-694" name="line-694"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">pf_do_x_pow_y</span><span class="p">)</span> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="p">{</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">base_value</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">exponent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-698" name="line-698"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">base_value</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">exponent</span><span class="p">)</span> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="p">{</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">base_value</span><span class="p">)</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-702" name="line-702"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">exponent</span><span class="p">)</span> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">exponent</span><span class="p">);</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="p">}</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">mp_modular_exponentiation</span><span class="p">(</span><span class="n">base_value</span><span class="p">,</span><span class="w"> </span><span class="n">exponent</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">base_value</span><span class="p">);</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">exponent</span><span class="p">);</span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="p">}</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="k">else</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">mp_modulus_divide</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-713" name="line-713"></a> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-717" name="line-717"></a><span class="p">}</span> +<a id="line-718" name="line-718"></a> +<a id="line-719" name="line-719"></a><span class="cm">/* Multiply two numbers. */</span> +<a id="line-720" name="line-720"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-721" name="line-721"></a><span class="nf">pf_do_multiply</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-722" name="line-722"></a><span class="p">{</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="p">{</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-736" name="line-736"></a><span class="w"> </span><span class="p">}</span> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-741" name="line-741"></a><span class="p">}</span> +<a id="line-742" name="line-742"></a> +<a id="line-743" name="line-743"></a><span class="cm">/* Subtract two numbers. */</span> +<a id="line-744" name="line-744"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-745" name="line-745"></a><span class="nf">pf_do_subtract</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-746" name="line-746"></a><span class="p">{</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-749" name="line-749"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="p">{</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-755" name="line-755"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="p">}</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-762" name="line-762"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-765" name="line-765"></a><span class="p">}</span> +<a id="line-766" name="line-766"></a> +<a id="line-767" name="line-767"></a><span class="cm">/* Add two numbers. */</span> +<a id="line-768" name="line-768"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-769" name="line-769"></a><span class="nf">pf_do_add</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-770" name="line-770"></a><span class="p">{</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-774" name="line-774"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-775" name="line-775"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-776" name="line-776"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-777" name="line-777"></a><span class="w"> </span><span class="p">{</span> +<a id="line-778" name="line-778"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-780" name="line-780"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="p">}</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-786" name="line-786"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-788" name="line-788"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-789" name="line-789"></a><span class="p">}</span> +<a id="line-790" name="line-790"></a> +<a id="line-791" name="line-791"></a><span class="cm">/* Add (x) Percentage to value. */</span> +<a id="line-792" name="line-792"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-793" name="line-793"></a><span class="nf">pf_do_add_percent</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-794" name="line-794"></a><span class="p">{</span> +<a id="line-795" name="line-795"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-796" name="line-796"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-797" name="line-797"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">per</span><span class="p">;</span> +<a id="line-798" name="line-798"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-799" name="line-799"></a><span class="w"> </span><span class="n">per</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-800" name="line-800"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">per</span><span class="p">)</span> +<a id="line-801" name="line-801"></a><span class="w"> </span><span class="p">{</span> +<a id="line-802" name="line-802"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> +<a id="line-803" name="line-803"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-804" name="line-804"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">per</span><span class="p">)</span> +<a id="line-805" name="line-805"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">per</span><span class="p">);</span> +<a id="line-806" name="line-806"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-807" name="line-807"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-808" name="line-808"></a><span class="w"> </span><span class="p">}</span> +<a id="line-809" name="line-809"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">per</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">per</span><span class="p">);</span> +<a id="line-810" name="line-810"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="n">per</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">per</span><span class="p">);</span> +<a id="line-811" name="line-811"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">per</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-812" name="line-812"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-813" name="line-813"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">per</span><span class="p">);</span> +<a id="line-814" name="line-814"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-815" name="line-815"></a><span class="p">}</span> +<a id="line-816" name="line-816"></a> +<a id="line-817" name="line-817"></a><span class="cm">/* Subtract (x) Percentage to value. */</span> +<a id="line-818" name="line-818"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-819" name="line-819"></a><span class="nf">pf_do_subtract_percent</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-820" name="line-820"></a><span class="p">{</span> +<a id="line-821" name="line-821"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-822" name="line-822"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-823" name="line-823"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">per</span><span class="p">;</span> +<a id="line-824" name="line-824"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-825" name="line-825"></a><span class="w"> </span><span class="n">per</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-826" name="line-826"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">per</span><span class="p">)</span> +<a id="line-827" name="line-827"></a><span class="w"> </span><span class="p">{</span> +<a id="line-828" name="line-828"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">val</span><span class="p">)</span> +<a id="line-829" name="line-829"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-830" name="line-830"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">per</span><span class="p">)</span> +<a id="line-831" name="line-831"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">per</span><span class="p">);</span> +<a id="line-832" name="line-832"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-833" name="line-833"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-834" name="line-834"></a><span class="w"> </span><span class="p">}</span> +<a id="line-835" name="line-835"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">per</span><span class="p">,</span><span class="w"> </span><span class="mi">-100</span><span class="p">,</span><span class="w"> </span><span class="n">per</span><span class="p">);</span> +<a id="line-836" name="line-836"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="n">per</span><span class="p">,</span><span class="w"> </span><span class="mi">-100</span><span class="p">,</span><span class="w"> </span><span class="n">per</span><span class="p">);</span> +<a id="line-837" name="line-837"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">per</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-838" name="line-838"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-839" name="line-839"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">per</span><span class="p">);</span> +<a id="line-840" name="line-840"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-841" name="line-841"></a><span class="p">}</span> +<a id="line-842" name="line-842"></a> +<a id="line-843" name="line-843"></a><span class="cm">/* Converts a constant into percentage. */</span> +<a id="line-844" name="line-844"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-845" name="line-845"></a><span class="nf">pf_do_percent</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-846" name="line-846"></a><span class="p">{</span> +<a id="line-847" name="line-847"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-848" name="line-848"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-849" name="line-849"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-850" name="line-850"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-851" name="line-851"></a><span class="w"> </span><span class="p">{</span> +<a id="line-852" name="line-852"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-853" name="line-853"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-854" name="line-854"></a><span class="w"> </span><span class="p">}</span> +<a id="line-855" name="line-855"></a><span class="w"> </span><span class="n">mp_divide_integer</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="mi">100</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-856" name="line-856"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-857" name="line-857"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-858" name="line-858"></a><span class="p">}</span> +<a id="line-859" name="line-859"></a> +<a id="line-860" name="line-860"></a><span class="cm">/* NOT. */</span> +<a id="line-861" name="line-861"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-862" name="line-862"></a><span class="nf">pf_do_not</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-863" name="line-863"></a><span class="p">{</span> +<a id="line-864" name="line-864"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">val</span><span class="p">;</span> +<a id="line-865" name="line-865"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-866" name="line-866"></a><span class="w"> </span><span class="n">val</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-867" name="line-867"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">val</span><span class="p">)</span> +<a id="line-868" name="line-868"></a><span class="w"> </span><span class="p">{</span> +<a id="line-869" name="line-869"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-870" name="line-870"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-871" name="line-871"></a><span class="w"> </span><span class="p">}</span> +<a id="line-872" name="line-872"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">mp_is_overflow</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">wordlen</span><span class="p">))</span> +<a id="line-873" name="line-873"></a><span class="w"> </span><span class="p">{</span> +<a id="line-874" name="line-874"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_OVERFLOW</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-875" name="line-875"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-876" name="line-876"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-877" name="line-877"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-878" name="line-878"></a><span class="w"> </span><span class="p">}</span> +<a id="line-879" name="line-879"></a><span class="w"> </span><span class="n">mp_not</span><span class="p">(</span><span class="n">val</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">wordlen</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-880" name="line-880"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">val</span><span class="p">);</span> +<a id="line-881" name="line-881"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-882" name="line-882"></a><span class="p">}</span> +<a id="line-883" name="line-883"></a> +<a id="line-884" name="line-884"></a><span class="cm">/* AND. */</span> +<a id="line-885" name="line-885"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-886" name="line-886"></a><span class="nf">pf_do_and</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-887" name="line-887"></a><span class="p">{</span> +<a id="line-888" name="line-888"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-889" name="line-889"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-890" name="line-890"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-891" name="line-891"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-892" name="line-892"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-893" name="line-893"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-894" name="line-894"></a><span class="w"> </span><span class="p">{</span> +<a id="line-895" name="line-895"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-896" name="line-896"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-897" name="line-897"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-898" name="line-898"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-899" name="line-899"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-900" name="line-900"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-901" name="line-901"></a><span class="w"> </span><span class="p">}</span> +<a id="line-902" name="line-902"></a><span class="w"> </span><span class="n">mp_and</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-903" name="line-903"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-904" name="line-904"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-905" name="line-905"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-906" name="line-906"></a><span class="p">}</span> +<a id="line-907" name="line-907"></a> +<a id="line-908" name="line-908"></a><span class="cm">/* OR. */</span> +<a id="line-909" name="line-909"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-910" name="line-910"></a><span class="nf">pf_do_or</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-911" name="line-911"></a><span class="p">{</span> +<a id="line-912" name="line-912"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-913" name="line-913"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-914" name="line-914"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-915" name="line-915"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-916" name="line-916"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-917" name="line-917"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-918" name="line-918"></a><span class="w"> </span><span class="p">{</span> +<a id="line-919" name="line-919"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-920" name="line-920"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-921" name="line-921"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-922" name="line-922"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-923" name="line-923"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-924" name="line-924"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-925" name="line-925"></a><span class="w"> </span><span class="p">}</span> +<a id="line-926" name="line-926"></a><span class="w"> </span><span class="n">mp_or</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-927" name="line-927"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-928" name="line-928"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-929" name="line-929"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-930" name="line-930"></a><span class="p">}</span> +<a id="line-931" name="line-931"></a> +<a id="line-932" name="line-932"></a><span class="cm">/* XOR. */</span> +<a id="line-933" name="line-933"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-934" name="line-934"></a><span class="nf">pf_do_xor</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-935" name="line-935"></a><span class="p">{</span> +<a id="line-936" name="line-936"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">left</span><span class="p">;</span> +<a id="line-937" name="line-937"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">right</span><span class="p">;</span> +<a id="line-938" name="line-938"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-939" name="line-939"></a><span class="w"> </span><span class="n">left</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">left</span><span class="p">);</span> +<a id="line-940" name="line-940"></a><span class="w"> </span><span class="n">right</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">MPNumber</span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="o">-></span><span class="n">evaluate</span><span class="p">))(</span><span class="n">self</span><span class="o">-></span><span class="n">right</span><span class="p">);</span> +<a id="line-941" name="line-941"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">left</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">!</span><span class="n">right</span><span class="p">)</span> +<a id="line-942" name="line-942"></a><span class="w"> </span><span class="p">{</span> +<a id="line-943" name="line-943"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">left</span><span class="p">)</span> +<a id="line-944" name="line-944"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-945" name="line-945"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">right</span><span class="p">)</span> +<a id="line-946" name="line-946"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-947" name="line-947"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-948" name="line-948"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-949" name="line-949"></a><span class="w"> </span><span class="p">}</span> +<a id="line-950" name="line-950"></a><span class="w"> </span><span class="n">mp_xor</span><span class="p">(</span><span class="n">left</span><span class="p">,</span><span class="w"> </span><span class="n">right</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">);</span> +<a id="line-951" name="line-951"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">left</span><span class="p">);</span> +<a id="line-952" name="line-952"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">right</span><span class="p">);</span> +<a id="line-953" name="line-953"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-954" name="line-954"></a><span class="p">}</span> +<a id="line-955" name="line-955"></a> +<a id="line-956" name="line-956"></a><span class="cm">/* Constant value. Convert into MPNumber and return. */</span> +<a id="line-957" name="line-957"></a><span class="kt">void</span><span class="o">*</span> +<a id="line-958" name="line-958"></a><span class="nf">pf_constant</span><span class="p">(</span><span class="n">ParseNode</span><span class="o">*</span><span class="w"> </span><span class="n">self</span><span class="p">)</span> +<a id="line-959" name="line-959"></a><span class="p">{</span> +<a id="line-960" name="line-960"></a><span class="w"> </span><span class="n">MPNumber</span><span class="o">*</span><span class="w"> </span><span class="n">ans</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new_ptr</span><span class="p">();</span> +<a id="line-961" name="line-961"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">ans</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-962" name="line-962"></a><span class="w"> </span><span class="p">{</span> +<a id="line-963" name="line-963"></a><span class="w"> </span><span class="cm">/* This should never happen, as l_check_if_number() has already passed the string once. */</span> +<a id="line-964" name="line-964"></a><span class="w"> </span><span class="cm">/* If the code reaches this point, something is really wrong. X( */</span> +<a id="line-965" name="line-965"></a><span class="w"> </span><span class="n">mp_free</span><span class="p">(</span><span class="n">ans</span><span class="p">);</span> +<a id="line-966" name="line-966"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">self</span><span class="o">-></span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">,</span><span class="w"> </span><span class="n">self</span><span class="o">-></span><span class="n">token</span><span class="o">-></span><span class="n">string</span><span class="p">);</span> +<a id="line-967" name="line-967"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-968" name="line-968"></a><span class="w"> </span><span class="p">}</span> +<a id="line-969" name="line-969"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ans</span><span class="p">;</span> +<a id="line-970" name="line-970"></a><span class="p">}</span> +<a id="line-971" name="line-971"></a> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/45.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/45.html new file mode 100644 index 0000000..2fa10f4 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/45.html @@ -0,0 +1,665 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/prelexer.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> prelexer.c</p> +<a href="45.html#line-1"> missingIncludeSystem 1</a><a href="45.html#line-2"> missingIncludeSystem 2</a><a href="45.html#line-3"> missingIncludeSystem 3</a><a href="45.html#line-4"> missingIncludeSystem 4</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-2" name="line-2"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-3" name="line-3"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><assert.h></span><span class="error2"><--- Include file: <assert.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-5" name="line-5"></a> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"prelexer.h"</span> +<a id="line-7" name="line-7"></a> +<a id="line-8" name="line-8"></a><span class="cm">/* Creates a scanner state which will be useful for accessing the lexer later. */</span> +<a id="line-9" name="line-9"></a><span class="n">PreLexerState</span><span class="o">*</span> +<a id="line-10" name="line-10"></a><span class="nf">pl_create_scanner</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">input</span><span class="p">)</span> +<a id="line-11" name="line-11"></a><span class="p">{</span> +<a id="line-12" name="line-12"></a><span class="w"> </span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">input</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">g_utf8_validate</span><span class="p">(</span><span class="n">input</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">));</span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">PreLexerState</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">PreLexerState</span><span class="p">));</span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">state</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">input</span><span class="p">);</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">length</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">strlen</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="p">);</span><span class="w"> </span><span class="cm">/* Can't find a GLib replacement of strlen. The mailing list discussion says, it is not implemented because strlen is perfectly capable. :) */</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">mark_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">state</span><span class="p">;</span> +<a id="line-22" name="line-22"></a><span class="p">}</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cm">/* Destroy and free memory used by LexerState object. */</span> +<a id="line-25" name="line-25"></a><span class="kt">void</span> +<a id="line-26" name="line-26"></a><span class="nf">pl_destroy_scanner</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-27" name="line-27"></a><span class="p">{</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="p">);</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-30" name="line-30"></a><span class="p">}</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="cm">/* Roll back last scanned unichar. */</span> +<a id="line-33" name="line-33"></a><span class="kt">void</span> +<a id="line-34" name="line-34"></a><span class="nf">pl_roll_back</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-35" name="line-35"></a><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_find_prev_char</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">tmp</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">)</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="cm">/* Already at the beginning of the stram. Reset index. */</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="k">else</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="p">;</span> +<a id="line-43" name="line-43"></a><span class="p">}</span> +<a id="line-44" name="line-44"></a> +<a id="line-45" name="line-45"></a><span class="cm">/* Get validated gunichar from input stream. */</span> +<a id="line-46" name="line-46"></a><span class="n">gunichar</span> +<a id="line-47" name="line-47"></a><span class="nf">pl_get_next_gunichar</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="p">{</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">length</span><span class="p">)</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="p">{</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="cm">/* To prevent scanning last letter multiple times, when a single unconditional rollback is used. */</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">length</span><span class="p">)</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="o">++</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">}</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_get_char_validated</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_utf8_next_char</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="p">)</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-60" name="line-60"></a><span class="p">}</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="cm">/* Set marker index. To be used for highlighting and error reporting. */</span> +<a id="line-63" name="line-63"></a><span class="kt">void</span> +<a id="line-64" name="line-64"></a><span class="nf">pl_set_marker</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-65" name="line-65"></a><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">mark_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="p">;</span> +<a id="line-67" name="line-67"></a><span class="p">}</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="cm">/* Get marked substring. To be used for error reporting. */</span> +<a id="line-70" name="line-70"></a><span class="n">gchar</span><span class="o">*</span> +<a id="line-71" name="line-71"></a><span class="nf">pl_get_marked_substring</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-72" name="line-72"></a><span class="p">{</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">g_strndup</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">stream</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">mark_index</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_index</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">mark_index</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="p">}</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="cm">/* Compares a list of strings with given unichar. To be used by pl_get_next_token() only. */</span> +<a id="line-77" name="line-77"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-78" name="line-78"></a><span class="nf">pl_compare_all</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="p">,</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">arr</span><span class="p">[])</span> +<a id="line-79" name="line-79"></a><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">l</span><span class="p">;</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">count</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="o">++</span><span class="p">)</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">{</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">ch</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">g_utf8_get_char_validated</span><span class="p">(</span><span class="n">arr</span><span class="p">[</span><span class="n">l</span><span class="p">],</span><span class="w"> </span><span class="mi">-1</span><span class="p">))</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">}</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="p">}</span> +<a id="line-88" name="line-88"></a> +<a id="line-89" name="line-89"></a><span class="cm">/* Pre-Lexer tokanizer. To be called only by Lexer. */</span> +<a id="line-90" name="line-90"></a><span class="n">LexerTokenType</span> +<a id="line-91" name="line-91"></a><span class="nf">pl_get_next_token</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-92" name="line-92"></a><span class="p">{</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">gunichar</span><span class="w"> </span><span class="n">ch</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_gunichar</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">","</span><span class="p">,</span><span class="s">"."</span><span class="p">}))</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">;</span> +<a id="line-96" name="line-96"></a> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_unichar_isdigit</span><span class="p">(</span><span class="n">ch</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"〇"</span><span class="p">,</span><span class="s">"〡"</span><span class="p">,</span><span class="s">"〢"</span><span class="p">,</span><span class="s">"〣"</span><span class="p">,</span><span class="s">"〤"</span><span class="p">,</span><span class="s">"〥"</span><span class="p">,</span><span class="s">"〦"</span><span class="p">,</span><span class="s">"〧"</span><span class="p">,</span><span class="s">"〨"</span><span class="p">,</span><span class="s">"〩"</span><span class="p">}))</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">;</span><span class="w"> </span><span class="cm">/* 0-9 */</span> +<a id="line-99" name="line-99"></a> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_unichar_isxdigit</span><span class="p">(</span><span class="n">ch</span><span class="p">))</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">;</span><span class="w"> </span><span class="cm">/* This is supposed to report just the A-F. */</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⁰"</span><span class="p">,</span><span class="s">"¹"</span><span class="p">,</span><span class="s">"²"</span><span class="p">,</span><span class="s">"³"</span><span class="p">,</span><span class="s">"⁴"</span><span class="p">,</span><span class="s">"⁵"</span><span class="p">,</span><span class="s">"⁶"</span><span class="p">,</span><span class="s">"⁷"</span><span class="p">,</span><span class="s">"⁸"</span><span class="p">,</span><span class="s">"⁹"</span><span class="p">}))</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_SUPER_DIGIT</span><span class="p">;</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⁻"</span><span class="p">}))</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_SUPER_MINUS</span><span class="p">;</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"₀"</span><span class="p">,</span><span class="s">"₁"</span><span class="p">,</span><span class="s">"₂"</span><span class="p">,</span><span class="s">"₃"</span><span class="p">,</span><span class="s">"₄"</span><span class="p">,</span><span class="s">"₅"</span><span class="p">,</span><span class="s">"₆"</span><span class="p">,</span><span class="s">"₇"</span><span class="p">,</span><span class="s">"₈"</span><span class="p">,</span><span class="s">"₉"</span><span class="p">}))</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">;</span> +<a id="line-111" name="line-111"></a> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">15</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"½"</span><span class="p">,</span><span class="s">"⅓"</span><span class="p">,</span><span class="s">"⅔"</span><span class="p">,</span><span class="s">"¼"</span><span class="p">,</span><span class="s">"¾"</span><span class="p">,</span><span class="s">"⅕"</span><span class="p">,</span><span class="s">"⅖"</span><span class="p">,</span><span class="s">"⅗"</span><span class="p">,</span><span class="s">"⅘"</span><span class="p">,</span><span class="s">"⅙"</span><span class="p">,</span><span class="s">"⅚"</span><span class="p">,</span><span class="s">"⅛"</span><span class="p">,</span><span class="s">"⅜"</span><span class="p">,</span><span class="s">"⅝"</span><span class="p">,</span><span class="s">"⅞"</span><span class="p">}))</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_FRACTION</span><span class="p">;</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"°"</span><span class="p">}))</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_DEGREE</span><span class="p">;</span> +<a id="line-117" name="line-117"></a> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"'"</span><span class="p">}))</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_MINUTE</span><span class="p">;</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"</span><span class="se">\"</span><span class="s">"</span><span class="p">}))</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_SECOND</span><span class="p">;</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_unichar_isalpha</span><span class="p">(</span><span class="n">ch</span><span class="p">))</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_LETTER</span><span class="p">;</span><span class="w"> </span><span class="cm">/* All alphabets excluding A-F. [a-fA-F] are reported as PL_HEX. */</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"∧"</span><span class="p">}))</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_AND</span><span class="p">;</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"∨"</span><span class="p">}))</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_OR</span><span class="p">;</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⊻"</span><span class="p">,</span><span class="s">"⊕"</span><span class="p">}))</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_XOR</span><span class="p">;</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"¬"</span><span class="p">,</span><span class="s">"~"</span><span class="p">}))</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_NOT</span><span class="p">;</span> +<a id="line-138" name="line-138"></a> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"+"</span><span class="p">}))</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_ADD</span><span class="p">;</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"-"</span><span class="p">,</span><span class="s">"−"</span><span class="p">,</span><span class="s">"–"</span><span class="p">}))</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_SUBTRACT</span><span class="p">;</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"*"</span><span class="p">,</span><span class="s">"×"</span><span class="p">}))</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_MULTIPLY</span><span class="p">;</span> +<a id="line-147" name="line-147"></a> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"/"</span><span class="p">,</span><span class="s">"∕"</span><span class="p">,</span><span class="s">"÷"</span><span class="p">}))</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_DIV</span><span class="p">;</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⌊"</span><span class="p">}))</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_L_FLOOR</span><span class="p">;</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⌋"</span><span class="p">}))</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_R_FLOOR</span><span class="p">;</span> +<a id="line-156" name="line-156"></a> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⌈"</span><span class="p">}))</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_L_CEILING</span><span class="p">;</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"⌉"</span><span class="p">}))</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_R_CEILING</span><span class="p">;</span> +<a id="line-162" name="line-162"></a> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"√"</span><span class="p">}))</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_ROOT</span><span class="p">;</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"∛"</span><span class="p">}))</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_ROOT_3</span><span class="p">;</span> +<a id="line-168" name="line-168"></a> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"∜"</span><span class="p">}))</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_ROOT_4</span><span class="p">;</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"="</span><span class="p">}))</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_ASSIGN</span><span class="p">;</span> +<a id="line-174" name="line-174"></a> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"("</span><span class="p">}))</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_L_R_BRACKET</span><span class="p">;</span> +<a id="line-177" name="line-177"></a> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">")"</span><span class="p">}))</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_R_R_BRACKET</span><span class="p">;</span> +<a id="line-180" name="line-180"></a> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"["</span><span class="p">}))</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_L_S_BRACKET</span><span class="p">;</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"]"</span><span class="p">}))</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_R_S_BRACKET</span><span class="p">;</span> +<a id="line-186" name="line-186"></a> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"{"</span><span class="p">}))</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_L_C_BRACKET</span><span class="p">;</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"}"</span><span class="p">}))</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_R_C_BRACKET</span><span class="p">;</span> +<a id="line-192" name="line-192"></a> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"|"</span><span class="p">}))</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_ABS</span><span class="p">;</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"^"</span><span class="p">}))</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_POWER</span><span class="p">;</span> +<a id="line-198" name="line-198"></a> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"!"</span><span class="p">}))</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_FACTORIAL</span><span class="p">;</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">"%"</span><span class="p">}))</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="p">;</span> +<a id="line-204" name="line-204"></a> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">pl_compare_all</span><span class="p">(</span><span class="n">ch</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">gchar</span><span class="o">*</span><span class="p">[]){</span><span class="s">" "</span><span class="p">,</span><span class="s">"</span><span class="se">\r</span><span class="s">"</span><span class="p">,</span><span class="s">"</span><span class="se">\t</span><span class="s">"</span><span class="p">,</span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">}))</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* Gotta ignore'Em all!!! ;) */</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_SKIP</span><span class="p">;</span> +<a id="line-208" name="line-208"></a> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">ch</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">PL_EOS</span><span class="p">;</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="cm">/* There is no spoon. */</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">;</span> +<a id="line-214" name="line-214"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/46.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/46.html new file mode 100644 index 0000000..9115568 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/46.html @@ -0,0 +1,1813 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/test-mp-equation.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> test-mp-equation.c</p> +<a href="46.html#line-11"> missingIncludeSystem 11</a><a href="46.html#line-12"> missingIncludeSystem 12</a><a href="46.html#line-13"> missingIncludeSystem 13</a><a href="46.html#line-14"> missingIncludeSystem 14</a><a href="46.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span> +<span class="normal">591</span> +<span class="normal">592</span> +<span class="normal">593</span> +<span class="normal">594</span> +<span class="normal">595</span> +<span class="normal">596</span> +<span class="normal">597</span> +<span class="normal">598</span> +<span class="normal">599</span> +<span class="normal">600</span> +<span class="normal">601</span> +<span class="normal">602</span> +<span class="normal">603</span> +<span class="normal">604</span> +<span class="normal">605</span> +<span class="normal">606</span> +<span class="normal">607</span> +<span class="normal">608</span> +<span class="normal">609</span> +<span class="normal">610</span> +<span class="normal">611</span> +<span class="normal">612</span> +<span class="normal">613</span> +<span class="normal">614</span> +<span class="normal">615</span> +<span class="normal">616</span> +<span class="normal">617</span> +<span class="normal">618</span> +<span class="normal">619</span> +<span class="normal">620</span> +<span class="normal">621</span> +<span class="normal">622</span> +<span class="normal">623</span> +<span class="normal">624</span> +<span class="normal">625</span> +<span class="normal">626</span> +<span class="normal">627</span> +<span class="normal">628</span> +<span class="normal">629</span> +<span class="normal">630</span> +<span class="normal">631</span> +<span class="normal">632</span> +<span class="normal">633</span> +<span class="normal">634</span> +<span class="normal">635</span> +<span class="normal">636</span> +<span class="normal">637</span> +<span class="normal">638</span> +<span class="normal">639</span> +<span class="normal">640</span> +<span class="normal">641</span> +<span class="normal">642</span> +<span class="normal">643</span> +<span class="normal">644</span> +<span class="normal">645</span> +<span class="normal">646</span> +<span class="normal">647</span> +<span class="normal">648</span> +<span class="normal">649</span> +<span class="normal">650</span> +<span class="normal">651</span> +<span class="normal">652</span> +<span class="normal">653</span> +<span class="normal">654</span> +<span class="normal">655</span> +<span class="normal">656</span> +<span class="normal">657</span> +<span class="normal">658</span> +<span class="normal">659</span> +<span class="normal">660</span> +<span class="normal">661</span> +<span class="normal">662</span> +<span class="normal">663</span> +<span class="normal">664</span> +<span class="normal">665</span> +<span class="normal">666</span> +<span class="normal">667</span> +<span class="normal">668</span> +<span class="normal">669</span> +<span class="normal">670</span> +<span class="normal">671</span> +<span class="normal">672</span> +<span class="normal">673</span> +<span class="normal">674</span> +<span class="normal">675</span> +<span class="normal">676</span> +<span class="normal">677</span> +<span class="normal">678</span> +<span class="normal">679</span> +<span class="normal">680</span> +<span class="normal">681</span> +<span class="normal">682</span> +<span class="normal">683</span> +<span class="normal">684</span> +<span class="normal">685</span> +<span class="normal">686</span> +<span class="normal">687</span> +<span class="normal">688</span> +<span class="normal">689</span> +<span class="normal">690</span> +<span class="normal">691</span> +<span class="normal">692</span> +<span class="normal">693</span> +<span class="normal">694</span> +<span class="normal">695</span> +<span class="normal">696</span> +<span class="normal">697</span> +<span class="normal">698</span> +<span class="normal">699</span> +<span class="normal">700</span> +<span class="normal">701</span> +<span class="normal">702</span> +<span class="normal">703</span> +<span class="normal">704</span> +<span class="normal">705</span> +<span class="normal">706</span> +<span class="normal">707</span> +<span class="normal">708</span> +<span class="normal">709</span> +<span class="normal">710</span> +<span class="normal">711</span> +<span class="normal">712</span> +<span class="normal">713</span> +<span class="normal">714</span> +<span class="normal">715</span> +<span class="normal">716</span> +<span class="normal">717</span> +<span class="normal">718</span> +<span class="normal">719</span> +<span class="normal">720</span> +<span class="normal">721</span> +<span class="normal">722</span> +<span class="normal">723</span> +<span class="normal">724</span> +<span class="normal">725</span> +<span class="normal">726</span> +<span class="normal">727</span> +<span class="normal">728</span> +<span class="normal">729</span> +<span class="normal">730</span> +<span class="normal">731</span> +<span class="normal">732</span> +<span class="normal">733</span> +<span class="normal">734</span> +<span class="normal">735</span> +<span class="normal">736</span> +<span class="normal">737</span> +<span class="normal">738</span> +<span class="normal">739</span> +<span class="normal">740</span> +<span class="normal">741</span> +<span class="normal">742</span> +<span class="normal">743</span> +<span class="normal">744</span> +<span class="normal">745</span> +<span class="normal">746</span> +<span class="normal">747</span> +<span class="normal">748</span> +<span class="normal">749</span> +<span class="normal">750</span> +<span class="normal">751</span> +<span class="normal">752</span> +<span class="normal">753</span> +<span class="normal">754</span> +<span class="normal">755</span> +<span class="normal">756</span> +<span class="normal">757</span> +<span class="normal">758</span> +<span class="normal">759</span> +<span class="normal">760</span> +<span class="normal">761</span> +<span class="normal">762</span> +<span class="normal">763</span> +<span class="normal">764</span> +<span class="normal">765</span> +<span class="normal">766</span> +<span class="normal">767</span> +<span class="normal">768</span> +<span class="normal">769</span> +<span class="normal">770</span> +<span class="normal">771</span> +<span class="normal">772</span> +<span class="normal">773</span> +<span class="normal">774</span> +<span class="normal">775</span> +<span class="normal">776</span> +<span class="normal">777</span> +<span class="normal">778</span> +<span class="normal">779</span> +<span class="normal">780</span> +<span class="normal">781</span> +<span class="normal">782</span> +<span class="normal">783</span> +<span class="normal">784</span> +<span class="normal">785</span> +<span class="normal">786</span> +<span class="normal">787</span> +<span class="normal">788</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdarg.h></span><span class="error2"><--- Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><locale.h></span><span class="error2"><--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-manager.h"</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">static</span><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">fails</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-24" name="line-24"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">passes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-25" name="line-25"></a> +<a id="line-26" name="line-26"></a><span class="cm">/* If we're not using GNU C, elide __attribute__ */</span> +<a id="line-27" name="line-27"></a><span class="cp">#ifndef __GNUC__</span> +<a id="line-28" name="line-28"></a><span class="cp"># define __attribute__(x) </span><span class="cm">/*NOTHING*/</span> +<a id="line-29" name="line-29"></a><span class="cp">#endif</span> +<a id="line-30" name="line-30"></a> +<a id="line-31" name="line-31"></a><span class="cp">#define test(X, Y, Z) Test(X, Y, Z, 9)</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pass</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span><span class="w"> </span><span class="n">__attribute__</span><span class="p">((</span><span class="n">format</span><span class="p">(</span><span class="n">printf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">)));</span> +<a id="line-34" name="line-34"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">fail</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span><span class="w"> </span><span class="n">__attribute__</span><span class="p">((</span><span class="n">format</span><span class="p">(</span><span class="n">printf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">)));</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pass</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span> +<a id="line-37" name="line-37"></a><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="cm">/* va_list args;</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="cm"> printf(" PASS: ");</span> +<a id="line-41" name="line-41"></a><span class="cm"> va_start(args, format);</span> +<a id="line-42" name="line-42"></a><span class="cm"> vprintf(format, args);</span> +<a id="line-43" name="line-43"></a><span class="cm"> va_end(args);</span> +<a id="line-44" name="line-44"></a><span class="cm"> printf("\n");</span> +<a id="line-45" name="line-45"></a><span class="cm">*/</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">passes</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="p">}</span> +<a id="line-48" name="line-48"></a> +<a id="line-49" name="line-49"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">fail</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span> +<a id="line-50" name="line-50"></a><span class="p">{</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span> +<a id="line-52" name="line-52"></a> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"*FAIL: "</span><span class="p">);</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">va_start</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">vprintf</span><span class="p">(</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">va_end</span><span class="p">(</span><span class="n">args</span><span class="p">);</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">fails</span><span class="o">++</span><span class="p">;</span> +<a id="line-59" name="line-59"></a><span class="p">}</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="k">static</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span> +<a id="line-62" name="line-62"></a><span class="nf">error_code_to_string</span><span class="p">(</span><span class="n">MPErrorCode</span><span class="w"> </span><span class="n">error</span><span class="p">)</span> +<a id="line-63" name="line-63"></a><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="k">static</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="n">error_string</span><span class="p">[</span><span class="mi">1024</span><span class="p">];</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">)</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">mp_error_code_to_string</span><span class="p">(</span><span class="n">error</span><span class="p">);</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">snprintf</span><span class="p">(</span><span class="n">error_string</span><span class="p">,</span><span class="w"> </span><span class="mi">1024</span><span class="p">,</span><span class="w"> </span><span class="s">"PARSER_ERR_MP(</span><span class="se">\"</span><span class="s">%s</span><span class="se">\"</span><span class="s">)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_get_error</span><span class="p">());</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">error_string</span><span class="p">;</span> +<a id="line-71" name="line-71"></a><span class="p">}</span> +<a id="line-72" name="line-72"></a> +<a id="line-73" name="line-73"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-74" name="line-74"></a><span class="nf">Test</span><span class="p">(</span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">expected</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">expected_error</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">)</span> +<a id="line-75" name="line-75"></a><span class="p">{</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">MPErrorCode</span><span class="w"> </span><span class="n">error</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">error_token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-79" name="line-79"></a> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">error</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_equation_parse</span><span class="p">(</span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">error_token</span><span class="p">);</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error_token</span><span class="p">)</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">g_free</span><span class="w"> </span><span class="p">(</span><span class="n">error_token</span><span class="p">);</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">result_str</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">;</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_FIXED</span><span class="p">,</span><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="n">trailing_digits</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="n">result_str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">g_object_unref</span><span class="p">(</span><span class="n">serializer</span><span class="p">);</span> +<a id="line-91" name="line-91"></a> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">expected_error</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PARSER_ERR_NONE</span><span class="p">)</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">fail</span><span class="p">(</span><span class="s">"'%s' -> %s, expected error %s"</span><span class="p">,</span><span class="w"> </span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">result_str</span><span class="p">,</span><span class="w"> </span><span class="n">error_code_to_string</span><span class="p">(</span><span class="n">expected_error</span><span class="p">));</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">result_str</span><span class="p">,</span><span class="w"> </span><span class="n">expected</span><span class="p">)</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">fail</span><span class="p">(</span><span class="s">"'%s' -> '%s', expected '%s'"</span><span class="p">,</span><span class="w"> </span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">result_str</span><span class="p">,</span><span class="w"> </span><span class="n">expected</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="k">else</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">pass</span><span class="p">(</span><span class="s">"'%s' -> '%s'"</span><span class="p">,</span><span class="w"> </span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">result_str</span><span class="p">);</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">result_str</span><span class="p">);</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">}</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">expected_error</span><span class="p">)</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">pass</span><span class="p">(</span><span class="s">"'%s' -> error %s"</span><span class="p">,</span><span class="w"> </span><span class="n">expression</span><span class="p">,</span><span class="w"> </span><span class="n">error_code_to_string</span><span class="p">(</span><span class="n">error</span><span class="p">));</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">expected_error</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PARSER_ERR_NONE</span><span class="p">)</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">fail</span><span class="p">(</span><span class="s">"'%s' -> error %s, expected result %s"</span><span class="p">,</span><span class="w"> </span><span class="n">expression</span><span class="p">,</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">error_code_to_string</span><span class="p">(</span><span class="n">error</span><span class="p">),</span><span class="w"> </span><span class="n">expected</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="k">else</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">fail</span><span class="p">(</span><span class="s">"'%s' -> error %s, expected error %s"</span><span class="p">,</span><span class="w"> </span><span class="n">expression</span><span class="p">,</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">error_code_to_string</span><span class="p">(</span><span class="n">error</span><span class="p">),</span><span class="w"> </span><span class="n">error_code_to_string</span><span class="p">(</span><span class="n">expected_error</span><span class="p">));</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="p">}</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="p">}</span> +<a id="line-112" name="line-112"></a> +<a id="line-113" name="line-113"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-114" name="line-114"></a><span class="nf">do_convert</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-115" name="line-115"></a><span class="p">{</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit_manager_convert_by_symbol</span><span class="p">(</span><span class="n">unit_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="p">}</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-120" name="line-120"></a><span class="nf">test_conversions</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-121" name="line-121"></a><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="n">memset</span><span class="p">(</span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">options</span><span class="p">));</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">convert</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">do_convert</span><span class="p">;</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="cm">/* Angle units */</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="c1">//test("π radians in degrees", "180", 0);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100 gradians in degrees"</span><span class="p">,</span><span class="w"> </span><span class="s">"90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* Length */</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 meter in mm"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1m in mm"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 inch in cm"</span><span class="p">,</span><span class="w"> </span><span class="s">"2.54"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-136" name="line-136"></a> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="cm">/* Area */</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1m² in mm²"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="cm">/* Volume */</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1m³ in mm³"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-142" name="line-142"></a> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="cm">/* Weight */</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 kg in pounds"</span><span class="p">,</span><span class="w"> </span><span class="s">"2.204622622"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="cm">/* Duration */</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 minute in seconds"</span><span class="p">,</span><span class="w"> </span><span class="s">"60"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1s in ms"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="cm">/* Temperature */</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="c1">//test("100˚C in ˚F", "", 0);</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="c1">//test("0˚C in ˚F", "32", 0);</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="c1">//test("0˚K in ˚C", "−273.15", 0);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100degC in degF"</span><span class="p">,</span><span class="w"> </span><span class="s">"212"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0degC in degF"</span><span class="p">,</span><span class="w"> </span><span class="s">"32"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 K in degC"</span><span class="p">,</span><span class="w"> </span><span class="s">"−273.15"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="p">}</span> +<a id="line-158" name="line-158"></a> +<a id="line-159" name="line-159"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">try</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="o">*</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">expected</span><span class="p">)</span> +<a id="line-160" name="line-160"></a><span class="p">{</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">expected</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">expected</span><span class="p">))</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">{</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">fail</span><span class="p">(</span><span class="s">"%s -> %s, expected %s"</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">expected</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"false"</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"false"</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="p">}</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">else</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="p">{</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">pass</span><span class="p">(</span><span class="s">"%s -> %s"</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"false"</span><span class="p">);</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a><span class="p">}</span> +<a id="line-170" name="line-170"></a> +<a id="line-171" name="line-171"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">test_mp</span><span class="p">()</span> +<a id="line-172" name="line-172"></a><span class="p">{</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">zero</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">minus_one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">);</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_zero(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_zero(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_zero(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_negative(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_negative(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_negative(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-187" name="line-187"></a> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_integer(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_integer(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_integer(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_positive_integer(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_positive_integer(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_positive_integer(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_natural(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_natural</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_natural(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_natural</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_natural(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_natural</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_complex(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_complex(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_complex(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-203" name="line-203"></a> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-213" name="line-213"></a> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">);</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">);</span> +<a id="line-257" name="line-257"></a><span class="p">}</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-260" name="line-260"></a><span class="nf">variable_is_defined</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-261" name="line-261"></a><span class="p">{</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"y"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-263" name="line-263"></a><span class="p">}</span> +<a id="line-264" name="line-264"></a> +<a id="line-265" name="line-265"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-266" name="line-266"></a><span class="nf">get_variable</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-267" name="line-267"></a><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="w"> </span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">}</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="s">"y"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="w"> </span><span class="p">(</span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">}</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-277" name="line-277"></a><span class="p">}</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-280" name="line-280"></a><span class="nf">set_variable</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-281" name="line-281"></a><span class="p">{</span> +<a id="line-282" name="line-282"></a><span class="p">}</span> +<a id="line-283" name="line-283"></a> +<a id="line-284" name="line-284"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-285" name="line-285"></a><span class="nf">test_equations</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-286" name="line-286"></a><span class="p">{</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">memset</span><span class="p">(</span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">options</span><span class="p">));</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">variable_is_defined</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">variable_is_defined</span><span class="p">;</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">get_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_variable</span><span class="p">;</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">set_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">set_variable</span><span class="p">;</span> +<a id="line-293" name="line-293"></a> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2₁₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"10"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-296" name="line-296"></a> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">8</span><span class="p">;</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"16434824₁₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"76543210"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-299" name="line-299"></a> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"FF"</span><span class="p">,</span><span class="w"> </span><span class="s">"FF"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"18364758544493064720₁₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"FEDCBA9876543210"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-303" name="line-303"></a> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0₂"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1₂"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"5₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"5₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"5₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"7₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"7₈"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"7₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"8₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"8₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"8"</span><span class="p">,</span><span class="w"> </span><span class="s">"8"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"8₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"8"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"9₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"9₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"9₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"A₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"A₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"A"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"A₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"10"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"B₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"B₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"B"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"B₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"11"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"C₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"C₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"C"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"C₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"12"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"D₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"D₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"D"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"D₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"13"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"E₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"E₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"E"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"E₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"14"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"F₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"F₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"F"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"F₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"15"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"a₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"a₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"a"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"a₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"10"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"b₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"b₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"b"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"b₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"11"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"c₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"c₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"c"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"c₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"12"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"d₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"d₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"d"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"d₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"13"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"e₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"e₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="cm">/* e is a built-in variable */</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"e₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"14"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"f₂"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"f₈"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"f"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"f₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"15"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-327" name="line-327"></a> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"+1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"+ 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: Should this be allowed?</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"− 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: Should this be allowed?</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"++1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−−1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"255"</span><span class="p">,</span><span class="w"> </span><span class="s">"255"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"256"</span><span class="p">,</span><span class="w"> </span><span class="s">"256"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"½"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1½"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0°"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1°"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0°30'"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="c1">//test("0°0.1'", "1", 0); // FIXME: Not yet supported</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0°0'1</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.000277778"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0°0'0.1</span><span class="se">\"</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.000027778"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1.00"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1.01"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.01"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-346" name="line-346"></a> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"١٢٣٤٥٦٧٨٩٠"</span><span class="p">,</span><span class="w"> </span><span class="s">"1234567890"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"۱۲۳۴۵۶۷۸۹۰"</span><span class="p">,</span><span class="w"> </span><span class="s">"1234567890"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-349" name="line-349"></a> +<a id="line-350" name="line-350"></a><span class="cm">/*</span> +<a id="line-351" name="line-351"></a><span class="cm"> //test("2A", "2000000000000000", 0);</span> +<a id="line-352" name="line-352"></a><span class="cm"> test("2T", "2000000000000", 0);</span> +<a id="line-353" name="line-353"></a><span class="cm"> test("2G", "2000000000", 0);</span> +<a id="line-354" name="line-354"></a><span class="cm"> test("2M", "2000000", 0);</span> +<a id="line-355" name="line-355"></a><span class="cm"> test("2k", "2000", 0);</span> +<a id="line-356" name="line-356"></a><span class="cm"> test("2c", "0.02", 0);</span> +<a id="line-357" name="line-357"></a><span class="cm"> test("2d", "0.2", 0);</span> +<a id="line-358" name="line-358"></a><span class="cm"> test("2c", "0.02", 0);</span> +<a id="line-359" name="line-359"></a><span class="cm"> test("2m", "0.002", 0);</span> +<a id="line-360" name="line-360"></a><span class="cm"> test("2u", "0.000002", 0);</span> +<a id="line-361" name="line-361"></a><span class="cm"> test("2µ", "0.000002", 0);</span> +<a id="line-362" name="line-362"></a><span class="cm"> test("2n", "0.000000002", 0);</span> +<a id="line-363" name="line-363"></a><span class="cm"> //test("2p", "0.000000000002", 0); // FIXME: Need to print out significant figures, not decimal places</span> +<a id="line-364" name="line-364"></a><span class="cm"> //test("2f", "0.000000000000002", 0); // FIXME: Need to print out significant figures, not decimal places</span> +<a id="line-365" name="line-365"></a><span class="cm"> //test("2A3", "2300000000000000", 0);</span> +<a id="line-366" name="line-366"></a><span class="cm"> test("2T3", "2300000000000", 0);</span> +<a id="line-367" name="line-367"></a><span class="cm"> test("2G3", "2300000000", 0);</span> +<a id="line-368" name="line-368"></a><span class="cm"> test("2M3", "2300000", 0);</span> +<a id="line-369" name="line-369"></a><span class="cm"> test("2k3", "2300", 0);</span> +<a id="line-370" name="line-370"></a><span class="cm"> test("2c3", "0.023", 0);</span> +<a id="line-371" name="line-371"></a><span class="cm"> test("2d3", "0.23", 0);</span> +<a id="line-372" name="line-372"></a><span class="cm"> test("2c3", "0.023", 0);</span> +<a id="line-373" name="line-373"></a><span class="cm"> test("2m3", "0.0023", 0);</span> +<a id="line-374" name="line-374"></a><span class="cm"> test("2u3", "0.0000023", 0);</span> +<a id="line-375" name="line-375"></a><span class="cm"> test("2µ3", "0.0000023", 0);</span> +<a id="line-376" name="line-376"></a><span class="cm"> //test("2n3", "0.0000000023", 0); // FIXME: Need to print out significant figures, not decimal places</span> +<a id="line-377" name="line-377"></a><span class="cm"> //test("2p3", "0.0000000000023", 0); // FIXME: Need to print out significant figures, not decimal places</span> +<a id="line-378" name="line-378"></a><span class="cm"> //test("2f3", "0.0000000000000023", 0); // FIXME: Need to print out significant figures, not decimal places</span> +<a id="line-379" name="line-379"></a><span class="cm">*/</span> +<a id="line-380" name="line-380"></a> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2×10^3"</span><span class="p">,</span><span class="w"> </span><span class="s">"2000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2×10^−3"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.002"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-383" name="line-383"></a> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"y"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"z"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2y"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"y2"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"y 2"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">);</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2z"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"z2"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"z 2"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"z(2)"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_UNKNOWN_VARIABLE</span><span class="p">);</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"y²"</span><span class="p">,</span><span class="w"> </span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2y²"</span><span class="p">,</span><span class="w"> </span><span class="s">"18"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x×y"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"xy"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"yx"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2xy"</span><span class="p">,</span><span class="w"> </span><span class="s">"12"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x²y"</span><span class="p">,</span><span class="w"> </span><span class="s">"12"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"xy²"</span><span class="p">,</span><span class="w"> </span><span class="s">"18"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(xy)²"</span><span class="p">,</span><span class="w"> </span><span class="s">"36"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2x²y"</span><span class="p">,</span><span class="w"> </span><span class="s">"24"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2xy²"</span><span class="p">,</span><span class="w"> </span><span class="s">"36"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2x²y²"</span><span class="p">,</span><span class="w"> </span><span class="s">"72"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x²yx²y"</span><span class="p">,</span><span class="w"> </span><span class="s">"144"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x³+2x²−5"</span><span class="p">,</span><span class="w"> </span><span class="s">"11"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2(x+3y)"</span><span class="p">,</span><span class="w"> </span><span class="s">"22"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x(x+3y)"</span><span class="p">,</span><span class="w"> </span><span class="s">"22"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(x+3y)(2x-4y)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−88"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2x²+2xy−12y²"</span><span class="p">,</span><span class="w"> </span><span class="s">"−88"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-412" name="line-412"></a> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"π"</span><span class="p">,</span><span class="w"> </span><span class="s">"3.141592654"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"pi"</span><span class="p">,</span><span class="w"> </span><span class="s">"3.141592654"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"e"</span><span class="p">,</span><span class="w"> </span><span class="s">"2.718281828"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-416" name="line-416"></a> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="cm">/* Physical constants */</span> +<a id="line-418" name="line-418"></a> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"c₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"299792458"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"μ₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.0000012566370614"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">);</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"ε₀"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.00000000000885418782"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">20</span><span class="p">);</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"G"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.0000000000667408"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">16</span><span class="p">);</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"h"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.000000000000000000000000000000000662607004"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">42</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"e"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.00000000000000000016021766208"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">29</span><span class="p">);</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"mₑ"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.000000000000000000000000000000910938356"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">39</span><span class="p">);</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="n">Test</span><span class="p">(</span><span class="s">"mₚ"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.000000000000000000000000001672621898"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="mi">36</span><span class="p">);</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"Nₐ"</span><span class="p">,</span><span class="w"> </span><span class="s">"602214086000000000000000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-428" name="line-428"></a> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"z=99"</span><span class="p">,</span><span class="w"> </span><span class="s">"99"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"longname=99"</span><span class="p">,</span><span class="w"> </span><span class="s">"99"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="c1">//test("e=99", "", PARSER_ERR_BUILTIN_VARIABLE);</span> +<a id="line-432" name="line-432"></a> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0+0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-434" name="line-434"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1+1"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1+4"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4+1"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"40000+0.001"</span><span class="p">,</span><span class="w"> </span><span class="s">"40000.001"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0.001+40000"</span><span class="p">,</span><span class="w"> </span><span class="s">"40000.001"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2-3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2−3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3−2"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"40000−0.001"</span><span class="p">,</span><span class="w"> </span><span class="s">"39999.999"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0.001−40000"</span><span class="p">,</span><span class="w"> </span><span class="s">"−39999.999"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2*3"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2×3"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−2×3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2×−3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−2×−3"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6/3"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6÷3"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1÷2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−6÷3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6÷−3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−6÷−3"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(−3)÷(−6)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2÷2"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1203÷1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1203"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−0÷32352.689"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1÷4"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.25"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1÷3"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.333333333"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2÷3"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.666666667"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1÷0"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0÷0"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-464" name="line-464"></a> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="cm">/* Precision */</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1000000000000000−1000000000000000"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1000000000000000÷1000000000000000"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1000000000000000×0.000000000000001"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-469" name="line-469"></a> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="cm">/* Order of operations */</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1−0.9−0.1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1+2×3"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1+(2×3)"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(1+2)×3"</span><span class="p">,</span><span class="w"> </span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(1+2×3)"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2(1+1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4÷2(1+1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"1 + 2 - 3 * 4 / 5"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"20 / 10 mod 3"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"12 / 3 √4"</span><span class="p">,</span><span class="w"> </span><span class="s">"8"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"√5!"</span><span class="p">,</span><span class="w"> </span><span class="s">"10.95445115"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="c1">//test ("4 ^ sin 30", "2", 0);</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"4 ^ (sin 30)"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="c1">//test ("4 ^ sin (30)", "2", 0);</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="c1">//test ("sin (30) ^ 4", "0.0625", 0);</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="c1">//test ("sin 30 ^ 4", "0.0625", 0);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"sin (30 ^ 4)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="c1">//test ("-ln(1)", "0", 0);</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"ln(-1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"3.141592654i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"2.33*sqrt(2.5)+6"</span><span class="p">,</span><span class="w"> </span><span class="s">"9.684053474"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-491" name="line-491"></a> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"10 / - 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"−5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"10 * - 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"−20"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"10 ^ -2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.01"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"-10 ^ 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"−100"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"sin (-30)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"sin - 30"</span><span class="p">,</span><span class="w"> </span><span class="s">"−0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-498" name="line-498"></a> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"6 + 3!"</span><span class="p">,</span><span class="w"> </span><span class="s">"12"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"4 * 3!"</span><span class="p">,</span><span class="w"> </span><span class="s">"24"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"100 mod 3!"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"5! mod 7"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"24 / 3!"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"4! / 6"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"cos 5!"</span><span class="p">,</span><span class="w"> </span><span class="s">"−0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"sin 6!"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"- 4!"</span><span class="p">,</span><span class="w"> </span><span class="s">"−24"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"3! ^ 3"</span><span class="p">,</span><span class="w"> </span><span class="s">"216"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="n">test</span><span class="w"> </span><span class="p">(</span><span class="s">"3 ^ 3!"</span><span class="p">,</span><span class="w"> </span><span class="s">"729"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="c1">//test ("(−√3)^2", "3", 0);</span> +<a id="line-511" name="line-511"></a> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="cm">/* Percentage */</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100%"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1%"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.01"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100+1%"</span><span class="p">,</span><span class="w"> </span><span class="s">"101"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100−1%"</span><span class="p">,</span><span class="w"> </span><span class="s">"99"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100×1%"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"100÷1%"</span><span class="p">,</span><span class="w"> </span><span class="s">"10000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-519" name="line-519"></a> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="cm">/* Factorial */</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0!"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1!"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"5!"</span><span class="p">,</span><span class="w"> </span><span class="s">"120"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"69!"</span><span class="p">,</span><span class="w"> </span><span class="s">"171122452428141311372468338881272839092270544893520369393648040923257279754140647424000000000000000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0.1!"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.95135077"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−1!"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-527" name="line-527"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(−1)!"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-528" name="line-528"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−(1!)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-529" name="line-529"></a> +<a id="line-530" name="line-530"></a><span class="w"> </span><span class="cm">/* Powers */</span> +<a id="line-531" name="line-531"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2²"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-532" name="line-532"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2³"</span><span class="p">,</span><span class="w"> </span><span class="s">"8"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-533" name="line-533"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2¹⁰"</span><span class="p">,</span><span class="w"> </span><span class="s">"1024"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-534" name="line-534"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2³ ²"</span><span class="p">,</span><span class="w"> </span><span class="s">"512"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(1+2)²"</span><span class="p">,</span><span class="w"> </span><span class="s">"9"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(x)²"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|1−3|²"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|x|²"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0^0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0^0.5"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^1"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-543" name="line-543"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^2"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-544" name="line-544"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2⁻¹"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-545" name="line-545"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2⁻"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-546" name="line-546"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^−1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-547" name="line-547"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^(−1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-548" name="line-548"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"x⁻¹"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−10^2"</span><span class="p">,</span><span class="w"> </span><span class="s">"−100"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(−10)^2"</span><span class="p">,</span><span class="w"> </span><span class="s">"100"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−(10^2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−100"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^100"</span><span class="p">,</span><span class="w"> </span><span class="s">"1267650600228229401496703205376"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4^3^2"</span><span class="p">,</span><span class="w"> </span><span class="s">"262144"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4^(3^2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"262144"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(4^3)^2"</span><span class="p">,</span><span class="w"> </span><span class="s">"4096"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"√4"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"√4−2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-558" name="line-558"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"∛8"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-559" name="line-559"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"∜16"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-560" name="line-560"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"₃√8"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-561" name="line-561"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"₁₀√1024"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-562" name="line-562"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"√(2+2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-563" name="line-563"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2√4"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2×√4"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"Sqrt(4)"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"Sqrt(2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.414213562"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"4^0.5"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^0.5"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.414213562"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"₃√−8"</span><span class="p">,</span><span class="w"> </span><span class="s">"−2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(−8)^(1÷3)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"e^-2^-5"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.969233234"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-572" name="line-572"></a> +<a id="line-573" name="line-573"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 mod 7"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-574" name="line-574"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"6 mod 7"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-575" name="line-575"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"7 mod 7"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-576" name="line-576"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"8 mod 7"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-577" name="line-577"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−1 mod 7"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-578" name="line-578"></a> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"123^456 mod 78"</span><span class="p">,</span><span class="w"> </span><span class="s">"27"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^2 mod 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1^0 mod 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-582" name="line-582"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2^1 mod 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-583" name="line-583"></a> +<a id="line-584" name="line-584"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sgn 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-585" name="line-585"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sgn 3"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-586" name="line-586"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sgn −3"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-587" name="line-587"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊3⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈3⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[3]"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-590" name="line-590"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊−3⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-591" name="line-591"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈−3⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-592" name="line-592"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[−3]"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-593" name="line-593"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊3.2⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-594" name="line-594"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈3.2⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-595" name="line-595"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[3.2]"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-596" name="line-596"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊−3.2⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"−4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-597" name="line-597"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈−3.2⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-598" name="line-598"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[−3.2]"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-599" name="line-599"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊3.5⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-600" name="line-600"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈3.5⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-601" name="line-601"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[3.5]"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-602" name="line-602"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊−3.5⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"−4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-603" name="line-603"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈−3.5⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-604" name="line-604"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[−3.5]"</span><span class="p">,</span><span class="w"> </span><span class="s">"−4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-605" name="line-605"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊3.7⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-606" name="line-606"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈3.7⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-607" name="line-607"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[3.7]"</span><span class="p">,</span><span class="w"> </span><span class="s">"4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-608" name="line-608"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌊−3.7⌋"</span><span class="p">,</span><span class="w"> </span><span class="s">"−4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-609" name="line-609"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"⌈−3.7⌉"</span><span class="p">,</span><span class="w"> </span><span class="s">"−3"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-610" name="line-610"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"[−3.7]"</span><span class="p">,</span><span class="w"> </span><span class="s">"−4"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-611" name="line-611"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"{3.2}"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-612" name="line-612"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"{−3.2}"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.8"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-613" name="line-613"></a> +<a id="line-614" name="line-614"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|1|"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-615" name="line-615"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|−1|"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-616" name="line-616"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|3−5|"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-617" name="line-617"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|x|"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-618" name="line-618"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"abs 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-619" name="line-619"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"abs (−1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-620" name="line-620"></a> +<a id="line-621" name="line-621"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log 0"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-622" name="line-622"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-623" name="line-623"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.301029996"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-624" name="line-624"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log 10"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-625" name="line-625"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log₁₀ 10"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-626" name="line-626"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log₂ 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-627" name="line-627"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2 log 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.602059991"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-628" name="line-628"></a> +<a id="line-629" name="line-629"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ln 0"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-630" name="line-630"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ln 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-631" name="line-631"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ln 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.693147181"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-632" name="line-632"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ln e"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-633" name="line-633"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2 ln 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.386294361"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-634" name="line-634"></a> +<a id="line-635" name="line-635"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-636" name="line-636"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-637" name="line-637"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 45 − 1÷√2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-638" name="line-638"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 20 + sin(−20)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-639" name="line-639"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 90"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-640" name="line-640"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 180"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-641" name="line-641"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2 sin 90"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-642" name="line-642"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin²45"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-643" name="line-643"></a> +<a id="line-644" name="line-644"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-645" name="line-645"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos 45 − 1÷√2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-646" name="line-646"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos 20 − cos (−20)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-647" name="line-647"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos 90"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-648" name="line-648"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos 180"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-649" name="line-649"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2 cos 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"2"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-650" name="line-650"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos²45"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-651" name="line-651"></a> +<a id="line-652" name="line-652"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tan 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-653" name="line-653"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tan 10 − sin 10÷cos 10"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-654" name="line-654"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tan 90"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-655" name="line-655"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tan 10"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.176326981"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-656" name="line-656"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tan²10"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.031091204"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-657" name="line-657"></a> +<a id="line-658" name="line-658"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos⁻¹ 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-659" name="line-659"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos⁻¹ 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-660" name="line-660"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos⁻¹ (−1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"180"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-661" name="line-661"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos⁻¹ (1÷√2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"45"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-662" name="line-662"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"acos 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-663" name="line-663"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"acos 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-664" name="line-664"></a> +<a id="line-665" name="line-665"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin⁻¹ 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-666" name="line-666"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin⁻¹ 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-667" name="line-667"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin⁻¹ (−1)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-668" name="line-668"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin⁻¹ (1÷√2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"45"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-669" name="line-669"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"asin 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-670" name="line-670"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"asin 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-671" name="line-671"></a> +<a id="line-672" name="line-672"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cosh 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-673" name="line-673"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cosh 10 − (e^10 + e^−10)÷2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-674" name="line-674"></a> +<a id="line-675" name="line-675"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sinh 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-676" name="line-676"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sinh 10 − (e^10 − e^−10)÷2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-677" name="line-677"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sinh (−10) + sinh 10"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-678" name="line-678"></a> +<a id="line-679" name="line-679"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cosh² (−5) − sinh² (−5)"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-680" name="line-680"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tanh 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-681" name="line-681"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"tanh 10 − sinh 10 ÷ cosh 10"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-682" name="line-682"></a> +<a id="line-683" name="line-683"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"atanh 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-684" name="line-684"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"atanh (1÷10) − 0.5 ln(11÷9)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-685" name="line-685"></a> +<a id="line-686" name="line-686"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-687" name="line-687"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 90"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-688" name="line-688"></a> +<a id="line-689" name="line-689"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_RADIANS</span><span class="p">;</span> +<a id="line-690" name="line-690"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin (π÷2)"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span><span class="w"> </span><span class="c1">// FIXME: Shouldn't need brackets</span> +<a id="line-691" name="line-691"></a> +<a id="line-692" name="line-692"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_GRADIANS</span><span class="p">;</span> +<a id="line-693" name="line-693"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin 100"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-694" name="line-694"></a> +<a id="line-695" name="line-695"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"zeta 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"−0.5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-696" name="line-696"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"zeta 2"</span><span class="p">,</span><span class="w"> </span><span class="s">"1.644934067"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-697" name="line-697"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"zeta −2"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-698" name="line-698"></a> +<a id="line-699" name="line-699"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"erf 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-700" name="line-700"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"erf 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0.842700793"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-701" name="line-701"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"erf −1"</span><span class="p">,</span><span class="w"> </span><span class="s">"−0.842700793"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-702" name="line-702"></a> +<a id="line-703" name="line-703"></a><span class="w"> </span><span class="cm">/* Complex numbers */</span> +<a id="line-704" name="line-704"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">angle_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">MP_DEGREES</span><span class="p">;</span> +<a id="line-705" name="line-705"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"i"</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-706" name="line-706"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"−i"</span><span class="p">,</span><span class="w"> </span><span class="s">"−i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-707" name="line-707"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"2i"</span><span class="p">,</span><span class="w"> </span><span class="s">"2i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-708" name="line-708"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1+i"</span><span class="p">,</span><span class="w"> </span><span class="s">"1+i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-709" name="line-709"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"i+1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1+i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-710" name="line-710"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1−i"</span><span class="p">,</span><span class="w"> </span><span class="s">"1−i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-711" name="line-711"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"i−1"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1+i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-712" name="line-712"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"i×i"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-713" name="line-713"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"i÷i"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-714" name="line-714"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1÷i"</span><span class="p">,</span><span class="w"> </span><span class="s">"−i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-715" name="line-715"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|i|"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-716" name="line-716"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"|3+4i|"</span><span class="p">,</span><span class="w"> </span><span class="s">"5"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-717" name="line-717"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg 0"</span><span class="p">,</span><span class="w"> </span><span class="s">""</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">);</span> +<a id="line-718" name="line-718"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-719" name="line-719"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg (1+i)"</span><span class="p">,</span><span class="w"> </span><span class="s">"45"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-720" name="line-720"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg i"</span><span class="p">,</span><span class="w"> </span><span class="s">"90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-721" name="line-721"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg (−1+i)"</span><span class="p">,</span><span class="w"> </span><span class="s">"135"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-722" name="line-722"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg −1"</span><span class="p">,</span><span class="w"> </span><span class="s">"180"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-723" name="line-723"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg (1+−i)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−45"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-724" name="line-724"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg −i"</span><span class="p">,</span><span class="w"> </span><span class="s">"−90"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-725" name="line-725"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"arg (−1−i)"</span><span class="p">,</span><span class="w"> </span><span class="s">"−135"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-726" name="line-726"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"i⁻¹"</span><span class="p">,</span><span class="w"> </span><span class="s">"−i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-727" name="line-727"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"√−1"</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-728" name="line-728"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"(−1)^0.5"</span><span class="p">,</span><span class="w"> </span><span class="s">"i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-729" name="line-729"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"√−4"</span><span class="p">,</span><span class="w"> </span><span class="s">"2i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-730" name="line-730"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"e^iπ"</span><span class="p">,</span><span class="w"> </span><span class="s">"−1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-731" name="line-731"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ln (e^iπ)"</span><span class="p">,</span><span class="w"> </span><span class="s">"3.141592654i"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-732" name="line-732"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"log (−10) − (1 + πi÷ln(10))"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-733" name="line-733"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ln (−e) − (1 + πi)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-734" name="line-734"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"sin(iπ÷4) − i×sinh(π÷4)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-735" name="line-735"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"cos(iπ÷4) − cosh(π÷4)"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-736" name="line-736"></a> +<a id="line-737" name="line-737"></a><span class="w"> </span><span class="cm">/* Boolean */</span> +<a id="line-738" name="line-738"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 and 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-739" name="line-739"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 and 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-740" name="line-740"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 and 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-741" name="line-741"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 and 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-742" name="line-742"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3 and 5"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-743" name="line-743"></a> +<a id="line-744" name="line-744"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 or 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-745" name="line-745"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 or 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-746" name="line-746"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 or 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-747" name="line-747"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 or 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-748" name="line-748"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3 or 5"</span><span class="p">,</span><span class="w"> </span><span class="s">"7"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-749" name="line-749"></a> +<a id="line-750" name="line-750"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 xor 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-751" name="line-751"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 xor 0"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-752" name="line-752"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"0 xor 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"1"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-753" name="line-753"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1 xor 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"0"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-754" name="line-754"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"3 xor 5"</span><span class="p">,</span><span class="w"> </span><span class="s">"6"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-755" name="line-755"></a> +<a id="line-756" name="line-756"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">16</span><span class="p">;</span> +<a id="line-757" name="line-757"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ones 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"FFFFFFFE"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-758" name="line-758"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"ones 7FFFFFFF"</span><span class="p">,</span><span class="w"> </span><span class="s">"80000000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-759" name="line-759"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"twos 1"</span><span class="p">,</span><span class="w"> </span><span class="s">"FFFFFFFF"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-760" name="line-760"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"twos 7FFFFFFF"</span><span class="p">,</span><span class="w"> </span><span class="s">"80000001"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-761" name="line-761"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"~7A₁₆"</span><span class="p">,</span><span class="w"> </span><span class="s">"FFFFFF85"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-762" name="line-762"></a> +<a id="line-763" name="line-763"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">2</span><span class="p">;</span> +<a id="line-764" name="line-764"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">4</span><span class="p">;</span> +<a id="line-765" name="line-765"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1100∧1010"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-766" name="line-766"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1100∨1010"</span><span class="p">,</span><span class="w"> </span><span class="s">"1110"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-767" name="line-767"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1100⊻1010"</span><span class="p">,</span><span class="w"> </span><span class="s">"110"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-768" name="line-768"></a><span class="w"> </span><span class="n">test</span><span class="p">(</span><span class="s">"1100⊕1010"</span><span class="p">,</span><span class="w"> </span><span class="s">"110"</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-769" name="line-769"></a><span class="w"> </span><span class="c1">//test("1100⊼1010", "0111", 0);</span> +<a id="line-770" name="line-770"></a><span class="w"> </span><span class="c1">//test("1100⊽1010", "0001", 0);</span> +<a id="line-771" name="line-771"></a><span class="w"> </span><span class="c1">//options.wordlen = 2;</span> +<a id="line-772" name="line-772"></a><span class="w"> </span><span class="c1">//test("¬01₂", "10₂", 0);</span> +<a id="line-773" name="line-773"></a><span class="w"> </span><span class="c1">//test("¬¬10₂", "10₂", 0);</span> +<a id="line-774" name="line-774"></a><span class="p">}</span> +<a id="line-775" name="line-775"></a> +<a id="line-776" name="line-776"></a><span class="kt">int</span> +<a id="line-777" name="line-777"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-778" name="line-778"></a><span class="p">{</span> +<a id="line-779" name="line-779"></a><span class="w"> </span><span class="n">setlocale</span><span class="p">(</span><span class="n">LC_ALL</span><span class="p">,</span><span class="w"> </span><span class="s">"C"</span><span class="p">);</span> +<a id="line-780" name="line-780"></a> +<a id="line-781" name="line-781"></a><span class="w"> </span><span class="n">test_mp</span><span class="p">();</span> +<a id="line-782" name="line-782"></a><span class="w"> </span><span class="n">test_conversions</span><span class="p">();</span> +<a id="line-783" name="line-783"></a><span class="w"> </span><span class="n">test_equations</span><span class="p">();</span> +<a id="line-784" name="line-784"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fails</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-785" name="line-785"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"Passed all %i tests</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">passes</span><span class="p">);</span> +<a id="line-786" name="line-786"></a> +<a id="line-787" name="line-787"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">fails</span><span class="p">;</span> +<a id="line-788" name="line-788"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/47.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/47.html new file mode 100644 index 0000000..0d865c7 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/47.html @@ -0,0 +1,693 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/test-mp.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> test-mp.c</p> +<a href="47.html#line-11"> missingIncludeSystem 11</a><a href="47.html#line-12"> missingIncludeSystem 12</a><a href="47.html#line-13"> missingIncludeSystem 13</a><a href="47.html#line-14"> missingIncludeSystem 14</a><a href="47.html#line-15"> missingIncludeSystem 15</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span><span class="error2"><--- Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdarg.h></span><span class="error2"><--- Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><locale.h></span><span class="error2"><--- Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">fails</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-20" name="line-20"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">passes</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="cm">/* If we're not using GNU C, elide __attribute__ */</span> +<a id="line-23" name="line-23"></a><span class="cp">#ifndef __GNUC__</span> +<a id="line-24" name="line-24"></a><span class="cp"># define __attribute__(x) </span><span class="cm">/*NOTHING*/</span> +<a id="line-25" name="line-25"></a><span class="cp">#endif</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pass</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span><span class="w"> </span><span class="n">__attribute__</span><span class="p">((</span><span class="n">format</span><span class="p">(</span><span class="n">printf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">)));</span> +<a id="line-28" name="line-28"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">fail</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span><span class="w"> </span><span class="n">__attribute__</span><span class="p">((</span><span class="n">format</span><span class="p">(</span><span class="n">printf</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">)));</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">pass</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span> +<a id="line-31" name="line-31"></a><span class="p">{</span> +<a id="line-32" name="line-32"></a><span class="cm">/* va_list args;</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="cm"> printf(" PASS: ");</span> +<a id="line-35" name="line-35"></a><span class="cm"> va_start(args, format);</span> +<a id="line-36" name="line-36"></a><span class="cm"> vprintf(format, args);</span> +<a id="line-37" name="line-37"></a><span class="cm"> va_end(args);</span> +<a id="line-38" name="line-38"></a><span class="cm"> printf("\n");</span> +<a id="line-39" name="line-39"></a><span class="cm">*/</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">passes</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span> +<a id="line-41" name="line-41"></a><span class="p">}</span> +<a id="line-42" name="line-42"></a> +<a id="line-43" name="line-43"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="nf">fail</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="p">...)</span> +<a id="line-44" name="line-44"></a><span class="p">{</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="kt">va_list</span><span class="w"> </span><span class="n">args</span><span class="p">;</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"*FAIL: "</span><span class="p">);</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">va_start</span><span class="p">(</span><span class="n">args</span><span class="p">,</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">vprintf</span><span class="p">(</span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">args</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">va_end</span><span class="p">(</span><span class="n">args</span><span class="p">);</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">fails</span><span class="o">++</span><span class="p">;</span> +<a id="line-53" name="line-53"></a><span class="p">}</span> +<a id="line-54" name="line-54"></a> +<a id="line-55" name="line-55"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-56" name="line-56"></a><span class="nf">print_number</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span> +<a id="line-57" name="line-57"></a><span class="p">{</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">mpc_out_str</span><span class="p">(</span><span class="n">stdout</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="o">-></span><span class="n">num</span><span class="p">,</span><span class="w"> </span><span class="n">MPC_RNDNN</span><span class="p">);</span> +<a id="line-59" name="line-59"></a><span class="p">}</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-62" name="line-62"></a><span class="nf">test_string</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">number</span><span class="p">)</span> +<a id="line-63" name="line-63"></a><span class="p">{</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">number</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-67" name="line-67"></a> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"MPNumber(%s) -> {"</span><span class="p">,</span><span class="w"> </span><span class="n">number</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">print_number</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"}</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="p">}</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-75" name="line-75"></a><span class="nf">test_integer</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">number</span><span class="p">)</span> +<a id="line-76" name="line-76"></a><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="n">number</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"MPNumber(%d) -> {"</span><span class="p">,</span><span class="w"> </span><span class="n">number</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">print_number</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"}</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="p">}</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-88" name="line-88"></a><span class="nf">test_numbers</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-89" name="line-89"></a><span class="p">{</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">-1</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">9999</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">10000</span><span class="p">);</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">10001</span><span class="p">);</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="n">test_integer</span><span class="p">(</span><span class="mi">2147483647</span><span class="p">);</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0"</span><span class="p">);</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"1"</span><span class="p">);</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"-1"</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"16383"</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"16384"</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"16385"</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"268435456"</span><span class="p">);</span> +<a id="line-106" name="line-106"></a> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.1"</span><span class="p">);</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.5"</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.25"</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.125"</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.0625"</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.00006103515625"</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"0.000030517578125"</span><span class="p">);</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"1.00006103515625"</span><span class="p">);</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">test_string</span><span class="p">(</span><span class="s">"16384.00006103515625"</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="p">}</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-120" name="line-120"></a><span class="nf">try</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="n">expected</span><span class="p">)</span> +<a id="line-121" name="line-121"></a><span class="p">{</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="o">!</span><span class="n">expected</span><span class="p">)</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">result</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">expected</span><span class="p">))</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">fail</span><span class="p">(</span><span class="s">"%s -> %s, expected %s"</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">expected</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"false"</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"false"</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">else</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">pass</span><span class="p">(</span><span class="s">"%s -> %s"</span><span class="p">,</span><span class="w"> </span><span class="n">string</span><span class="p">,</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">?</span><span class="w"> </span><span class="s">"true"</span><span class="w"> </span><span class="o">:</span><span class="w"> </span><span class="s">"false"</span><span class="p">);</span> +<a id="line-126" name="line-126"></a><span class="p">}</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-129" name="line-129"></a><span class="nf">test_mp</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-130" name="line-130"></a><span class="p">{</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">zero</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">minus_one</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_zero(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_zero(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_zero(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_zero</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_negative(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_negative(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_negative(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_negative</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-145" name="line-145"></a> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_integer(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_integer(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_integer(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_integer</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_positive_integer(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_positive_integer(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_positive_integer(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_positive_integer</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-153" name="line-153"></a> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_natural(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_natural</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_natural(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_natural</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_natural(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_natural</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_complex(-1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_complex(0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_complex(1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_complex</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-161" name="line-161"></a> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_equal(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_equal</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_than(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_greater_equal(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_greater_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_than(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_than</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-201" name="line-201"></a> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(0, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-203" name="line-203"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(0, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(0, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">false</span><span class="p">);</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(-1, -1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">minus_one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(-1, 0)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">zero</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">try</span><span class="p">(</span><span class="s">"mp_is_less_equal(-1, 1)"</span><span class="p">,</span><span class="w"> </span><span class="n">mp_is_less_equal</span><span class="w"> </span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">one</span><span class="p">),</span><span class="w"> </span><span class="nb">true</span><span class="p">);</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">zero</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">one</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">minus_one</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="p">}</span> +<a id="line-216" name="line-216"></a> +<a id="line-217" name="line-217"></a><span class="kt">int</span> +<a id="line-218" name="line-218"></a><span class="nf">main</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-219" name="line-219"></a><span class="p">{</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">setlocale</span><span class="p">(</span><span class="n">LC_ALL</span><span class="p">,</span><span class="w"> </span><span class="s">"C"</span><span class="p">);</span> +<a id="line-221" name="line-221"></a> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="n">test_mp</span><span class="p">();</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="n">test_numbers</span><span class="p">();</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">fails</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"Passed all %i tests</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span><span class="w"> </span><span class="n">passes</span><span class="p">);</span> +<a id="line-226" name="line-226"></a> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">fails</span><span class="p">;</span> +<a id="line-228" name="line-228"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/48.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/48.html new file mode 100644 index 0000000..2940532 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/48.html @@ -0,0 +1,497 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/unit-category.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> unit-category.c</p> +<a href="48.html#line-12"> missingIncludeSystem 12</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-category.h"</span> +<a id="line-15" name="line-15"></a> +<a id="line-16" name="line-16"></a><span class="k">struct</span><span class="w"> </span><span class="nc">UnitCategoryPrivate</span> +<a id="line-17" name="line-17"></a><span class="p">{</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">units</span><span class="p">;</span> +<a id="line-21" name="line-21"></a><span class="p">};</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">UnitCategory</span><span class="p">,</span><span class="w"> </span><span class="n">unit_category</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span> +<a id="line-26" name="line-26"></a><span class="nf">unit_category_new</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">)</span> +<a id="line-27" name="line-27"></a><span class="p">{</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">unit_category_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">category</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="p">}</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-35" name="line-35"></a><span class="nf">unit_category_get_name</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">)</span> +<a id="line-36" name="line-36"></a><span class="p">{</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="p">;</span> +<a id="line-39" name="line-39"></a><span class="p">}</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-42" name="line-42"></a><span class="nf">unit_category_get_display_name</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">)</span> +<a id="line-43" name="line-43"></a><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_name</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="p">}</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="kt">void</span> +<a id="line-49" name="line-49"></a><span class="nf">unit_category_add_unit</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-50" name="line-50"></a><span class="p">{</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">g_return_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">units</span><span class="p">,</span><span class="w"> </span><span class="n">g_object_ref</span><span class="p">(</span><span class="n">unit</span><span class="p">));</span> +<a id="line-54" name="line-54"></a><span class="p">}</span> +<a id="line-55" name="line-55"></a> +<a id="line-56" name="line-56"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span> +<a id="line-57" name="line-57"></a><span class="nf">unit_category_get_unit_by_name</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-58" name="line-58"></a><span class="p">{</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-60" name="line-60"></a> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">units</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">{</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">unit_get_name</span><span class="p">(</span><span class="n">unit</span><span class="p">),</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit</span><span class="p">;</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="p">}</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-72" name="line-72"></a><span class="p">}</span> +<a id="line-73" name="line-73"></a> +<a id="line-74" name="line-74"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span> +<a id="line-75" name="line-75"></a><span class="nf">unit_category_get_unit_by_symbol</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">)</span> +<a id="line-76" name="line-76"></a><span class="p">{</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">symbol</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">units</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">unit_matches_symbol</span><span class="p">(</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">symbol</span><span class="p">))</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">}</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-89" name="line-89"></a><span class="p">}</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-92" name="line-92"></a><span class="nf">unit_category_get_units</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">)</span> +<a id="line-93" name="line-93"></a><span class="p">{</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">units</span><span class="p">;</span> +<a id="line-96" name="line-96"></a><span class="p">}</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="n">gboolean</span> +<a id="line-99" name="line-99"></a><span class="nf">unit_category_convert</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-100" name="line-100"></a><span class="p">{</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">x_units</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">z_units</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">z</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">t</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">unit_convert_from</span><span class="p">(</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">))</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="p">{</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="p">}</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">unit_convert_to</span><span class="p">(</span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">))</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="p">{</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="p">}</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">t</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-119" name="line-119"></a><span class="p">}</span> +<a id="line-120" name="line-120"></a> +<a id="line-121" name="line-121"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-122" name="line-122"></a><span class="nf">unit_category_class_init</span><span class="p">(</span><span class="n">UnitCategoryClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-123" name="line-123"></a><span class="p">{</span> +<a id="line-124" name="line-124"></a><span class="p">}</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-127" name="line-127"></a><span class="nf">unit_category_init</span><span class="p">(</span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">)</span> +<a id="line-128" name="line-128"></a><span class="p">{</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">category</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">category</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/49.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/49.html new file mode 100644 index 0000000..edb6dbf --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/49.html @@ -0,0 +1,773 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/unit-manager.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> unit-manager.c</p> +<a href="49.html#line-12"> missingIncludeSystem 12</a><a href="49.html#line-13"> missingIncludeSystem 13</a><a href="49.html#line-189"> variableScope 189</a><a href="49.html#line-208"> variableScope 208</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="c1"> // FIXME: Move out of here</span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit-manager.h"</span> +<a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"currency-manager.h"</span><span class="c1"> // FIXME: Move out of here</span> +<a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="k">struct</span><span class="w"> </span><span class="nc">UnitManagerPrivate</span> +<a id="line-19" name="line-19"></a><span class="p">{</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">categories</span><span class="p">;</span> +<a id="line-21" name="line-21"></a><span class="p">};</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">UnitManager</span><span class="p">,</span><span class="w"> </span><span class="n">unit_manager</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-24" name="line-24"></a> +<a id="line-25" name="line-25"></a><span class="k">static</span><span class="w"> </span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">default_unit_manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-26" name="line-26"></a> +<a id="line-27" name="line-27"></a><span class="k">static</span><span class="w"> </span><span class="n">gint</span> +<a id="line-28" name="line-28"></a><span class="nf">compare_currencies</span><span class="p">(</span><span class="n">gconstpointer</span><span class="w"> </span><span class="n">a</span><span class="p">,</span><span class="w"> </span><span class="n">gconstpointer</span><span class="w"> </span><span class="n">b</span><span class="p">)</span> +<a id="line-29" name="line-29"></a><span class="p">{</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">strcmp</span><span class="p">(</span><span class="n">currency_get_display_name</span><span class="p">((</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">a</span><span class="p">),</span><span class="w"> </span><span class="n">currency_get_display_name</span><span class="p">((</span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">b</span><span class="p">));</span> +<a id="line-31" name="line-31"></a><span class="p">}</span> +<a id="line-32" name="line-32"></a> +<a id="line-33" name="line-33"></a><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span> +<a id="line-34" name="line-34"></a><span class="nf">unit_manager_get_default</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span> +<a id="line-35" name="line-35"></a><span class="p">{</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">currencies</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="k">struct</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="p">{</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">;</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">from_function</span><span class="p">;</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">to_function</span><span class="p">;</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbols</span><span class="p">;</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="n">units</span><span class="p">[]</span><span class="w"> </span><span class="o">=</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="p">{</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="cm">/* FIXME: Approximations of 1/(units in a circle), therefore, 360 deg != 400 grads */</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="p">{</span><span class="s">"angle"</span><span class="p">,</span><span class="w"> </span><span class="s">"degree"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Degrees"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s degrees"</span><span class="p">),</span><span class="w"> </span><span class="s">"π*x/180"</span><span class="p">,</span><span class="w"> </span><span class="s">"180x/π"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"degree,degrees,deg"</span><span class="p">)},</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"radian"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Radians"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s radians"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"radian,radians,rad"</span><span class="p">)},</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"gradian"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Gradians"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s gradians"</span><span class="p">),</span><span class="w"> </span><span class="s">"π*x/200"</span><span class="p">,</span><span class="w"> </span><span class="s">"200x/π"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"gradian,gradians,grad"</span><span class="p">)},</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="p">{</span><span class="s">"length"</span><span class="p">,</span><span class="w"> </span><span class="s">"parsec"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Parsecs"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s pc"</span><span class="p">),</span><span class="w"> </span><span class="s">"30857000000000000x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/30857000000000000"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"parsec,parsecs,pc"</span><span class="p">)},</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"lightyear"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Light Years"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ly"</span><span class="p">),</span><span class="w"> </span><span class="s">"9460730472580800x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/9460730472580800"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"lightyear,lightyears,ly"</span><span class="p">)},</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"astronomical-unit"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Astronomical Units"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s au"</span><span class="p">),</span><span class="w"> </span><span class="s">"149597870700x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/149597870700"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"au"</span><span class="p">)},</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"nautical-mile"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Nautical Miles"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s nmi"</span><span class="p">),</span><span class="w"> </span><span class="s">"1852x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/1852"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"nmi"</span><span class="p">)},</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"mile"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Miles"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s mi"</span><span class="p">),</span><span class="w"> </span><span class="s">"1609.344x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/1609.344"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"mile,miles,mi"</span><span class="p">)},</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"kilometer"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Kilometers"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s km"</span><span class="p">),</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/1000"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"kilometer,kilometers,km,kms"</span><span class="p">)},</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"cable"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Cables"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s cb"</span><span class="p">),</span><span class="w"> </span><span class="s">"219.456x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/219.456"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"cable,cables,cb"</span><span class="p">)},</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"fathom"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Fathoms"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ftm"</span><span class="p">),</span><span class="w"> </span><span class="s">"1.8288x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/1.8288"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"fathom,fathoms,ftm"</span><span class="p">)},</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"meter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Meters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s m"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"meter,meters,m"</span><span class="p">)},</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"yard"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Yards"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s yd"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.9144x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.9144"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"yard,yards,yd"</span><span class="p">)},</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"foot"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Feet"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ft"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.3048x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.3048"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"foot,feet,ft"</span><span class="p">)},</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"inch"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Inches"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s in"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.0254x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.0254"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"inch,inches,in"</span><span class="p">)},</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"centimeter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Centimeters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s cm"</span><span class="p">),</span><span class="w"> </span><span class="s">"x/100"</span><span class="p">,</span><span class="w"> </span><span class="s">"100x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"centimeter,centimeters,cm,cms"</span><span class="p">)},</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"millimeter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Millimeters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s mm"</span><span class="p">),</span><span class="w"> </span><span class="s">"x/1000"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"millimeter,millimeters,mm"</span><span class="p">)},</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"micrometer"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Micrometers"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s μm"</span><span class="p">),</span><span class="w"> </span><span class="s">"x/1000000"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"micrometer,micrometers,um"</span><span class="p">)},</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"nanometer"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Nanometers"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s nm"</span><span class="p">),</span><span class="w"> </span><span class="s">"x/1000000000"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"nanometer,nanometers,nm"</span><span class="p">)},</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="p">{</span><span class="s">"area"</span><span class="p">,</span><span class="w"> </span><span class="s">"hectare"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hectares"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ha"</span><span class="p">),</span><span class="w"> </span><span class="s">"10000x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/10000"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"hectare,hectares,ha"</span><span class="p">)},</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"acre"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Acres"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s acres"</span><span class="p">),</span><span class="w"> </span><span class="s">"4046.8564224x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/4046.8564224"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"acre,acres"</span><span class="p">)},</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"square-meter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Square Meters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s m²"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"m²"</span><span class="p">)},</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"square-centimeter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Square Centimeters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s cm²"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.0001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"10000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"cm²"</span><span class="p">)},</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"square-millimeter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Square Millimeters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s mm²"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.000001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"mm²"</span><span class="p">)},</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">{</span><span class="s">"volume"</span><span class="p">,</span><span class="w"> </span><span class="s">"cubic-meter"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Cubic Meters"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s m³"</span><span class="p">),</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/1000"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"m³"</span><span class="p">)},</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"gallon"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Gallons"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s gal"</span><span class="p">),</span><span class="w"> </span><span class="s">"3.785412x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/3.785412"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"gallon,gallons,gal"</span><span class="p">)},</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"litre"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Litres"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s L"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"litre,litres,liter,liters,L"</span><span class="p">)},</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"quart"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Quarts"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s qt"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.9463529x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.9463529"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"quart,quarts,qt"</span><span class="p">)},</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"pint"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pints"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s pt"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.4731765x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.4731765"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"pint,pints,pt"</span><span class="p">)},</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"millilitre"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Millilitres"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s mL"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"millilitre,millilitres,milliliter,milliliters,mL,cm³"</span><span class="p">)},</span> +<a id="line-81" name="line-81"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"microlitre"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Microlitres"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s μL"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.000001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"mm³,μL,uL"</span><span class="p">)},</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="p">{</span><span class="s">"weight"</span><span class="p">,</span><span class="w"> </span><span class="s">"tonne"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Tonnes"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s T"</span><span class="p">),</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/1000"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"tonne,tonnes"</span><span class="p">)},</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"kilograms"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Kilograms"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s kg"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"kilogram,kilograms,kilogramme,kilogrammes,kg,kgs"</span><span class="p">)},</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"pound"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Pounds"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s lb"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.45359237x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.45359237"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"pound,pounds,lb"</span><span class="p">)},</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"ounce"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Ounces"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s oz"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.02834952x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/0.02834952"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"ounce,ounces,oz"</span><span class="p">)},</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"gram"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Grams"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s g"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"gram,grams,gramme,grammes,g"</span><span class="p">)},</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="p">{</span><span class="s">"duration"</span><span class="p">,</span><span class="w"> </span><span class="s">"year"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Years"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s years"</span><span class="p">),</span><span class="w"> </span><span class="s">"31557600x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/31557600"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"year,years"</span><span class="p">)},</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"day"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Days"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s days"</span><span class="p">),</span><span class="w"> </span><span class="s">"86400x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/86400"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"day,days"</span><span class="p">)},</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"hour"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Hours"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s hours"</span><span class="p">),</span><span class="w"> </span><span class="s">"3600x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/3600"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"hour,hours"</span><span class="p">)},</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"minute"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Minutes"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s minutes"</span><span class="p">),</span><span class="w"> </span><span class="s">"60x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x/60"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"minute,minutes"</span><span class="p">)},</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"second"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Seconds"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s s"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"second,seconds,s"</span><span class="p">)},</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"millisecond"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Milliseconds"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ms"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"millisecond,milliseconds,ms"</span><span class="p">)},</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"microsecond"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Microseconds"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s μs"</span><span class="p">),</span><span class="w"> </span><span class="s">"0.000001x"</span><span class="p">,</span><span class="w"> </span><span class="s">"1000000x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"microsecond,microseconds,us,μs"</span><span class="p">)},</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="p">{</span><span class="s">"temperature"</span><span class="p">,</span><span class="w"> </span><span class="s">"degree-celcius"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Celsius"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ˚C"</span><span class="p">),</span><span class="w"> </span><span class="s">"x+273.15"</span><span class="p">,</span><span class="w"> </span><span class="s">"x-273.15"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"degC,˚C"</span><span class="p">)},</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"degree-farenheit"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Farenheit"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ˚F"</span><span class="p">),</span><span class="w"> </span><span class="s">"(x+459.67)*5/9"</span><span class="p">,</span><span class="w"> </span><span class="s">"x*9/5-459.67"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"degF,˚F"</span><span class="p">)},</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"degree-kelvin"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Kelvin"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s K"</span><span class="p">),</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="s">"x"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"K"</span><span class="p">)},</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="p">{</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"degree-rankine"</span><span class="p">,</span><span class="w"> </span><span class="n">N_</span><span class="p">(</span><span class="s">"Rankine"</span><span class="p">),</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="s">"%s ˚R"</span><span class="p">),</span><span class="w"> </span><span class="s">"x*5/9"</span><span class="p">,</span><span class="w"> </span><span class="s">"x*9/5"</span><span class="p">,</span><span class="w"> </span><span class="n">NC_</span><span class="p">(</span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="s">"degR,˚R,˚Ra"</span><span class="p">)},</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="w"> </span><span class="p">}</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="p">};</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">)</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">default_unit_manager</span><span class="p">;</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">default_unit_manager</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">unit_manager_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-105" name="line-105"></a> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"angle"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Angle"</span><span class="p">));</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"length"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Length"</span><span class="p">));</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"area"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Area"</span><span class="p">));</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"volume"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Volume"</span><span class="p">));</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"weight"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Weight"</span><span class="p">));</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"duration"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Duration"</span><span class="p">));</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"temperature"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Temperature"</span><span class="p">));</span> +<a id="line-113" name="line-113"></a> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">name</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">category</span><span class="p">)</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_get_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">category</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">unit_category_add_unit</span><span class="p">(</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="n">unit_new</span><span class="p">(</span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">name</span><span class="p">,</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">display_name</span><span class="p">),</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">g_dpgettext2</span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"unit-format"</span><span class="p">,</span><span class="w"> </span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">format</span><span class="p">),</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">from_function</span><span class="p">,</span><span class="w"> </span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">to_function</span><span class="p">,</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">g_dpgettext2</span><span class="p">(</span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="s">"unit-symbols"</span><span class="p">,</span><span class="w"> </span><span class="n">units</span><span class="p">[</span><span class="n">i</span><span class="p">].</span><span class="n">symbols</span><span class="p">)));</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="p">}</span> +<a id="line-123" name="line-123"></a> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_add_category</span><span class="p">(</span><span class="n">default_unit_manager</span><span class="p">,</span><span class="w"> </span><span class="s">"currency"</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Currency"</span><span class="p">));</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">currencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_copy</span><span class="p">(</span><span class="n">currency_manager_get_currencies</span><span class="p">(</span><span class="n">currency_manager_get_default</span><span class="p">()));</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">currencies</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_sort</span><span class="p">(</span><span class="n">currencies</span><span class="p">,</span><span class="w"> </span><span class="n">compare_currencies</span><span class="p">);</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currencies</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="p">{</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">Currency</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">;</span> +<a id="line-132" name="line-132"></a> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="cm">/* Translators: result of currency conversion, %s is the symbol, %%s is the placeholder for amount, i.e.: USD100 */</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">_</span><span class="p">(</span><span class="s">"%s%%s"</span><span class="p">),</span><span class="w"> </span><span class="n">currency_get_symbol</span><span class="p">(</span><span class="n">currency</span><span class="p">));</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_new</span><span class="p">(</span><span class="n">currency_get_name</span><span class="p">(</span><span class="n">currency</span><span class="p">),</span><span class="w"> </span><span class="n">currency_get_display_name</span><span class="p">(</span><span class="n">currency</span><span class="p">),</span><span class="w"> </span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">currency_get_name</span><span class="p">(</span><span class="n">currency</span><span class="p">));</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-137" name="line-137"></a> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="n">unit_category_add_unit</span><span class="p">(</span><span class="n">category</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">);</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">}</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="n">g_list_free</span><span class="p">(</span><span class="n">currencies</span><span class="p">);</span> +<a id="line-141" name="line-141"></a> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">default_unit_manager</span><span class="p">;</span> +<a id="line-143" name="line-143"></a><span class="p">}</span> +<a id="line-144" name="line-144"></a> +<a id="line-145" name="line-145"></a><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span> +<a id="line-146" name="line-146"></a><span class="nf">unit_manager_add_category</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">)</span> +<a id="line-147" name="line-147"></a><span class="p">{</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">;</span> +<a id="line-149" name="line-149"></a> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">display_name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">unit_manager_get_category</span><span class="p">(</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-154" name="line-154"></a> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">category</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_new</span><span class="p">(</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">display_name</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="p">,</span><span class="w"> </span><span class="n">category</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">category</span><span class="p">;</span> +<a id="line-159" name="line-159"></a><span class="p">}</span> +<a id="line-160" name="line-160"></a> +<a id="line-161" name="line-161"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-162" name="line-162"></a><span class="nf">unit_manager_get_categories</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-163" name="line-163"></a><span class="p">{</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="p">}</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span> +<a id="line-169" name="line-169"></a><span class="nf">unit_manager_get_category</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">category</span><span class="p">)</span> +<a id="line-170" name="line-170"></a><span class="p">{</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-172" name="line-172"></a> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">category</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-175" name="line-175"></a> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">unit_category_get_name</span><span class="p">(</span><span class="n">c</span><span class="p">),</span><span class="w"> </span><span class="n">category</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">c</span><span class="p">;</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">}</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-183" name="line-183"></a><span class="p">}</span> +<a id="line-184" name="line-184"></a> +<a id="line-185" name="line-185"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span> +<a id="line-186" name="line-186"></a><span class="nf">unit_manager_get_unit_by_name</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">)</span> +<a id="line-187" name="line-187"></a><span class="p">{</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-189" name="line-189"></a><span class="hll"><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">u</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'u' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'u' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-190" name="line-190"></a> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-193" name="line-193"></a> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">u</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_unit_by_name</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">u</span><span class="p">)</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">u</span><span class="p">;</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span> +<a id="line-200" name="line-200"></a> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-202" name="line-202"></a><span class="p">}</span> +<a id="line-203" name="line-203"></a> +<a id="line-204" name="line-204"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span> +<a id="line-205" name="line-205"></a><span class="nf">unit_manager_get_unit_by_symbol</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">)</span> +<a id="line-206" name="line-206"></a><span class="p">{</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-208" name="line-208"></a><span class="hll"><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">u</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'u' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'u' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-209" name="line-209"></a> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">symbol</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-212" name="line-212"></a> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">u</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_unit_by_symbol</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">symbol</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">u</span><span class="p">)</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">u</span><span class="p">;</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="p">}</span> +<a id="line-219" name="line-219"></a> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-221" name="line-221"></a><span class="p">}</span> +<a id="line-222" name="line-222"></a> +<a id="line-223" name="line-223"></a><span class="n">gboolean</span> +<a id="line-224" name="line-224"></a><span class="nf">unit_manager_convert_by_symbol</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">x_symbol</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">z_symbol</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-225" name="line-225"></a><span class="p">{</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">manager</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">x_symbol</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">z_symbol</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">z</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-233" name="line-233"></a> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">categories</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">UnitCategory</span><span class="w"> </span><span class="o">*</span><span class="n">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">z_units</span><span class="p">;</span> +<a id="line-237" name="line-237"></a> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">x_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_unit_by_symbol</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">x_symbol</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="n">z_units</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_category_get_unit_by_symbol</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">z_symbol</span><span class="p">);</span> +<a id="line-240" name="line-240"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">x_units</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">z_units</span><span class="w"> </span><span class="o">&&</span><span class="w"> </span><span class="n">unit_category_convert</span><span class="p">(</span><span class="n">c</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">x_units</span><span class="p">,</span><span class="w"> </span><span class="n">z_units</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">))</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">}</span> +<a id="line-243" name="line-243"></a> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-245" name="line-245"></a><span class="p">}</span> +<a id="line-246" name="line-246"></a> +<a id="line-247" name="line-247"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-248" name="line-248"></a><span class="nf">unit_manager_class_init</span><span class="p">(</span><span class="n">UnitManagerClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-249" name="line-249"></a><span class="p">{</span> +<a id="line-250" name="line-250"></a><span class="p">}</span> +<a id="line-251" name="line-251"></a> +<a id="line-252" name="line-252"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-253" name="line-253"></a><span class="nf">unit_manager_init</span><span class="p">(</span><span class="n">UnitManager</span><span class="w"> </span><span class="o">*</span><span class="n">manager</span><span class="p">)</span> +<a id="line-254" name="line-254"></a><span class="p">{</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">manager</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_manager_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">manager</span><span class="p">);</span> +<a id="line-256" name="line-256"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/5.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/5.html new file mode 100644 index 0000000..d3203c3 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/5.html @@ -0,0 +1,923 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/financial.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> financial.c</p> +<a href="5.html#line-12"> missingIncludeSystem 12</a><a href="5.html#line-18"> constParameterPointer 18</a><a href="5.html#line-18"> constParameterPointer 18</a><a href="5.html#line-18"> constParameterPointer 18</a><a href="5.html#line-45"> constParameterPointer 45</a><a href="5.html#line-45"> constParameterPointer 45</a><a href="5.html#line-45"> constParameterPointer 45</a><a href="5.html#line-88"> constParameterPointer 88</a><a href="5.html#line-88"> constParameterPointer 88</a><a href="5.html#line-88"> constParameterPointer 88</a><a href="5.html#line-116"> constParameterPointer 116</a><a href="5.html#line-116"> constParameterPointer 116</a><a href="5.html#line-137"> constParameterPointer 137</a><a href="5.html#line-137"> constParameterPointer 137</a><a href="5.html#line-137"> constParameterPointer 137</a><a href="5.html#line-167"> constParameterPointer 167</a><a href="5.html#line-167"> constParameterPointer 167</a><a href="5.html#line-167"> constParameterPointer 167</a><a href="5.html#line-197"> constParameterPointer 197</a><a href="5.html#line-197"> constParameterPointer 197</a><a href="5.html#line-197"> constParameterPointer 197</a><a href="5.html#line-225"> constParameterPointer 225</a><a href="5.html#line-225"> constParameterPointer 225</a><a href="5.html#line-225"> constParameterPointer 225</a><a href="5.html#line-242"> constParameterPointer 242</a><a href="5.html#line-242"> constParameterPointer 242</a><a href="5.html#line-242"> constParameterPointer 242</a><a href="5.html#line-242"> constParameterPointer 242</a><a href="5.html#line-276"> constParameterPointer 276</a><a href="5.html#line-276"> constParameterPointer 276</a><a href="5.html#line-276"> constParameterPointer 276</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib/gi18n.h></span><span class="error2"><--- Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"financial.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-18" name="line-18"></a><span class="hll"><span class="nf">calc_ctrm</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">fv</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pv</span><span class="p">)</span><span class="error2"><--- Parameter 'fv' can be declared as pointer to const</span><span class="error2"><--- Parameter 'pv' can be declared as pointer to const</span><span class="error2"><--- Parameter 'pint' can be declared as pointer to const</span> +</span><a id="line-19" name="line-19"></a><span class="p">{</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="cm">/* Cterm - pint (periodic interest rate).</span> +<a id="line-22" name="line-22"></a><span class="cm"> * fv (future value).</span> +<a id="line-23" name="line-23"></a><span class="cm"> * pv (present value).</span> +<a id="line-24" name="line-24"></a><span class="cm"> *</span> +<a id="line-25" name="line-25"></a><span class="cm"> * RESULT = log(fv / pv) / log(1 + pint)</span> +<a id="line-26" name="line-26"></a><span class="cm"> */</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">fv</span><span class="p">,</span><span class="w"> </span><span class="n">pv</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-42" name="line-42"></a><span class="p">}</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-45" name="line-45"></a><span class="hll"><span class="nf">calc_ddb</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">period</span><span class="p">)</span><span class="error2"><--- Parameter 'period' can be declared as pointer to const</span><span class="error2"><--- Parameter 'cost' can be declared as pointer to const</span><span class="error2"><--- Parameter 'life' can be declared as pointer to const</span> +</span><a id="line-46" name="line-46"></a><span class="p">{</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="cm">/* Ddb - cost (amount paid for asset).</span> +<a id="line-49" name="line-49"></a><span class="cm"> * life (useful life of the asset).</span> +<a id="line-50" name="line-50"></a><span class="cm"> * period (time period for depreciation allowance).</span> +<a id="line-51" name="line-51"></a><span class="cm"> *</span> +<a id="line-52" name="line-52"></a><span class="cm"> * bv = 0.0;</span> +<a id="line-53" name="line-53"></a><span class="cm"> * for (i = 0; i < life; i++)</span> +<a id="line-54" name="line-54"></a><span class="cm"> * {</span> +<a id="line-55" name="line-55"></a><span class="cm"> * VAL = ((cost - bv) * 2) / life</span> +<a id="line-56" name="line-56"></a><span class="cm"> * bv += VAL</span> +<a id="line-57" name="line-57"></a><span class="cm"> * }</span> +<a id="line-58" name="line-58"></a><span class="cm"> * RESULT = VAL</span> +<a id="line-59" name="line-59"></a><span class="cm"> *</span> +<a id="line-60" name="line-60"></a><span class="cm"> */</span> +<a id="line-61" name="line-61"></a> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">len</span><span class="p">;</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MPbv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MPbv</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">len</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_to_integer</span><span class="p">(</span><span class="n">period</span><span class="p">);</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">long</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">len</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-70" name="line-70"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MPbv</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="o">&</span><span class="n">MPbv</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">mp_add</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MPbv</span><span class="p">);</span><span class="w"> </span><span class="cm">/* TODO: why result is MPbv, for next loop? */</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="p">}</span> +<a id="line-76" name="line-76"></a> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">len</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="n">math_equation_set_status</span><span class="w"> </span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">_</span><span class="p">(</span><span class="s">"Error: the number of periods must be positive"</span><span class="p">));</span> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-80" name="line-80"></a><span class="w"> </span><span class="p">}</span> +<a id="line-81" name="line-81"></a> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MPbv</span><span class="p">);</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-84" name="line-84"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="p">}</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-88" name="line-88"></a><span class="hll"><span class="nf">calc_fv</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pmt</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">)</span><span class="error2"><--- Parameter 'pint' can be declared as pointer to const</span><span class="error2"><--- Parameter 'n' can be declared as pointer to const</span><span class="error2"><--- Parameter 'pmt' can be declared as pointer to const</span> +</span><a id="line-89" name="line-89"></a><span class="p">{</span> +<a id="line-90" name="line-90"></a> +<a id="line-91" name="line-91"></a><span class="cm">/* Fv - pmt (periodic payment).</span> +<a id="line-92" name="line-92"></a><span class="cm"> * pint (periodic interest rate).</span> +<a id="line-93" name="line-93"></a><span class="cm"> * n (number of periods).</span> +<a id="line-94" name="line-94"></a><span class="cm"> *</span> +<a id="line-95" name="line-95"></a><span class="cm"> * RESULT = pmt * (pow(1 + pint, n) - 1) / pint</span> +<a id="line-96" name="line-96"></a><span class="cm"> */</span> +<a id="line-97" name="line-97"></a> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-102" name="line-102"></a> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="n">mp_xpowy</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">pmt</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="p">}</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-116" name="line-116"></a><span class="hll"><span class="nf">calc_gpm</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">margin</span><span class="p">)</span><span class="error2"><--- Parameter 'margin' can be declared as pointer to const</span><span class="error2"><--- Parameter 'cost' can be declared as pointer to const</span> +</span><a id="line-117" name="line-117"></a><span class="p">{</span> +<a id="line-118" name="line-118"></a> +<a id="line-119" name="line-119"></a><span class="cm">/* Gpm - cost (cost of sale).</span> +<a id="line-120" name="line-120"></a><span class="cm"> * margin (gross profit margin.</span> +<a id="line-121" name="line-121"></a><span class="cm"> *</span> +<a id="line-122" name="line-122"></a><span class="cm"> * RESULT = cost / (1 - margin)</span> +<a id="line-123" name="line-123"></a><span class="cm"> */</span> +<a id="line-124" name="line-124"></a> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-126" name="line-126"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="n">margin</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-131" name="line-131"></a> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="p">}</span> +<a id="line-135" name="line-135"></a> +<a id="line-136" name="line-136"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-137" name="line-137"></a><span class="hll"><span class="nf">calc_pmt</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">prin</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">)</span><span class="error2"><--- Parameter 'pint' can be declared as pointer to const</span><span class="error2"><--- Parameter 'n' can be declared as pointer to const</span><span class="error2"><--- Parameter 'prin' can be declared as pointer to const</span> +</span><a id="line-138" name="line-138"></a><span class="p">{</span> +<a id="line-139" name="line-139"></a> +<a id="line-140" name="line-140"></a><span class="cm">/* Pmt - prin (principal).</span> +<a id="line-141" name="line-141"></a><span class="cm"> * pint (periodic interest rate).</span> +<a id="line-142" name="line-142"></a><span class="cm"> * n (term).</span> +<a id="line-143" name="line-143"></a><span class="cm"> *</span> +<a id="line-144" name="line-144"></a><span class="cm"> * RESULT = prin * (pint / (1 - pow(pint + 1, -1 * n)))</span> +<a id="line-145" name="line-145"></a><span class="cm"> */</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-151" name="line-151"></a> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">mp_xpowy</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">prin</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-159" name="line-159"></a> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="p">}</span> +<a id="line-165" name="line-165"></a> +<a id="line-166" name="line-166"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-167" name="line-167"></a><span class="hll"><span class="nf">calc_pv</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pmt</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">)</span><span class="error2"><--- Parameter 'pint' can be declared as pointer to const</span><span class="error2"><--- Parameter 'n' can be declared as pointer to const</span><span class="error2"><--- Parameter 'pmt' can be declared as pointer to const</span> +</span><a id="line-168" name="line-168"></a><span class="p">{</span> +<a id="line-169" name="line-169"></a> +<a id="line-170" name="line-170"></a><span class="cm">/* Pv - pmt (periodic payment).</span> +<a id="line-171" name="line-171"></a><span class="cm"> * pint (periodic interest rate).</span> +<a id="line-172" name="line-172"></a><span class="cm"> * n (term).</span> +<a id="line-173" name="line-173"></a><span class="cm"> *</span> +<a id="line-174" name="line-174"></a><span class="cm"> * RESULT = pmt * (1 - pow(1 + pint, -1 * n)) / pint</span> +<a id="line-175" name="line-175"></a><span class="cm"> */</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-181" name="line-181"></a> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="n">mp_xpowy</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="n">mp_multiply_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">pmt</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-189" name="line-189"></a> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-194" name="line-194"></a><span class="p">}</span> +<a id="line-195" name="line-195"></a> +<a id="line-196" name="line-196"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-197" name="line-197"></a><span class="hll"><span class="nf">calc_rate</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">fv</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pv</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">n</span><span class="p">)</span><span class="error2"><--- Parameter 'fv' can be declared as pointer to const</span><span class="error2"><--- Parameter 'pv' can be declared as pointer to const</span><span class="error2"><--- Parameter 'n' can be declared as pointer to const</span> +</span><a id="line-198" name="line-198"></a><span class="p">{</span> +<a id="line-199" name="line-199"></a> +<a id="line-200" name="line-200"></a><span class="cm">/* Rate - fv (future value).</span> +<a id="line-201" name="line-201"></a><span class="cm"> * pv (present value).</span> +<a id="line-202" name="line-202"></a><span class="cm"> * n (term).</span> +<a id="line-203" name="line-203"></a><span class="cm"> *</span> +<a id="line-204" name="line-204"></a><span class="cm"> * RESULT = pow(fv / pv, 1 / n) - 1</span> +<a id="line-205" name="line-205"></a><span class="cm"> */</span> +<a id="line-206" name="line-206"></a> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-211" name="line-211"></a> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">fv</span><span class="p">,</span><span class="w"> </span><span class="n">pv</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">n</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="n">mp_xpowy</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="mi">-1</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-217" name="line-217"></a> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="p">}</span> +<a id="line-223" name="line-223"></a> +<a id="line-224" name="line-224"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-225" name="line-225"></a><span class="hll"><span class="nf">calc_sln</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">salvage</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">life</span><span class="p">)</span><span class="error2"><--- Parameter 'cost' can be declared as pointer to const</span><span class="error2"><--- Parameter 'salvage' can be declared as pointer to const</span><span class="error2"><--- Parameter 'life' can be declared as pointer to const</span> +</span><a id="line-226" name="line-226"></a><span class="p">{</span> +<a id="line-227" name="line-227"></a> +<a id="line-228" name="line-228"></a><span class="cm">/* Sln - cost (cost of the asset).</span> +<a id="line-229" name="line-229"></a><span class="cm"> * salvage (salvage value of the asset).</span> +<a id="line-230" name="line-230"></a><span class="cm"> * life (useful life of the asset).</span> +<a id="line-231" name="line-231"></a><span class="cm"> *</span> +<a id="line-232" name="line-232"></a><span class="cm"> * RESULT = (cost - salvage) / life</span> +<a id="line-233" name="line-233"></a><span class="cm"> */</span> +<a id="line-234" name="line-234"></a> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="n">salvage</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-239" name="line-239"></a><span class="p">}</span> +<a id="line-240" name="line-240"></a> +<a id="line-241" name="line-241"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-242" name="line-242"></a><span class="hll"><span class="nf">calc_syd</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">salvage</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">period</span><span class="p">)</span><span class="error2"><--- Parameter 'life' can be declared as pointer to const</span><span class="error2"><--- Parameter 'period' can be declared as pointer to const</span><span class="error2"><--- Parameter 'cost' can be declared as pointer to const</span><span class="error2"><--- Parameter 'salvage' can be declared as pointer to const</span> +</span><a id="line-243" name="line-243"></a><span class="p">{</span> +<a id="line-244" name="line-244"></a> +<a id="line-245" name="line-245"></a><span class="cm">/* Syd - cost (cost of the asset).</span> +<a id="line-246" name="line-246"></a><span class="cm"> * salvage (salvage value of the asset).</span> +<a id="line-247" name="line-247"></a><span class="cm"> * life (useful life of the asset).</span> +<a id="line-248" name="line-248"></a><span class="cm"> * period (period for which depreciation is computed).</span> +<a id="line-249" name="line-249"></a><span class="cm"> *</span> +<a id="line-250" name="line-250"></a><span class="cm"> * RESULT = (cost - salvage) * (life - period + 1) /</span> +<a id="line-251" name="line-251"></a><span class="cm"> * (life * (life + 1)) / 2</span> +<a id="line-252" name="line-252"></a><span class="cm"> */</span> +<a id="line-253" name="line-253"></a> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-258" name="line-258"></a> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="n">period</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">life</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="n">mp_set_from_integer</span><span class="p">(</span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="n">mp_subtract</span><span class="p">(</span><span class="n">cost</span><span class="p">,</span><span class="w"> </span><span class="n">salvage</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-268" name="line-268"></a> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-273" name="line-273"></a><span class="p">}</span> +<a id="line-274" name="line-274"></a> +<a id="line-275" name="line-275"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-276" name="line-276"></a><span class="hll"><span class="nf">calc_term</span><span class="p">(</span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">t</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pmt</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">fv</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">pint</span><span class="p">)</span><span class="error2"><--- Parameter 'pint' can be declared as pointer to const</span><span class="error2"><--- Parameter 'fv' can be declared as pointer to const</span><span class="error2"><--- Parameter 'pmt' can be declared as pointer to const</span> +</span><a id="line-277" name="line-277"></a><span class="p">{</span> +<a id="line-278" name="line-278"></a> +<a id="line-279" name="line-279"></a><span class="cm">/* Term - pmt (periodic payment).</span> +<a id="line-280" name="line-280"></a><span class="cm"> * fv (future value).</span> +<a id="line-281" name="line-281"></a><span class="cm"> * pint (periodic interest rate).</span> +<a id="line-282" name="line-282"></a><span class="cm"> *</span> +<a id="line-283" name="line-283"></a><span class="cm"> * RESULT = log(1 + (fv * pint / pmt)) / log(1 + pint)</span> +<a id="line-284" name="line-284"></a><span class="cm"> */</span> +<a id="line-285" name="line-285"></a> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP1</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP2</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP3</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">MP4</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-290" name="line-290"></a> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">fv</span><span class="p">,</span><span class="w"> </span><span class="n">pint</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="n">pmt</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="n">mp_add_integer</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">,</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="n">mp_ln</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">MP2</span><span class="p">,</span><span class="w"> </span><span class="n">t</span><span class="p">);</span> +<a id="line-298" name="line-298"></a> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP1</span><span class="p">);</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP2</span><span class="p">);</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP3</span><span class="p">);</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">MP4</span><span class="p">);</span> +<a id="line-303" name="line-303"></a><span class="p">}</span> +<a id="line-304" name="line-304"></a> +<a id="line-305" name="line-305"></a><span class="kt">void</span> +<a id="line-306" name="line-306"></a><span class="nf">do_finc_expression</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">function</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">arg3</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">arg4</span><span class="p">)</span> +<a id="line-307" name="line-307"></a><span class="p">{</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">result</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="p">(</span><span class="n">function</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_CTRM_DIALOG</span><span class="p">:</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="n">calc_ctrm</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_DDB_DIALOG</span><span class="p">:</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">calc_ddb</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_FV_DIALOG</span><span class="p">:</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="n">calc_fv</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_GPM_DIALOG</span><span class="p">:</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="n">calc_gpm</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">);</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_PMT_DIALOG</span><span class="p">:</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="n">calc_pmt</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-324" name="line-324"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_PV_DIALOG</span><span class="p">:</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="n">calc_pv</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_RATE_DIALOG</span><span class="p">:</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="n">calc_rate</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_SLN_DIALOG</span><span class="p">:</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="n">calc_sln</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_SYD_DIALOG</span><span class="p">:</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="n">calc_syd</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">,</span><span class="w"> </span><span class="n">arg4</span><span class="p">);</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="no">FINC_TERM_DIALOG</span><span class="p">:</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="n">calc_term</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">,</span><span class="w"> </span><span class="n">arg1</span><span class="p">,</span><span class="w"> </span><span class="n">arg2</span><span class="p">,</span><span class="w"> </span><span class="n">arg3</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="p">}</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="n">math_equation_set_number</span><span class="p">(</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">result</span><span class="p">);</span> +<a id="line-343" name="line-343"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/50.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/50.html new file mode 100644 index 0000000..b313303 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/50.html @@ -0,0 +1,633 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/unit.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> unit.c</p> +<a href="50.html#line-12"> missingIncludeSystem 12</a><a href="50.html#line-80"> constVariablePointer 80</a><a href="50.html#line-104"> constVariablePointer 104</a><a href="50.html#line-173"> constParameterPointer 173</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell.</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"unit.h"</span> +<a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-16" name="line-16"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-17" name="line-17"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"currency-manager.h"</span><span class="c1"> // FIXME: Move out of here</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="k">struct</span><span class="w"> </span><span class="nc">UnitPrivate</span> +<a id="line-20" name="line-20"></a><span class="p">{</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">;</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">;</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">;</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">symbols</span><span class="p">;</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">from_function</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">to_function</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="n">serializer</span><span class="p">;</span> +<a id="line-28" name="line-28"></a><span class="p">};</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="n">G_DEFINE_TYPE_WITH_PRIVATE</span><span class="w"> </span><span class="p">(</span><span class="n">Unit</span><span class="p">,</span><span class="w"> </span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">G_TYPE_OBJECT</span><span class="p">);</span> +<a id="line-31" name="line-31"></a> +<a id="line-32" name="line-32"></a><span class="n">Unit</span><span class="w"> </span><span class="o">*</span> +<a id="line-33" name="line-33"></a><span class="nf">unit_new</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span> +<a id="line-34" name="line-34"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">display_name</span><span class="p">,</span> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">format</span><span class="p">,</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">from_function</span><span class="p">,</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">to_function</span><span class="p">,</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbols</span><span class="p">)</span> +<a id="line-39" name="line-39"></a><span class="p">{</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_object_new</span><span class="p">(</span><span class="n">unit_get_type</span><span class="p">(),</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="n">symbol_names</span><span class="p">;</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="p">;</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">display_name</span><span class="p">);</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">format</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">format</span><span class="p">);</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_function</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">from_function</span><span class="p">);</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_function</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup</span><span class="p">(</span><span class="n">to_function</span><span class="p">);</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">symbol_names</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strsplit</span><span class="p">(</span><span class="n">symbols</span><span class="p">,</span><span class="w"> </span><span class="s">","</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">symbol_names</span><span class="p">[</span><span class="n">i</span><span class="p">];</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">symbols</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_list_append</span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">symbols</span><span class="p">,</span><span class="w"> </span><span class="n">symbol_names</span><span class="p">[</span><span class="n">i</span><span class="p">]);</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">symbol_names</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="p">}</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-58" name="line-58"></a><span class="nf">unit_get_name</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-59" name="line-59"></a><span class="p">{</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="p">;</span> +<a id="line-62" name="line-62"></a><span class="p">}</span> +<a id="line-63" name="line-63"></a> +<a id="line-64" name="line-64"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-65" name="line-65"></a><span class="nf">unit_get_display_name</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-66" name="line-66"></a><span class="p">{</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">display_name</span><span class="p">;</span> +<a id="line-69" name="line-69"></a><span class="p">}</span> +<a id="line-70" name="line-70"></a> +<a id="line-71" name="line-71"></a><span class="n">gboolean</span> +<a id="line-72" name="line-72"></a><span class="nf">unit_matches_symbol</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">symbol</span><span class="p">)</span> +<a id="line-73" name="line-73"></a><span class="p">{</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span><span class="n">iter</span><span class="p">;</span> +<a id="line-75" name="line-75"></a> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">symbol</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-78" name="line-78"></a> +<a id="line-79" name="line-79"></a><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">symbols</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="p">;</span><span class="w"> </span><span class="n">iter</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">next</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-80" name="line-80"></a><span class="hll"><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">iter</span><span class="o">-></span><span class="n">data</span><span class="p">;</span><span class="error2"><--- Variable 's' can be declared as pointer to const</span> +</span><a id="line-81" name="line-81"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">strcmp</span><span class="p">(</span><span class="n">s</span><span class="p">,</span><span class="w"> </span><span class="n">symbol</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-82" name="line-82"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-83" name="line-83"></a><span class="w"> </span><span class="p">}</span> +<a id="line-84" name="line-84"></a> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="p">}</span> +<a id="line-87" name="line-87"></a> +<a id="line-88" name="line-88"></a><span class="k">const</span><span class="w"> </span><span class="n">GList</span><span class="w"> </span><span class="o">*</span> +<a id="line-89" name="line-89"></a><span class="nf">unit_get_symbols</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-90" name="line-90"></a><span class="p">{</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">symbols</span><span class="p">;</span> +<a id="line-93" name="line-93"></a><span class="p">}</span> +<a id="line-94" name="line-94"></a> +<a id="line-95" name="line-95"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-96" name="line-96"></a><span class="nf">variable_is_defined</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-97" name="line-97"></a><span class="p">{</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-99" name="line-99"></a><span class="p">}</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="k">static</span><span class="w"> </span><span class="kt">int</span> +<a id="line-102" name="line-102"></a><span class="nf">get_variable</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="n">data</span><span class="p">)</span> +<a id="line-103" name="line-103"></a><span class="p">{</span> +<a id="line-104" name="line-104"></a><span class="hll"><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">data</span><span class="p">;</span><span class="error2"><--- Variable 'x' can be declared as pointer to const</span> +</span><a id="line-105" name="line-105"></a><span class="w"> </span><span class="n">mp_set_from_mp</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-107" name="line-107"></a><span class="p">}</span> +<a id="line-108" name="line-108"></a> +<a id="line-109" name="line-109"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-110" name="line-110"></a><span class="nf">solve_function</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">function</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-111" name="line-111"></a><span class="p">{</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="n">MPEquationOptions</span><span class="w"> </span><span class="n">options</span><span class="p">;</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-114" name="line-114"></a> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="n">memset</span><span class="p">(</span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">options</span><span class="p">));</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">base</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">10</span><span class="p">;</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">wordlen</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">32</span><span class="p">;</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">variable_is_defined</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">variable_is_defined</span><span class="p">;</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">get_variable</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">get_variable</span><span class="p">;</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="n">options</span><span class="p">.</span><span class="n">callback_data</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="kt">void</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="n">x</span><span class="p">;</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_equation_parse</span><span class="p">(</span><span class="n">function</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">options</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">,</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">ret</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="n">g_warning</span><span class="p">(</span><span class="s">"Failed to convert value: %s"</span><span class="p">,</span><span class="w"> </span><span class="n">function</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-125" name="line-125"></a><span class="w"> </span><span class="p">}</span> +<a id="line-126" name="line-126"></a> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-128" name="line-128"></a><span class="p">}</span> +<a id="line-129" name="line-129"></a> +<a id="line-130" name="line-130"></a><span class="n">gboolean</span> +<a id="line-131" name="line-131"></a><span class="nf">unit_convert_from</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-132" name="line-132"></a><span class="p">{</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">z</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-136" name="line-136"></a> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_function</span><span class="p">)</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">solve_function</span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_function</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="c1">// FIXME: Hack to make currency work</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">;</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_manager_get_value</span><span class="p">(</span><span class="n">currency_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">r</span><span class="p">)</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="n">mp_divide</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-146" name="line-146"></a> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="p">}</span> +<a id="line-149" name="line-149"></a><span class="p">}</span> +<a id="line-150" name="line-150"></a> +<a id="line-151" name="line-151"></a><span class="n">gboolean</span> +<a id="line-152" name="line-152"></a><span class="nf">unit_convert_to</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">)</span> +<a id="line-153" name="line-153"></a><span class="p">{</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-157" name="line-157"></a> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">from_function</span><span class="p">)</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">solve_function</span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">to_function</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="c1">// FIXME: Hack to make currency work</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">r</span><span class="p">;</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">currency_manager_get_value</span><span class="p">(</span><span class="n">currency_manager_get_default</span><span class="p">(),</span><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">name</span><span class="p">);</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="o">!</span><span class="n">r</span><span class="p">)</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">mp_multiply</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">,</span><span class="w"> </span><span class="n">z</span><span class="p">);</span> +<a id="line-167" name="line-167"></a> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="p">}</span> +<a id="line-170" name="line-170"></a><span class="p">}</span> +<a id="line-171" name="line-171"></a> +<a id="line-172" name="line-172"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span> +<a id="line-173" name="line-173"></a><span class="hll"><span class="nf">unit_format</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">)</span><span class="error2"><--- Parameter 'x' can be declared as pointer to const</span> +</span><a id="line-174" name="line-174"></a><span class="p">{</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">number_text</span><span class="p">,</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">;</span> +<a id="line-176" name="line-176"></a> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">unit</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="n">g_return_val_if_fail</span><span class="p">(</span><span class="n">x</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">,</span><span class="w"> </span><span class="n">FALSE</span><span class="p">);</span> +<a id="line-179" name="line-179"></a> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="n">number_text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_to_string</span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="n">x</span><span class="p">);</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_strdup_printf</span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">format</span><span class="p">,</span><span class="w"> </span><span class="n">number_text</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="n">g_free</span><span class="p">(</span><span class="n">number_text</span><span class="p">);</span> +<a id="line-183" name="line-183"></a> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">text</span><span class="p">;</span> +<a id="line-185" name="line-185"></a><span class="p">}</span> +<a id="line-186" name="line-186"></a> +<a id="line-187" name="line-187"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-188" name="line-188"></a><span class="nf">unit_class_init</span><span class="p">(</span><span class="n">UnitClass</span><span class="w"> </span><span class="o">*</span><span class="n">klass</span><span class="p">)</span> +<a id="line-189" name="line-189"></a><span class="p">{</span> +<a id="line-190" name="line-190"></a><span class="p">}</span> +<a id="line-191" name="line-191"></a> +<a id="line-192" name="line-192"></a><span class="k">static</span><span class="w"> </span><span class="kt">void</span> +<a id="line-193" name="line-193"></a><span class="nf">unit_init</span><span class="p">(</span><span class="n">Unit</span><span class="w"> </span><span class="o">*</span><span class="n">unit</span><span class="p">)</span> +<a id="line-194" name="line-194"></a><span class="p">{</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">unit_get_instance_private</span><span class="w"> </span><span class="p">(</span><span class="n">unit</span><span class="p">);</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_serializer_new</span><span class="p">(</span><span class="n">MP_DISPLAY_FORMAT_AUTOMATIC</span><span class="p">,</span><span class="w"> </span><span class="mi">10</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">);</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">mp_serializer_set_leading_digits</span><span class="p">(</span><span class="n">unit</span><span class="o">-></span><span class="n">priv</span><span class="o">-></span><span class="n">serializer</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/6.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/6.html new file mode 100644 index 0000000..b6a2d97 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/6.html @@ -0,0 +1,493 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-equation.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-equation.h</p> +<a href="6.html#line-15"> missingIncludeSystem 15</a><a href="6.html#line-16"> missingIncludeSystem 16</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.</span> +<a id="line-3" name="line-3"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-4" name="line-4"></a><span class="cm"> *</span> +<a id="line-5" name="line-5"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-6" name="line-6"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-7" name="line-7"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-8" name="line-8"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-9" name="line-9"></a><span class="cm"> * license.</span> +<a id="line-10" name="line-10"></a><span class="cm"> */</span> +<a id="line-11" name="line-11"></a> +<a id="line-12" name="line-12"></a><span class="cp">#ifndef MATH_EQUATION_H</span> +<a id="line-13" name="line-13"></a><span class="cp">#define MATH_EQUATION_H</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-16" name="line-16"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><gtk/gtk.h></span><span class="error2"><--- Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-17" name="line-17"></a> +<a id="line-18" name="line-18"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-19" name="line-19"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"math-variables.h"</span> +<a id="line-20" name="line-20"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-serializer.h"</span> +<a id="line-21" name="line-21"></a> +<a id="line-22" name="line-22"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-23" name="line-23"></a> +<a id="line-24" name="line-24"></a><span class="cp">#define MATH_TYPE_EQUATION (math_equation_get_type ())</span> +<a id="line-25" name="line-25"></a><span class="cp">#define MATH_EQUATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_equation_get_type(), MathEquation))</span> +<a id="line-26" name="line-26"></a><span class="cp">#define MATH_EQUATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATH_TYPE_EQUATION, MathEquationClass))</span> +<a id="line-27" name="line-27"></a> +<a id="line-28" name="line-28"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathEquationPrivate</span><span class="w"> </span><span class="n">MathEquationPrivate</span><span class="p">;</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-31" name="line-31"></a><span class="p">{</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">GtkTextBuffer</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">MathEquationPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-34" name="line-34"></a><span class="p">}</span><span class="w"> </span><span class="n">MathEquation</span><span class="p">;</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-37" name="line-37"></a><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">GtkTextBufferClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-39" name="line-39"></a><span class="p">}</span><span class="w"> </span><span class="n">MathEquationClass</span><span class="p">;</span> +<a id="line-40" name="line-40"></a> +<a id="line-41" name="line-41"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span><span class="w"> </span><span class="p">{</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">NORMAL</span><span class="p">,</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">SUPERSCRIPT</span><span class="p">,</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">SUBSCRIPT</span> +<a id="line-45" name="line-45"></a><span class="p">}</span><span class="w"> </span><span class="n">NumberMode</span><span class="p">;</span> +<a id="line-46" name="line-46"></a> +<a id="line-47" name="line-47"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_equation_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-48" name="line-48"></a><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_new</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-49" name="line-49"></a> +<a id="line-50" name="line-50"></a><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_variables</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-51" name="line-51"></a> +<a id="line-52" name="line-52"></a><span class="n">gunichar</span><span class="w"> </span><span class="nf">math_equation_get_digit_text</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">digit</span><span class="p">);</span> +<a id="line-53" name="line-53"></a> +<a id="line-54" name="line-54"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_status</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">status</span><span class="p">);</span> +<a id="line-55" name="line-55"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_status</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-56" name="line-56"></a> +<a id="line-57" name="line-57"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_equation_is_empty</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-58" name="line-58"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_equation_is_result</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-59" name="line-59"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_display</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-60" name="line-60"></a><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_equation</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_equation_get_number</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">z</span><span class="p">);</span> +<a id="line-62" name="line-62"></a> +<a id="line-63" name="line-63"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_number_mode</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">NumberMode</span><span class="w"> </span><span class="n">mode</span><span class="p">);</span> +<a id="line-64" name="line-64"></a><span class="n">NumberMode</span><span class="w"> </span><span class="nf">math_equation_get_number_mode</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-65" name="line-65"></a> +<a id="line-66" name="line-66"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_accuracy</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">accuracy</span><span class="p">);</span> +<a id="line-67" name="line-67"></a><span class="n">gint</span><span class="w"> </span><span class="nf">math_equation_get_accuracy</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-68" name="line-68"></a> +<a id="line-69" name="line-69"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_show_thousands_separators</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-70" name="line-70"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_equation_get_show_thousands_separators</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_show_trailing_zeroes</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gboolean</span><span class="w"> </span><span class="n">visible</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_equation_get_show_trailing_zeroes</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_number_format</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="n">format</span><span class="p">);</span> +<a id="line-76" name="line-76"></a><span class="n">MpDisplayFormat</span><span class="w"> </span><span class="nf">math_equation_get_number_format</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_base</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">base</span><span class="p">);</span> +<a id="line-79" name="line-79"></a><span class="n">gint</span><span class="w"> </span><span class="nf">math_equation_get_base</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_word_size</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">word_size</span><span class="p">);</span> +<a id="line-82" name="line-82"></a><span class="n">gint</span><span class="w"> </span><span class="nf">math_equation_get_word_size</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_angle_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">MPAngleUnit</span><span class="w"> </span><span class="n">angle_unit</span><span class="p">);</span> +<a id="line-85" name="line-85"></a><span class="n">MPAngleUnit</span><span class="w"> </span><span class="nf">math_equation_get_angle_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_source_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-88" name="line-88"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_source_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_target_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">currency</span><span class="p">);</span> +<a id="line-91" name="line-91"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_target_currency</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_source_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">units</span><span class="p">);</span> +<a id="line-94" name="line-94"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_source_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-95" name="line-95"></a> +<a id="line-96" name="line-96"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_target_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">units</span><span class="p">);</span> +<a id="line-97" name="line-97"></a><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_target_units</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-98" name="line-98"></a> +<a id="line-99" name="line-99"></a><span class="n">gboolean</span><span class="w"> </span><span class="nf">math_equation_in_solve</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-100" name="line-100"></a> +<a id="line-101" name="line-101"></a><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_answer</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-102" name="line-102"></a><span class="n">MpSerializer</span><span class="w"> </span><span class="o">*</span><span class="nf">math_equation_get_serializer</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-103" name="line-103"></a> +<a id="line-104" name="line-104"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_copy</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-105" name="line-105"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_paste</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-106" name="line-106"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_undo</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-107" name="line-107"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_redo</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-108" name="line-108"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_store</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-109" name="line-109"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_recall</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-110" name="line-110"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">);</span> +<a id="line-111" name="line-111"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_set_number</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-112" name="line-112"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_insert</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="w"> </span><span class="o">*</span><span class="n">text</span><span class="p">);</span> +<a id="line-113" name="line-113"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_insert_digit</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">digit</span><span class="p">);</span> +<a id="line-114" name="line-114"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_insert_numeric_point</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-115" name="line-115"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_insert_number</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">x</span><span class="p">);</span> +<a id="line-116" name="line-116"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_insert_subtract</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-117" name="line-117"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_insert_exponent</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-118" name="line-118"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_solve</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-119" name="line-119"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_factorize</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-120" name="line-120"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_delete</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_backspace</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-122" name="line-122"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_clear</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">);</span> +<a id="line-123" name="line-123"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_shift</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">gint</span><span class="w"> </span><span class="n">count</span><span class="p">);</span> +<a id="line-124" name="line-124"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_equation_toggle_bit</span><span class="p">(</span><span class="n">MathEquation</span><span class="w"> </span><span class="o">*</span><span class="n">equation</span><span class="p">,</span><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">bit</span><span class="p">);</span> +<a id="line-125" name="line-125"></a> +<a id="line-126" name="line-126"></a><span class="n">G_END_DECLS</span> +<a id="line-127" name="line-127"></a> +<a id="line-128" name="line-128"></a><span class="cp">#endif </span><span class="cm">/* MATH_EQUATION_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/7.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/7.html new file mode 100644 index 0000000..57d23d6 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/7.html @@ -0,0 +1,333 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/math-variables.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> math-variables.h</p> +<a href="7.html#line-14"> missingIncludeSystem 14</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cm">/*</span> +<a id="line-2" name="line-2"></a><span class="cm"> * Copyright (C) 2008-2011 Robert Ancell</span> +<a id="line-3" name="line-3"></a><span class="cm"> *</span> +<a id="line-4" name="line-4"></a><span class="cm"> * This program is free software: you can redistribute it and/or modify it under</span> +<a id="line-5" name="line-5"></a><span class="cm"> * the terms of the GNU General Public License as published by the Free Software</span> +<a id="line-6" name="line-6"></a><span class="cm"> * Foundation, either version 2 of the License, or (at your option) any later</span> +<a id="line-7" name="line-7"></a><span class="cm"> * version. See http://www.gnu.org/copyleft/gpl.html the full text of the</span> +<a id="line-8" name="line-8"></a><span class="cm"> * license.</span> +<a id="line-9" name="line-9"></a><span class="cm"> */</span> +<a id="line-10" name="line-10"></a> +<a id="line-11" name="line-11"></a><span class="cp">#ifndef MATH_VARIABLES_H</span> +<a id="line-12" name="line-12"></a><span class="cp">#define MATH_VARIABLES_H</span> +<a id="line-13" name="line-13"></a> +<a id="line-14" name="line-14"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib-object.h></span><span class="error2"><--- Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-15" name="line-15"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp.h"</span> +<a id="line-16" name="line-16"></a> +<a id="line-17" name="line-17"></a><span class="n">G_BEGIN_DECLS</span> +<a id="line-18" name="line-18"></a> +<a id="line-19" name="line-19"></a><span class="cp">#define MATH_VARIABLES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), math_equation_get_type(), MathVariables))</span> +<a id="line-20" name="line-20"></a> +<a id="line-21" name="line-21"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">MathVariablesPrivate</span><span class="w"> </span><span class="n">MathVariablesPrivate</span><span class="p">;</span> +<a id="line-22" name="line-22"></a> +<a id="line-23" name="line-23"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-24" name="line-24"></a><span class="p">{</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">GObject</span><span class="w"> </span><span class="n">parent_instance</span><span class="p">;</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">MathVariablesPrivate</span><span class="w"> </span><span class="o">*</span><span class="n">priv</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="p">}</span><span class="w"> </span><span class="n">MathVariables</span><span class="p">;</span> +<a id="line-28" name="line-28"></a> +<a id="line-29" name="line-29"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-30" name="line-30"></a><span class="p">{</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">GObjectClass</span><span class="w"> </span><span class="n">parent_class</span><span class="p">;</span> +<a id="line-32" name="line-32"></a><span class="p">}</span><span class="w"> </span><span class="n">MathVariablesClass</span><span class="p">;</span> +<a id="line-33" name="line-33"></a> +<a id="line-34" name="line-34"></a><span class="n">GType</span><span class="w"> </span><span class="nf">math_variables_get_type</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-35" name="line-35"></a> +<a id="line-36" name="line-36"></a><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="nf">math_variables_new</span><span class="p">(</span><span class="kt">void</span><span class="p">);</span> +<a id="line-37" name="line-37"></a> +<a id="line-38" name="line-38"></a><span class="n">gchar</span><span class="w"> </span><span class="o">**</span><span class="nf">math_variables_get_names</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">);</span> +<a id="line-39" name="line-39"></a> +<a id="line-40" name="line-40"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_variables_set</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="n">value</span><span class="p">);</span> +<a id="line-41" name="line-41"></a> +<a id="line-42" name="line-42"></a><span class="n">MPNumber</span><span class="w"> </span><span class="o">*</span><span class="nf">math_variables_get</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-43" name="line-43"></a> +<a id="line-44" name="line-44"></a><span class="kt">void</span><span class="w"> </span><span class="nf">math_variables_delete</span><span class="p">(</span><span class="n">MathVariables</span><span class="w"> </span><span class="o">*</span><span class="n">variables</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">name</span><span class="p">);</span> +<a id="line-45" name="line-45"></a> +<a id="line-46" name="line-46"></a><span class="n">G_END_DECLS</span> +<a id="line-47" name="line-47"></a> +<a id="line-48" name="line-48"></a><span class="cp">#endif </span><span class="cm">/* MATH_VARIABLES_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/8.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/8.html new file mode 100644 index 0000000..082b8ec --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/8.html @@ -0,0 +1,1441 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/lexer.c</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> lexer.c</p> +<a href="8.html#line-1"> missingIncludeSystem 1</a><a href="8.html#line-2"> missingIncludeSystem 2</a><a href="8.html#line-3"> missingIncludeSystem 3</a><a href="8.html#line-34"> variableScope 34</a><a href="8.html#line-125"> unreadVariable 125</a><a href="8.html#line-533"> variableScope 533</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal"> 10</span> +<span class="normal"> 11</span> +<span class="normal"> 12</span> +<span class="normal"> 13</span> +<span class="normal"> 14</span> +<span class="normal"> 15</span> +<span class="normal"> 16</span> +<span class="normal"> 17</span> +<span class="normal"> 18</span> +<span class="normal"> 19</span> +<span class="normal"> 20</span> +<span class="normal"> 21</span> +<span class="normal"> 22</span> +<span class="normal"> 23</span> +<span class="normal"> 24</span> +<span class="normal"> 25</span> +<span class="normal"> 26</span> +<span class="normal"> 27</span> +<span class="normal"> 28</span> +<span class="normal"> 29</span> +<span class="normal"> 30</span> +<span class="normal"> 31</span> +<span class="normal"> 32</span> +<span class="normal"> 33</span> +<span class="normal"> 34</span> +<span class="normal"> 35</span> +<span class="normal"> 36</span> +<span class="normal"> 37</span> +<span class="normal"> 38</span> +<span class="normal"> 39</span> +<span class="normal"> 40</span> +<span class="normal"> 41</span> +<span class="normal"> 42</span> +<span class="normal"> 43</span> +<span class="normal"> 44</span> +<span class="normal"> 45</span> +<span class="normal"> 46</span> +<span class="normal"> 47</span> +<span class="normal"> 48</span> +<span class="normal"> 49</span> +<span class="normal"> 50</span> +<span class="normal"> 51</span> +<span class="normal"> 52</span> +<span class="normal"> 53</span> +<span class="normal"> 54</span> +<span class="normal"> 55</span> +<span class="normal"> 56</span> +<span class="normal"> 57</span> +<span class="normal"> 58</span> +<span class="normal"> 59</span> +<span class="normal"> 60</span> +<span class="normal"> 61</span> +<span class="normal"> 62</span> +<span class="normal"> 63</span> +<span class="normal"> 64</span> +<span class="normal"> 65</span> +<span class="normal"> 66</span> +<span class="normal"> 67</span> +<span class="normal"> 68</span> +<span class="normal"> 69</span> +<span class="normal"> 70</span> +<span class="normal"> 71</span> +<span class="normal"> 72</span> +<span class="normal"> 73</span> +<span class="normal"> 74</span> +<span class="normal"> 75</span> +<span class="normal"> 76</span> +<span class="normal"> 77</span> +<span class="normal"> 78</span> +<span class="normal"> 79</span> +<span class="normal"> 80</span> +<span class="normal"> 81</span> +<span class="normal"> 82</span> +<span class="normal"> 83</span> +<span class="normal"> 84</span> +<span class="normal"> 85</span> +<span class="normal"> 86</span> +<span class="normal"> 87</span> +<span class="normal"> 88</span> +<span class="normal"> 89</span> +<span class="normal"> 90</span> +<span class="normal"> 91</span> +<span class="normal"> 92</span> +<span class="normal"> 93</span> +<span class="normal"> 94</span> +<span class="normal"> 95</span> +<span class="normal"> 96</span> +<span class="normal"> 97</span> +<span class="normal"> 98</span> +<span class="normal"> 99</span> +<span class="normal">100</span> +<span class="normal">101</span> +<span class="normal">102</span> +<span class="normal">103</span> +<span class="normal">104</span> +<span class="normal">105</span> +<span class="normal">106</span> +<span class="normal">107</span> +<span class="normal">108</span> +<span class="normal">109</span> +<span class="normal">110</span> +<span class="normal">111</span> +<span class="normal">112</span> +<span class="normal">113</span> +<span class="normal">114</span> +<span class="normal">115</span> +<span class="normal">116</span> +<span class="normal">117</span> +<span class="normal">118</span> +<span class="normal">119</span> +<span class="normal">120</span> +<span class="normal">121</span> +<span class="normal">122</span> +<span class="normal">123</span> +<span class="normal">124</span> +<span class="normal">125</span> +<span class="normal">126</span> +<span class="normal">127</span> +<span class="normal">128</span> +<span class="normal">129</span> +<span class="normal">130</span> +<span class="normal">131</span> +<span class="normal">132</span> +<span class="normal">133</span> +<span class="normal">134</span> +<span class="normal">135</span> +<span class="normal">136</span> +<span class="normal">137</span> +<span class="normal">138</span> +<span class="normal">139</span> +<span class="normal">140</span> +<span class="normal">141</span> +<span class="normal">142</span> +<span class="normal">143</span> +<span class="normal">144</span> +<span class="normal">145</span> +<span class="normal">146</span> +<span class="normal">147</span> +<span class="normal">148</span> +<span class="normal">149</span> +<span class="normal">150</span> +<span class="normal">151</span> +<span class="normal">152</span> +<span class="normal">153</span> +<span class="normal">154</span> +<span class="normal">155</span> +<span class="normal">156</span> +<span class="normal">157</span> +<span class="normal">158</span> +<span class="normal">159</span> +<span class="normal">160</span> +<span class="normal">161</span> +<span class="normal">162</span> +<span class="normal">163</span> +<span class="normal">164</span> +<span class="normal">165</span> +<span class="normal">166</span> +<span class="normal">167</span> +<span class="normal">168</span> +<span class="normal">169</span> +<span class="normal">170</span> +<span class="normal">171</span> +<span class="normal">172</span> +<span class="normal">173</span> +<span class="normal">174</span> +<span class="normal">175</span> +<span class="normal">176</span> +<span class="normal">177</span> +<span class="normal">178</span> +<span class="normal">179</span> +<span class="normal">180</span> +<span class="normal">181</span> +<span class="normal">182</span> +<span class="normal">183</span> +<span class="normal">184</span> +<span class="normal">185</span> +<span class="normal">186</span> +<span class="normal">187</span> +<span class="normal">188</span> +<span class="normal">189</span> +<span class="normal">190</span> +<span class="normal">191</span> +<span class="normal">192</span> +<span class="normal">193</span> +<span class="normal">194</span> +<span class="normal">195</span> +<span class="normal">196</span> +<span class="normal">197</span> +<span class="normal">198</span> +<span class="normal">199</span> +<span class="normal">200</span> +<span class="normal">201</span> +<span class="normal">202</span> +<span class="normal">203</span> +<span class="normal">204</span> +<span class="normal">205</span> +<span class="normal">206</span> +<span class="normal">207</span> +<span class="normal">208</span> +<span class="normal">209</span> +<span class="normal">210</span> +<span class="normal">211</span> +<span class="normal">212</span> +<span class="normal">213</span> +<span class="normal">214</span> +<span class="normal">215</span> +<span class="normal">216</span> +<span class="normal">217</span> +<span class="normal">218</span> +<span class="normal">219</span> +<span class="normal">220</span> +<span class="normal">221</span> +<span class="normal">222</span> +<span class="normal">223</span> +<span class="normal">224</span> +<span class="normal">225</span> +<span class="normal">226</span> +<span class="normal">227</span> +<span class="normal">228</span> +<span class="normal">229</span> +<span class="normal">230</span> +<span class="normal">231</span> +<span class="normal">232</span> +<span class="normal">233</span> +<span class="normal">234</span> +<span class="normal">235</span> +<span class="normal">236</span> +<span class="normal">237</span> +<span class="normal">238</span> +<span class="normal">239</span> +<span class="normal">240</span> +<span class="normal">241</span> +<span class="normal">242</span> +<span class="normal">243</span> +<span class="normal">244</span> +<span class="normal">245</span> +<span class="normal">246</span> +<span class="normal">247</span> +<span class="normal">248</span> +<span class="normal">249</span> +<span class="normal">250</span> +<span class="normal">251</span> +<span class="normal">252</span> +<span class="normal">253</span> +<span class="normal">254</span> +<span class="normal">255</span> +<span class="normal">256</span> +<span class="normal">257</span> +<span class="normal">258</span> +<span class="normal">259</span> +<span class="normal">260</span> +<span class="normal">261</span> +<span class="normal">262</span> +<span class="normal">263</span> +<span class="normal">264</span> +<span class="normal">265</span> +<span class="normal">266</span> +<span class="normal">267</span> +<span class="normal">268</span> +<span class="normal">269</span> +<span class="normal">270</span> +<span class="normal">271</span> +<span class="normal">272</span> +<span class="normal">273</span> +<span class="normal">274</span> +<span class="normal">275</span> +<span class="normal">276</span> +<span class="normal">277</span> +<span class="normal">278</span> +<span class="normal">279</span> +<span class="normal">280</span> +<span class="normal">281</span> +<span class="normal">282</span> +<span class="normal">283</span> +<span class="normal">284</span> +<span class="normal">285</span> +<span class="normal">286</span> +<span class="normal">287</span> +<span class="normal">288</span> +<span class="normal">289</span> +<span class="normal">290</span> +<span class="normal">291</span> +<span class="normal">292</span> +<span class="normal">293</span> +<span class="normal">294</span> +<span class="normal">295</span> +<span class="normal">296</span> +<span class="normal">297</span> +<span class="normal">298</span> +<span class="normal">299</span> +<span class="normal">300</span> +<span class="normal">301</span> +<span class="normal">302</span> +<span class="normal">303</span> +<span class="normal">304</span> +<span class="normal">305</span> +<span class="normal">306</span> +<span class="normal">307</span> +<span class="normal">308</span> +<span class="normal">309</span> +<span class="normal">310</span> +<span class="normal">311</span> +<span class="normal">312</span> +<span class="normal">313</span> +<span class="normal">314</span> +<span class="normal">315</span> +<span class="normal">316</span> +<span class="normal">317</span> +<span class="normal">318</span> +<span class="normal">319</span> +<span class="normal">320</span> +<span class="normal">321</span> +<span class="normal">322</span> +<span class="normal">323</span> +<span class="normal">324</span> +<span class="normal">325</span> +<span class="normal">326</span> +<span class="normal">327</span> +<span class="normal">328</span> +<span class="normal">329</span> +<span class="normal">330</span> +<span class="normal">331</span> +<span class="normal">332</span> +<span class="normal">333</span> +<span class="normal">334</span> +<span class="normal">335</span> +<span class="normal">336</span> +<span class="normal">337</span> +<span class="normal">338</span> +<span class="normal">339</span> +<span class="normal">340</span> +<span class="normal">341</span> +<span class="normal">342</span> +<span class="normal">343</span> +<span class="normal">344</span> +<span class="normal">345</span> +<span class="normal">346</span> +<span class="normal">347</span> +<span class="normal">348</span> +<span class="normal">349</span> +<span class="normal">350</span> +<span class="normal">351</span> +<span class="normal">352</span> +<span class="normal">353</span> +<span class="normal">354</span> +<span class="normal">355</span> +<span class="normal">356</span> +<span class="normal">357</span> +<span class="normal">358</span> +<span class="normal">359</span> +<span class="normal">360</span> +<span class="normal">361</span> +<span class="normal">362</span> +<span class="normal">363</span> +<span class="normal">364</span> +<span class="normal">365</span> +<span class="normal">366</span> +<span class="normal">367</span> +<span class="normal">368</span> +<span class="normal">369</span> +<span class="normal">370</span> +<span class="normal">371</span> +<span class="normal">372</span> +<span class="normal">373</span> +<span class="normal">374</span> +<span class="normal">375</span> +<span class="normal">376</span> +<span class="normal">377</span> +<span class="normal">378</span> +<span class="normal">379</span> +<span class="normal">380</span> +<span class="normal">381</span> +<span class="normal">382</span> +<span class="normal">383</span> +<span class="normal">384</span> +<span class="normal">385</span> +<span class="normal">386</span> +<span class="normal">387</span> +<span class="normal">388</span> +<span class="normal">389</span> +<span class="normal">390</span> +<span class="normal">391</span> +<span class="normal">392</span> +<span class="normal">393</span> +<span class="normal">394</span> +<span class="normal">395</span> +<span class="normal">396</span> +<span class="normal">397</span> +<span class="normal">398</span> +<span class="normal">399</span> +<span class="normal">400</span> +<span class="normal">401</span> +<span class="normal">402</span> +<span class="normal">403</span> +<span class="normal">404</span> +<span class="normal">405</span> +<span class="normal">406</span> +<span class="normal">407</span> +<span class="normal">408</span> +<span class="normal">409</span> +<span class="normal">410</span> +<span class="normal">411</span> +<span class="normal">412</span> +<span class="normal">413</span> +<span class="normal">414</span> +<span class="normal">415</span> +<span class="normal">416</span> +<span class="normal">417</span> +<span class="normal">418</span> +<span class="normal">419</span> +<span class="normal">420</span> +<span class="normal">421</span> +<span class="normal">422</span> +<span class="normal">423</span> +<span class="normal">424</span> +<span class="normal">425</span> +<span class="normal">426</span> +<span class="normal">427</span> +<span class="normal">428</span> +<span class="normal">429</span> +<span class="normal">430</span> +<span class="normal">431</span> +<span class="normal">432</span> +<span class="normal">433</span> +<span class="normal">434</span> +<span class="normal">435</span> +<span class="normal">436</span> +<span class="normal">437</span> +<span class="normal">438</span> +<span class="normal">439</span> +<span class="normal">440</span> +<span class="normal">441</span> +<span class="normal">442</span> +<span class="normal">443</span> +<span class="normal">444</span> +<span class="normal">445</span> +<span class="normal">446</span> +<span class="normal">447</span> +<span class="normal">448</span> +<span class="normal">449</span> +<span class="normal">450</span> +<span class="normal">451</span> +<span class="normal">452</span> +<span class="normal">453</span> +<span class="normal">454</span> +<span class="normal">455</span> +<span class="normal">456</span> +<span class="normal">457</span> +<span class="normal">458</span> +<span class="normal">459</span> +<span class="normal">460</span> +<span class="normal">461</span> +<span class="normal">462</span> +<span class="normal">463</span> +<span class="normal">464</span> +<span class="normal">465</span> +<span class="normal">466</span> +<span class="normal">467</span> +<span class="normal">468</span> +<span class="normal">469</span> +<span class="normal">470</span> +<span class="normal">471</span> +<span class="normal">472</span> +<span class="normal">473</span> +<span class="normal">474</span> +<span class="normal">475</span> +<span class="normal">476</span> +<span class="normal">477</span> +<span class="normal">478</span> +<span class="normal">479</span> +<span class="normal">480</span> +<span class="normal">481</span> +<span class="normal">482</span> +<span class="normal">483</span> +<span class="normal">484</span> +<span class="normal">485</span> +<span class="normal">486</span> +<span class="normal">487</span> +<span class="normal">488</span> +<span class="normal">489</span> +<span class="normal">490</span> +<span class="normal">491</span> +<span class="normal">492</span> +<span class="normal">493</span> +<span class="normal">494</span> +<span class="normal">495</span> +<span class="normal">496</span> +<span class="normal">497</span> +<span class="normal">498</span> +<span class="normal">499</span> +<span class="normal">500</span> +<span class="normal">501</span> +<span class="normal">502</span> +<span class="normal">503</span> +<span class="normal">504</span> +<span class="normal">505</span> +<span class="normal">506</span> +<span class="normal">507</span> +<span class="normal">508</span> +<span class="normal">509</span> +<span class="normal">510</span> +<span class="normal">511</span> +<span class="normal">512</span> +<span class="normal">513</span> +<span class="normal">514</span> +<span class="normal">515</span> +<span class="normal">516</span> +<span class="normal">517</span> +<span class="normal">518</span> +<span class="normal">519</span> +<span class="normal">520</span> +<span class="normal">521</span> +<span class="normal">522</span> +<span class="normal">523</span> +<span class="normal">524</span> +<span class="normal">525</span> +<span class="normal">526</span> +<span class="normal">527</span> +<span class="normal">528</span> +<span class="normal">529</span> +<span class="normal">530</span> +<span class="normal">531</span> +<span class="normal">532</span> +<span class="normal">533</span> +<span class="normal">534</span> +<span class="normal">535</span> +<span class="normal">536</span> +<span class="normal">537</span> +<span class="normal">538</span> +<span class="normal">539</span> +<span class="normal">540</span> +<span class="normal">541</span> +<span class="normal">542</span> +<span class="normal">543</span> +<span class="normal">544</span> +<span class="normal">545</span> +<span class="normal">546</span> +<span class="normal">547</span> +<span class="normal">548</span> +<span class="normal">549</span> +<span class="normal">550</span> +<span class="normal">551</span> +<span class="normal">552</span> +<span class="normal">553</span> +<span class="normal">554</span> +<span class="normal">555</span> +<span class="normal">556</span> +<span class="normal">557</span> +<span class="normal">558</span> +<span class="normal">559</span> +<span class="normal">560</span> +<span class="normal">561</span> +<span class="normal">562</span> +<span class="normal">563</span> +<span class="normal">564</span> +<span class="normal">565</span> +<span class="normal">566</span> +<span class="normal">567</span> +<span class="normal">568</span> +<span class="normal">569</span> +<span class="normal">570</span> +<span class="normal">571</span> +<span class="normal">572</span> +<span class="normal">573</span> +<span class="normal">574</span> +<span class="normal">575</span> +<span class="normal">576</span> +<span class="normal">577</span> +<span class="normal">578</span> +<span class="normal">579</span> +<span class="normal">580</span> +<span class="normal">581</span> +<span class="normal">582</span> +<span class="normal">583</span> +<span class="normal">584</span> +<span class="normal">585</span> +<span class="normal">586</span> +<span class="normal">587</span> +<span class="normal">588</span> +<span class="normal">589</span> +<span class="normal">590</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdlib.h></span><span class="error2"><--- Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-2" name="line-2"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><assert.h></span><span class="error2"><--- Include file: <assert.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-3" name="line-3"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><string.h></span><span class="error2"><--- Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-4" name="line-4"></a> +<a id="line-5" name="line-5"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"lexer.h"</span> +<a id="line-6" name="line-6"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"parserfunc.h"</span> +<a id="line-7" name="line-7"></a><span class="cp">#include</span><span class="w"> </span><span class="cpf">"mp-equation.h"</span> +<a id="line-8" name="line-8"></a> +<a id="line-9" name="line-9"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-10" name="line-10"></a><span class="nf">l_check_if_function</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-11" name="line-11"></a><span class="p">{</span> +<a id="line-12" name="line-12"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-13" name="line-13"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="n">state</span><span class="o">-></span><span class="n">parent</span><span class="o">-></span><span class="n">function_is_defined</span><span class="p">)</span> +<a id="line-14" name="line-14"></a><span class="w"> </span><span class="p">{</span> +<a id="line-15" name="line-15"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-16" name="line-16"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-17" name="line-17"></a><span class="w"> </span><span class="p">}</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">((</span><span class="o">*</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">parent</span><span class="o">-></span><span class="n">function_is_defined</span><span class="p">))(</span><span class="n">state</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">name</span><span class="p">))</span> +<a id="line-19" name="line-19"></a><span class="w"> </span><span class="p">{</span> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="p">}</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="k">else</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="p">{</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">name</span><span class="p">);</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="p">}</span> +<a id="line-28" name="line-28"></a><span class="p">}</span> +<a id="line-29" name="line-29"></a> +<a id="line-30" name="line-30"></a><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span> +<a id="line-31" name="line-31"></a><span class="nf">l_check_if_number</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-32" name="line-32"></a><span class="p">{</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">MPNumber</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">mp_new</span><span class="p">();</span> +<a id="line-34" name="line-34"></a><span class="hll"><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'count' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'count' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-35" name="line-35"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">parent</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="p">{</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="p">}</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="k">else</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="p">{</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="cm">/* Try to rollback several characters to see, if that yeilds any number. */</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">strlen</span><span class="w"> </span><span class="p">(</span><span class="n">text</span><span class="p">)</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="p">{</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">mp_set_from_string</span><span class="p">(</span><span class="n">text</span><span class="p">,</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">parent</span><span class="o">-></span><span class="n">options</span><span class="o">-></span><span class="n">base</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">tmp</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="p">{</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="p">}</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">count</span><span class="o">++</span><span class="p">;</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="p">}</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="cm">/* Undo all rollbacks. */</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">count</span><span class="o">--</span><span class="p">)</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">pl_get_next_token</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">text</span><span class="p">);</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">mp_clear</span><span class="p">(</span><span class="o">&</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">FALSE</span><span class="p">;</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="p">}</span> +<a id="line-65" name="line-65"></a><span class="p">}</span> +<a id="line-66" name="line-66"></a> +<a id="line-67" name="line-67"></a><span class="cm">/* Insert generated token to the LexerState structure. */</span> +<a id="line-68" name="line-68"></a><span class="k">static</span><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span> +<a id="line-69" name="line-69"></a><span class="nf">l_insert_token</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">,</span><span class="w"> </span><span class="k">const</span><span class="w"> </span><span class="n">LexerTokenType</span><span class="w"> </span><span class="n">type</span><span class="p">)</span> +<a id="line-70" name="line-70"></a><span class="p">{</span> +<a id="line-71" name="line-71"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">LexerToken</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">realloc</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">,</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="mi">1</span><span class="p">)</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">sizeof</span><span class="p">(</span><span class="n">LexerToken</span><span class="p">));</span> +<a id="line-72" name="line-72"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-73" name="line-73"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="p">].</span><span class="n">string</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-74" name="line-74"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="p">].</span><span class="n">start_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="o">-></span><span class="n">mark_index</span><span class="p">;</span> +<a id="line-75" name="line-75"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="p">].</span><span class="n">end_index</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="o">-></span><span class="n">next_index</span><span class="p">;</span> +<a id="line-76" name="line-76"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="p">].</span><span class="n">token_type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-77" name="line-77"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="o">++</span><span class="p">;</span> +<a id="line-78" name="line-78"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-79" name="line-79"></a><span class="p">}</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="cm">/* Generates next token from pre-lexer stream and call l_insert_token() to insert it at the end. */</span> +<a id="line-82" name="line-82"></a><span class="k">static</span><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span> +<a id="line-83" name="line-83"></a><span class="nf">l_insert_next_token</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">lstate</span><span class="p">)</span> +<a id="line-84" name="line-84"></a><span class="p">{</span> +<a id="line-85" name="line-85"></a><span class="w"> </span><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">lstate</span><span class="o">-></span><span class="n">prelexer</span><span class="p">;</span> +<a id="line-86" name="line-86"></a><span class="w"> </span><span class="n">LexerTokenType</span><span class="w"> </span><span class="n">type</span><span class="p">;</span> +<a id="line-87" name="line-87"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">tmp</span><span class="p">;</span> +<a id="line-88" name="line-88"></a><span class="w"> </span><span class="n">pl_set_marker</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-89" name="line-89"></a><span class="w"> </span><span class="cm">/* Ignore all blank spaces. :) */</span> +<a id="line-90" name="line-90"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SKIP</span><span class="p">)</span> +<a id="line-91" name="line-91"></a><span class="w"> </span><span class="cm">/* Set marker. Beginning of new token. */</span> +<a id="line-92" name="line-92"></a><span class="w"> </span><span class="n">pl_set_marker</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-93" name="line-93"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_AND</span> +<a id="line-94" name="line-94"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_OR</span> +<a id="line-95" name="line-95"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_XOR</span> +<a id="line-96" name="line-96"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_NOT</span> +<a id="line-97" name="line-97"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ADD</span> +<a id="line-98" name="line-98"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_SUBTRACT</span> +<a id="line-99" name="line-99"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_MULTIPLY</span> +<a id="line-100" name="line-100"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_DIV</span> +<a id="line-101" name="line-101"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_FLOOR</span> +<a id="line-102" name="line-102"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_FLOOR</span> +<a id="line-103" name="line-103"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_CEILING</span> +<a id="line-104" name="line-104"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_CEILING</span> +<a id="line-105" name="line-105"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT</span> +<a id="line-106" name="line-106"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_3</span> +<a id="line-107" name="line-107"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ROOT_4</span> +<a id="line-108" name="line-108"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ASSIGN</span> +<a id="line-109" name="line-109"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_R_BRACKET</span> +<a id="line-110" name="line-110"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_R_BRACKET</span> +<a id="line-111" name="line-111"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_S_BRACKET</span> +<a id="line-112" name="line-112"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_S_BRACKET</span> +<a id="line-113" name="line-113"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_L_C_BRACKET</span> +<a id="line-114" name="line-114"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_R_C_BRACKET</span> +<a id="line-115" name="line-115"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_ABS</span> +<a id="line-116" name="line-116"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_POWER</span> +<a id="line-117" name="line-117"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_FACTORIAL</span> +<a id="line-118" name="line-118"></a><span class="w"> </span><span class="o">||</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="p">)</span> +<a id="line-119" name="line-119"></a><span class="w"> </span><span class="p">{</span> +<a id="line-120" name="line-120"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">type</span><span class="p">);</span> +<a id="line-121" name="line-121"></a><span class="w"> </span><span class="p">}</span> +<a id="line-122" name="line-122"></a><span class="w"> </span><span class="cm">/* [PL_SUPER_MINUS][PL_SUPER_DIGIT]+ */</span> +<a id="line-123" name="line-123"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUPER_MINUS</span><span class="p">)</span> +<a id="line-124" name="line-124"></a><span class="w"> </span><span class="p">{</span> +<a id="line-125" name="line-125"></a><span class="hll"><span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PL_SUPER_DIGIT</span><span class="p">)</span><span class="error2"><--- Variable 'type' is assigned a value that is never used.</span> +</span><a id="line-126" name="line-126"></a><span class="w"> </span><span class="p">{</span> +<a id="line-127" name="line-127"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_SUP_DIGIT */</span> +<a id="line-128" name="line-128"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-129" name="line-129"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-130" name="line-130"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-131" name="line-131"></a><span class="w"> </span><span class="p">}</span> +<a id="line-132" name="line-132"></a><span class="w"> </span><span class="cm">/* Get all PL_SUPER_DIGITs. */</span> +<a id="line-133" name="line-133"></a><span class="w"> </span><span class="k">while</span><span class="w"> </span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUPER_DIGIT</span><span class="p">);</span> +<a id="line-134" name="line-134"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-135" name="line-135"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NSUP_NUMBER</span><span class="p">);</span> +<a id="line-136" name="line-136"></a><span class="w"> </span><span class="p">}</span> +<a id="line-137" name="line-137"></a><span class="w"> </span><span class="cm">/* [PL_SUPER_DIGIT]+ */</span> +<a id="line-138" name="line-138"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUPER_DIGIT</span><span class="p">)</span> +<a id="line-139" name="line-139"></a><span class="w"> </span><span class="p">{</span> +<a id="line-140" name="line-140"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUPER_DIGIT</span><span class="p">);</span> +<a id="line-141" name="line-141"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-142" name="line-142"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">);</span> +<a id="line-143" name="line-143"></a><span class="w"> </span><span class="p">}</span> +<a id="line-144" name="line-144"></a><span class="w"> </span><span class="cm">/* [PL_SUB_DIGIT]+ */</span> +<a id="line-145" name="line-145"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-146" name="line-146"></a><span class="w"> </span><span class="p">{</span> +<a id="line-147" name="line-147"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-148" name="line-148"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-149" name="line-149"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_SUB_NUMBER</span><span class="p">);</span> +<a id="line-150" name="line-150"></a><span class="w"> </span><span class="p">}</span> +<a id="line-151" name="line-151"></a><span class="w"> </span><span class="cm">/* [PL_FRACTION] */</span> +<a id="line-152" name="line-152"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_FRACTION</span><span class="p">)</span> +<a id="line-153" name="line-153"></a><span class="w"> </span><span class="p">{</span> +<a id="line-154" name="line-154"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-155" name="line-155"></a><span class="w"> </span><span class="p">}</span> +<a id="line-156" name="line-156"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-157" name="line-157"></a><span class="w"> </span><span class="p">{</span> +<a id="line-158" name="line-158"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">);</span> +<a id="line-159" name="line-159"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_FRACTION</span><span class="p">)</span> +<a id="line-160" name="line-160"></a><span class="w"> </span><span class="p">{</span> +<a id="line-161" name="line-161"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-162" name="line-162"></a><span class="w"> </span><span class="p">}</span> +<a id="line-163" name="line-163"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-164" name="line-164"></a><span class="w"> </span><span class="p">{</span> +<a id="line-165" name="line-165"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-166" name="line-166"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-167" name="line-167"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-168" name="line-168"></a><span class="w"> </span><span class="p">}</span> +<a id="line-169" name="line-169"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DEGREE</span><span class="p">)</span> +<a id="line-170" name="line-170"></a><span class="w"> </span><span class="p">{</span> +<a id="line-171" name="line-171"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-172" name="line-172"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-173" name="line-173"></a><span class="w"> </span><span class="p">{</span> +<a id="line-174" name="line-174"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">);</span> +<a id="line-175" name="line-175"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-176" name="line-176"></a><span class="w"> </span><span class="p">{</span> +<a id="line-177" name="line-177"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">ANGLE_NUM_DM_STATE</span><span class="p">;</span> +<a id="line-178" name="line-178"></a><span class="w"> </span><span class="p">}</span> +<a id="line-179" name="line-179"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_MINUTE</span><span class="p">)</span> +<a id="line-180" name="line-180"></a><span class="w"> </span><span class="p">{</span> +<a id="line-181" name="line-181"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-182" name="line-182"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-183" name="line-183"></a><span class="w"> </span><span class="p">{</span> +<a id="line-184" name="line-184"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">);</span> +<a id="line-185" name="line-185"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-186" name="line-186"></a><span class="w"> </span><span class="p">{</span> +<a id="line-187" name="line-187"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">ANGLE_NUM_DMS_STATE</span><span class="p">;</span> +<a id="line-188" name="line-188"></a><span class="w"> </span><span class="p">}</span> +<a id="line-189" name="line-189"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SECOND</span><span class="p">)</span> +<a id="line-190" name="line-190"></a><span class="w"> </span><span class="p">{</span> +<a id="line-191" name="line-191"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-192" name="line-192"></a><span class="w"> </span><span class="p">}</span> +<a id="line-193" name="line-193"></a><span class="w"> </span><span class="k">else</span> +<a id="line-194" name="line-194"></a><span class="w"> </span><span class="p">{</span> +<a id="line-195" name="line-195"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_SECOND */</span> +<a id="line-196" name="line-196"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-197" name="line-197"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-198" name="line-198"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-199" name="line-199"></a><span class="w"> </span><span class="p">}</span> +<a id="line-200" name="line-200"></a><span class="w"> </span><span class="p">}</span> +<a id="line-201" name="line-201"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-202" name="line-202"></a><span class="w"> </span><span class="p">{</span> +<a id="line-203" name="line-203"></a><span class="nl">ANGLE_NUM_DMS_STATE</span><span class="p">:</span> +<a id="line-204" name="line-204"></a><span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="w"> </span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-205" name="line-205"></a><span class="w"> </span><span class="p">{</span> +<a id="line-206" name="line-206"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_DIGIT */</span> +<a id="line-207" name="line-207"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-208" name="line-208"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-209" name="line-209"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-210" name="line-210"></a><span class="w"> </span><span class="p">}</span> +<a id="line-211" name="line-211"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">);</span> +<a id="line-212" name="line-212"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SECOND</span><span class="p">)</span> +<a id="line-213" name="line-213"></a><span class="w"> </span><span class="p">{</span> +<a id="line-214" name="line-214"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-215" name="line-215"></a><span class="w"> </span><span class="p">}</span> +<a id="line-216" name="line-216"></a><span class="w"> </span><span class="k">else</span> +<a id="line-217" name="line-217"></a><span class="w"> </span><span class="p">{</span> +<a id="line-218" name="line-218"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_SECOND */</span> +<a id="line-219" name="line-219"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-220" name="line-220"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-221" name="line-221"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-222" name="line-222"></a><span class="w"> </span><span class="p">}</span> +<a id="line-223" name="line-223"></a><span class="w"> </span><span class="p">}</span> +<a id="line-224" name="line-224"></a><span class="w"> </span><span class="k">else</span> +<a id="line-225" name="line-225"></a><span class="w"> </span><span class="p">{</span> +<a id="line-226" name="line-226"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-227" name="line-227"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-228" name="line-228"></a><span class="w"> </span><span class="p">}</span> +<a id="line-229" name="line-229"></a><span class="w"> </span><span class="p">}</span> +<a id="line-230" name="line-230"></a><span class="w"> </span><span class="k">else</span> +<a id="line-231" name="line-231"></a><span class="w"> </span><span class="p">{</span> +<a id="line-232" name="line-232"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_MINUTE | PL_DIGIT */</span> +<a id="line-233" name="line-233"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-234" name="line-234"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-235" name="line-235"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-236" name="line-236"></a><span class="w"> </span><span class="p">}</span> +<a id="line-237" name="line-237"></a><span class="w"> </span><span class="p">}</span> +<a id="line-238" name="line-238"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-239" name="line-239"></a><span class="w"> </span><span class="p">{</span> +<a id="line-240" name="line-240"></a><span class="nl">ANGLE_NUM_DM_STATE</span><span class="p">:</span> +<a id="line-241" name="line-241"></a><span class="w"> </span><span class="k">if</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-242" name="line-242"></a><span class="w"> </span><span class="p">{</span> +<a id="line-243" name="line-243"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_DIGIT */</span> +<a id="line-244" name="line-244"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-245" name="line-245"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-246" name="line-246"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-247" name="line-247"></a><span class="w"> </span><span class="p">}</span> +<a id="line-248" name="line-248"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">);</span> +<a id="line-249" name="line-249"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_MINUTE</span><span class="p">)</span> +<a id="line-250" name="line-250"></a><span class="w"> </span><span class="p">{</span> +<a id="line-251" name="line-251"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-252" name="line-252"></a><span class="w"> </span><span class="p">}</span> +<a id="line-253" name="line-253"></a><span class="w"> </span><span class="k">else</span> +<a id="line-254" name="line-254"></a><span class="w"> </span><span class="p">{</span> +<a id="line-255" name="line-255"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_MINUTE */</span> +<a id="line-256" name="line-256"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-257" name="line-257"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-258" name="line-258"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-259" name="line-259"></a><span class="w"> </span><span class="p">}</span> +<a id="line-260" name="line-260"></a><span class="w"> </span><span class="p">}</span> +<a id="line-261" name="line-261"></a><span class="w"> </span><span class="k">else</span> +<a id="line-262" name="line-262"></a><span class="w"> </span><span class="p">{</span> +<a id="line-263" name="line-263"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-264" name="line-264"></a><span class="w"> </span><span class="p">}</span> +<a id="line-265" name="line-265"></a><span class="w"> </span><span class="p">}</span> +<a id="line-266" name="line-266"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-267" name="line-267"></a><span class="w"> </span><span class="p">{</span> +<a id="line-268" name="line-268"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">DECIMAL_STATE</span><span class="p">;</span> +<a id="line-269" name="line-269"></a><span class="w"> </span><span class="p">}</span> +<a id="line-270" name="line-270"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-271" name="line-271"></a><span class="w"> </span><span class="p">{</span> +<a id="line-272" name="line-272"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">HEX_DEC_STATE</span><span class="p">;</span> +<a id="line-273" name="line-273"></a><span class="w"> </span><span class="p">}</span> +<a id="line-274" name="line-274"></a><span class="w"> </span><span class="k">else</span> +<a id="line-275" name="line-275"></a><span class="w"> </span><span class="p">{</span> +<a id="line-276" name="line-276"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-277" name="line-277"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-278" name="line-278"></a><span class="w"> </span><span class="p">}</span> +<a id="line-279" name="line-279"></a><span class="w"> </span><span class="p">}</span> +<a id="line-280" name="line-280"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-281" name="line-281"></a><span class="w"> </span><span class="p">{</span> +<a id="line-282" name="line-282"></a><span class="nl">DECIMAL_STATE</span><span class="p">:</span> +<a id="line-283" name="line-283"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-284" name="line-284"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-285" name="line-285"></a><span class="w"> </span><span class="p">{</span> +<a id="line-286" name="line-286"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">);</span> +<a id="line-287" name="line-287"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DEGREE</span><span class="p">)</span> +<a id="line-288" name="line-288"></a><span class="w"> </span><span class="p">{</span> +<a id="line-289" name="line-289"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-290" name="line-290"></a><span class="w"> </span><span class="p">}</span> +<a id="line-291" name="line-291"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-292" name="line-292"></a><span class="w"> </span><span class="p">{</span> +<a id="line-293" name="line-293"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">DECIMAL_HEX_STATE</span><span class="p">;</span> +<a id="line-294" name="line-294"></a><span class="w"> </span><span class="p">}</span> +<a id="line-295" name="line-295"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-296" name="line-296"></a><span class="w"> </span><span class="p">{</span> +<a id="line-297" name="line-297"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-298" name="line-298"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-299" name="line-299"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-300" name="line-300"></a><span class="w"> </span><span class="p">}</span> +<a id="line-301" name="line-301"></a><span class="w"> </span><span class="k">else</span> +<a id="line-302" name="line-302"></a><span class="w"> </span><span class="p">{</span> +<a id="line-303" name="line-303"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-304" name="line-304"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-305" name="line-305"></a><span class="w"> </span><span class="p">}</span> +<a id="line-306" name="line-306"></a><span class="w"> </span><span class="p">}</span> +<a id="line-307" name="line-307"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-308" name="line-308"></a><span class="w"> </span><span class="p">{</span> +<a id="line-309" name="line-309"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">DECIMAL_HEX_STATE</span><span class="p">;</span> +<a id="line-310" name="line-310"></a><span class="w"> </span><span class="p">}</span> +<a id="line-311" name="line-311"></a><span class="w"> </span><span class="k">else</span> +<a id="line-312" name="line-312"></a><span class="w"> </span><span class="p">{</span> +<a id="line-313" name="line-313"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_DIGIT | PL_HEX */</span> +<a id="line-314" name="line-314"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-315" name="line-315"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-316" name="line-316"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-317" name="line-317"></a><span class="w"> </span><span class="p">}</span> +<a id="line-318" name="line-318"></a><span class="w"> </span><span class="p">}</span> +<a id="line-319" name="line-319"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-320" name="line-320"></a><span class="w"> </span><span class="p">{</span> +<a id="line-321" name="line-321"></a><span class="w"> </span><span class="k">while</span><span class="p">((</span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">))</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">);</span> +<a id="line-322" name="line-322"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">)</span> +<a id="line-323" name="line-323"></a><span class="w"> </span><span class="p">{</span> +<a id="line-324" name="line-324"></a><span class="nl">HEX_DEC_STATE</span><span class="p">:</span> +<a id="line-325" name="line-325"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> +<a id="line-326" name="line-326"></a><span class="w"> </span><span class="p">{</span> +<a id="line-327" name="line-327"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-328" name="line-328"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-329" name="line-329"></a><span class="w"> </span><span class="p">{</span> +<a id="line-330" name="line-330"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-331" name="line-331"></a><span class="w"> </span><span class="p">}</span> +<a id="line-332" name="line-332"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-333" name="line-333"></a><span class="w"> </span><span class="p">{</span> +<a id="line-334" name="line-334"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">DECIMAL_HEX_STATE</span><span class="p">;</span> +<a id="line-335" name="line-335"></a><span class="w"> </span><span class="p">}</span> +<a id="line-336" name="line-336"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-337" name="line-337"></a><span class="w"> </span><span class="p">{</span> +<a id="line-338" name="line-338"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-339" name="line-339"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-340" name="line-340"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-341" name="line-341"></a><span class="w"> </span><span class="p">}</span> +<a id="line-342" name="line-342"></a><span class="w"> </span><span class="k">else</span> +<a id="line-343" name="line-343"></a><span class="w"> </span><span class="p">{</span> +<a id="line-344" name="line-344"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_number</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-345" name="line-345"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-346" name="line-346"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_DECIMAL | PL_DIGIT | PL_HEX */</span> +<a id="line-347" name="line-347"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-348" name="line-348"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-349" name="line-349"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-350" name="line-350"></a><span class="w"> </span><span class="p">}</span> +<a id="line-351" name="line-351"></a><span class="w"> </span><span class="p">}</span> +<a id="line-352" name="line-352"></a><span class="w"> </span><span class="p">}</span> +<a id="line-353" name="line-353"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">)</span> +<a id="line-354" name="line-354"></a><span class="w"> </span><span class="p">{</span> +<a id="line-355" name="line-355"></a><span class="nl">DECIMAL_HEX_STATE</span><span class="p">:</span> +<a id="line-356" name="line-356"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-357" name="line-357"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">))</span> +<a id="line-358" name="line-358"></a><span class="w"> </span><span class="p">{</span> +<a id="line-359" name="line-359"></a><span class="w"> </span><span class="cm">/* ERROR: expected PL_DIGIT | PL_HEX */</span> +<a id="line-360" name="line-360"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_MP</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-361" name="line-361"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-362" name="line-362"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-363" name="line-363"></a><span class="w"> </span><span class="p">}</span> +<a id="line-364" name="line-364"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> +<a id="line-365" name="line-365"></a><span class="w"> </span><span class="p">{</span> +<a id="line-366" name="line-366"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-367" name="line-367"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_DIGIT</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-368" name="line-368"></a><span class="w"> </span><span class="p">{</span> +<a id="line-369" name="line-369"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-370" name="line-370"></a><span class="w"> </span><span class="p">}</span> +<a id="line-371" name="line-371"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-372" name="line-372"></a><span class="w"> </span><span class="p">{</span> +<a id="line-373" name="line-373"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-374" name="line-374"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-375" name="line-375"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-376" name="line-376"></a><span class="w"> </span><span class="p">}</span> +<a id="line-377" name="line-377"></a><span class="w"> </span><span class="k">else</span> +<a id="line-378" name="line-378"></a><span class="w"> </span><span class="p">{</span> +<a id="line-379" name="line-379"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-380" name="line-380"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-381" name="line-381"></a><span class="w"> </span><span class="p">}</span> +<a id="line-382" name="line-382"></a><span class="w"> </span><span class="p">}</span> +<a id="line-383" name="line-383"></a><span class="w"> </span><span class="p">}</span> +<a id="line-384" name="line-384"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-385" name="line-385"></a><span class="w"> </span><span class="p">{</span> +<a id="line-386" name="line-386"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-387" name="line-387"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-388" name="line-388"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_number</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-389" name="line-389"></a><span class="w"> </span><span class="p">{</span> +<a id="line-390" name="line-390"></a><span class="w"> </span><span class="cm">/* NUMBER */</span> +<a id="line-391" name="line-391"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-392" name="line-392"></a><span class="w"> </span><span class="p">}</span> +<a id="line-393" name="line-393"></a><span class="w"> </span><span class="k">else</span> +<a id="line-394" name="line-394"></a><span class="w"> </span><span class="p">{</span> +<a id="line-395" name="line-395"></a><span class="w"> </span><span class="cm">/* VARIABLE */</span> +<a id="line-396" name="line-396"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_function</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-397" name="line-397"></a><span class="w"> </span><span class="p">{</span> +<a id="line-398" name="line-398"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">);</span> +<a id="line-399" name="line-399"></a><span class="w"> </span><span class="p">}</span> +<a id="line-400" name="line-400"></a><span class="w"> </span><span class="k">else</span> +<a id="line-401" name="line-401"></a><span class="w"> </span><span class="p">{</span> +<a id="line-402" name="line-402"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">);</span> +<a id="line-403" name="line-403"></a><span class="w"> </span><span class="p">}</span> +<a id="line-404" name="line-404"></a><span class="w"> </span><span class="p">}</span> +<a id="line-405" name="line-405"></a><span class="w"> </span><span class="p">}</span> +<a id="line-406" name="line-406"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_LETTER</span><span class="p">)</span> +<a id="line-407" name="line-407"></a><span class="w"> </span><span class="p">{</span> +<a id="line-408" name="line-408"></a><span class="w"> </span><span class="k">goto</span><span class="w"> </span><span class="n">LETTER_STATE</span><span class="p">;</span> +<a id="line-409" name="line-409"></a><span class="w"> </span><span class="p">}</span> +<a id="line-410" name="line-410"></a><span class="w"> </span><span class="k">else</span> +<a id="line-411" name="line-411"></a><span class="w"> </span><span class="p">{</span> +<a id="line-412" name="line-412"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-413" name="line-413"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_number</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-414" name="line-414"></a><span class="w"> </span><span class="p">{</span> +<a id="line-415" name="line-415"></a><span class="w"> </span><span class="cm">/* NUMBER */</span> +<a id="line-416" name="line-416"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">);</span> +<a id="line-417" name="line-417"></a><span class="w"> </span><span class="p">}</span> +<a id="line-418" name="line-418"></a><span class="w"> </span><span class="k">else</span> +<a id="line-419" name="line-419"></a><span class="w"> </span><span class="p">{</span> +<a id="line-420" name="line-420"></a><span class="w"> </span><span class="cm">/* VARIABLE */</span> +<a id="line-421" name="line-421"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_function</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-422" name="line-422"></a><span class="w"> </span><span class="p">{</span> +<a id="line-423" name="line-423"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">);</span> +<a id="line-424" name="line-424"></a><span class="w"> </span><span class="p">}</span> +<a id="line-425" name="line-425"></a><span class="w"> </span><span class="k">else</span> +<a id="line-426" name="line-426"></a><span class="w"> </span><span class="p">{</span> +<a id="line-427" name="line-427"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">);</span> +<a id="line-428" name="line-428"></a><span class="w"> </span><span class="p">}</span> +<a id="line-429" name="line-429"></a><span class="w"> </span><span class="p">}</span> +<a id="line-430" name="line-430"></a><span class="w"> </span><span class="p">}</span> +<a id="line-431" name="line-431"></a><span class="w"> </span><span class="p">}</span> +<a id="line-432" name="line-432"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_LETTER</span><span class="p">)</span> +<a id="line-433" name="line-433"></a><span class="w"> </span><span class="p">{</span> +<a id="line-434" name="line-434"></a><span class="nl">LETTER_STATE</span><span class="p">:</span> +<a id="line-435" name="line-435"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> +<a id="line-436" name="line-436"></a><span class="w"> </span><span class="p">{</span> +<a id="line-437" name="line-437"></a><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-438" name="line-438"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_LETTER</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_HEX</span><span class="p">)</span> +<a id="line-439" name="line-439"></a><span class="w"> </span><span class="p">{</span> +<a id="line-440" name="line-440"></a><span class="w"> </span><span class="k">continue</span><span class="p">;</span> +<a id="line-441" name="line-441"></a><span class="w"> </span><span class="p">}</span> +<a id="line-442" name="line-442"></a><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">)</span> +<a id="line-443" name="line-443"></a><span class="w"> </span><span class="p">{</span> +<a id="line-444" name="line-444"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="n">pl_get_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">);</span> +<a id="line-445" name="line-445"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-446" name="line-446"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ascii_strdown</span><span class="p">(</span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-447" name="line-447"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"mod"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-448" name="line-448"></a><span class="w"> </span><span class="p">{</span> +<a id="line-449" name="line-449"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_MOD</span><span class="p">);</span> +<a id="line-450" name="line-450"></a><span class="w"> </span><span class="p">}</span> +<a id="line-451" name="line-451"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"and"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-452" name="line-452"></a><span class="w"> </span><span class="p">{</span> +<a id="line-453" name="line-453"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_AND</span><span class="p">);</span> +<a id="line-454" name="line-454"></a><span class="w"> </span><span class="p">}</span> +<a id="line-455" name="line-455"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"or"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-456" name="line-456"></a><span class="w"> </span><span class="p">{</span> +<a id="line-457" name="line-457"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_OR</span><span class="p">);</span> +<a id="line-458" name="line-458"></a><span class="w"> </span><span class="p">}</span> +<a id="line-459" name="line-459"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"xor"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-460" name="line-460"></a><span class="w"> </span><span class="p">{</span> +<a id="line-461" name="line-461"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_XOR</span><span class="p">);</span> +<a id="line-462" name="line-462"></a><span class="w"> </span><span class="p">}</span> +<a id="line-463" name="line-463"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"not"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-464" name="line-464"></a><span class="w"> </span><span class="p">{</span> +<a id="line-465" name="line-465"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NOT</span><span class="p">);</span> +<a id="line-466" name="line-466"></a><span class="w"> </span><span class="p">}</span> +<a id="line-467" name="line-467"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"in"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-468" name="line-468"></a><span class="w"> </span><span class="p">{</span> +<a id="line-469" name="line-469"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_IN</span><span class="p">);</span> +<a id="line-470" name="line-470"></a><span class="w"> </span><span class="p">}</span> +<a id="line-471" name="line-471"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_function</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-472" name="line-472"></a><span class="w"> </span><span class="p">{</span> +<a id="line-473" name="line-473"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">);</span> +<a id="line-474" name="line-474"></a><span class="w"> </span><span class="p">}</span> +<a id="line-475" name="line-475"></a><span class="w"> </span><span class="k">else</span> +<a id="line-476" name="line-476"></a><span class="w"> </span><span class="p">{</span> +<a id="line-477" name="line-477"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">);</span> +<a id="line-478" name="line-478"></a><span class="w"> </span><span class="p">}</span> +<a id="line-479" name="line-479"></a><span class="w"> </span><span class="p">}</span> +<a id="line-480" name="line-480"></a><span class="w"> </span><span class="k">else</span> +<a id="line-481" name="line-481"></a><span class="w"> </span><span class="p">{</span> +<a id="line-482" name="line-482"></a><span class="w"> </span><span class="n">pl_roll_back</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-483" name="line-483"></a><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">g_ascii_strdown</span><span class="p">(</span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">),</span><span class="w"> </span><span class="mi">-1</span><span class="p">);</span> +<a id="line-484" name="line-484"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"mod"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-485" name="line-485"></a><span class="w"> </span><span class="p">{</span> +<a id="line-486" name="line-486"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_MOD</span><span class="p">);</span> +<a id="line-487" name="line-487"></a><span class="w"> </span><span class="p">}</span> +<a id="line-488" name="line-488"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"and"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-489" name="line-489"></a><span class="w"> </span><span class="p">{</span> +<a id="line-490" name="line-490"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_AND</span><span class="p">);</span> +<a id="line-491" name="line-491"></a><span class="w"> </span><span class="p">}</span> +<a id="line-492" name="line-492"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"or"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-493" name="line-493"></a><span class="w"> </span><span class="p">{</span> +<a id="line-494" name="line-494"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_OR</span><span class="p">);</span> +<a id="line-495" name="line-495"></a><span class="w"> </span><span class="p">}</span> +<a id="line-496" name="line-496"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"xor"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-497" name="line-497"></a><span class="w"> </span><span class="p">{</span> +<a id="line-498" name="line-498"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_XOR</span><span class="p">);</span> +<a id="line-499" name="line-499"></a><span class="w"> </span><span class="p">}</span> +<a id="line-500" name="line-500"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"not"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-501" name="line-501"></a><span class="w"> </span><span class="p">{</span> +<a id="line-502" name="line-502"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_NOT</span><span class="p">);</span> +<a id="line-503" name="line-503"></a><span class="w"> </span><span class="p">}</span> +<a id="line-504" name="line-504"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">g_strcmp0</span><span class="p">(</span><span class="n">tmp</span><span class="p">,</span><span class="w"> </span><span class="s">"in"</span><span class="p">)</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-505" name="line-505"></a><span class="w"> </span><span class="p">{</span> +<a id="line-506" name="line-506"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_IN</span><span class="p">);</span> +<a id="line-507" name="line-507"></a><span class="w"> </span><span class="p">}</span> +<a id="line-508" name="line-508"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">l_check_if_function</span><span class="p">(</span><span class="n">lstate</span><span class="p">))</span> +<a id="line-509" name="line-509"></a><span class="w"> </span><span class="p">{</span> +<a id="line-510" name="line-510"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">);</span> +<a id="line-511" name="line-511"></a><span class="w"> </span><span class="p">}</span> +<a id="line-512" name="line-512"></a><span class="w"> </span><span class="k">else</span> +<a id="line-513" name="line-513"></a><span class="w"> </span><span class="p">{</span> +<a id="line-514" name="line-514"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">);</span> +<a id="line-515" name="line-515"></a><span class="w"> </span><span class="p">}</span> +<a id="line-516" name="line-516"></a><span class="w"> </span><span class="p">}</span> +<a id="line-517" name="line-517"></a><span class="w"> </span><span class="p">}</span> +<a id="line-518" name="line-518"></a><span class="w"> </span><span class="p">}</span> +<a id="line-519" name="line-519"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_EOS</span><span class="p">)</span> +<a id="line-520" name="line-520"></a><span class="w"> </span><span class="p">{</span> +<a id="line-521" name="line-521"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">PL_EOS</span><span class="p">);</span> +<a id="line-522" name="line-522"></a><span class="w"> </span><span class="p">}</span> +<a id="line-523" name="line-523"></a><span class="w"> </span><span class="cm">/* ERROR: Unexpected token.. X( */</span> +<a id="line-524" name="line-524"></a><span class="w"> </span><span class="n">set_error</span><span class="p">(</span><span class="n">lstate</span><span class="o">-></span><span class="n">parent</span><span class="p">,</span><span class="w"> </span><span class="n">PARSER_ERR_INVALID</span><span class="p">,</span><span class="w"> </span><span class="n">tmp</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_get_marked_substring</span><span class="p">(</span><span class="n">state</span><span class="p">));</span> +<a id="line-525" name="line-525"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">tmp</span><span class="p">);</span> +<a id="line-526" name="line-526"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">l_insert_token</span><span class="p">(</span><span class="n">lstate</span><span class="p">,</span><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="p">);</span> +<a id="line-527" name="line-527"></a><span class="p">}</span> +<a id="line-528" name="line-528"></a> +<a id="line-529" name="line-529"></a><span class="cm">/* Call l_insert_next_token() as many times as needed to completely tokenize the string. */</span> +<a id="line-530" name="line-530"></a><span class="kt">void</span> +<a id="line-531" name="line-531"></a><span class="nf">l_insert_all_tokens</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-532" name="line-532"></a><span class="p">{</span> +<a id="line-533" name="line-533"></a><span class="hll"><span class="w"> </span><span class="n">LexerToken</span><span class="o">*</span><span class="w"> </span><span class="n">token</span><span class="p">;</span><div class="verbose expandable"><span class="error2"><--- The scope of the variable 'token' can be reduced. <span class="marker">[+]</span></span><div class="content">The scope of the variable 'token' can be reduced. Warning: Be careful when fixing this message, especially when there are inner loops. Here is an example where cppcheck will write that the scope for 'i' can be reduced: +void f(int x) +{ + int i = 0; + if (x) { + // it's safe to move 'int i = 0;' here + for (int n = 0; n < 10; ++n) { + // it is possible but not safe to move 'int i = 0;' here + do_something(&i); + } + } +} +When you see this message it is always safe to reduce the variable scope 1 level.</div></div> +</span><a id="line-534" name="line-534"></a><span class="w"> </span><span class="k">while</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span> +<a id="line-535" name="line-535"></a><span class="w"> </span><span class="p">{</span> +<a id="line-536" name="line-536"></a><span class="w"> </span><span class="n">token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">l_insert_next_token</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-537" name="line-537"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">token</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-538" name="line-538"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">token</span><span class="o">-></span><span class="n">token_type</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">PL_EOS</span><span class="p">)</span> +<a id="line-539" name="line-539"></a><span class="w"> </span><span class="p">{</span> +<a id="line-540" name="line-540"></a><span class="w"> </span><span class="k">break</span><span class="p">;</span> +<a id="line-541" name="line-541"></a><span class="w"> </span><span class="p">}</span> +<a id="line-542" name="line-542"></a><span class="w"> </span><span class="p">}</span> +<a id="line-543" name="line-543"></a><span class="p">}</span> +<a id="line-544" name="line-544"></a> +<a id="line-545" name="line-545"></a><span class="cm">/* Create a lexer state from given input string. This will take care of pre-lexer state. */</span> +<a id="line-546" name="line-546"></a><span class="n">LexerState</span><span class="o">*</span> +<a id="line-547" name="line-547"></a><span class="nf">l_create_lexer</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">input</span><span class="p">,</span><span class="w"> </span><span class="k">struct</span><span class="w"> </span><span class="nc">parser_state</span><span class="o">*</span><span class="w"> </span><span class="n">parent</span><span class="p">)</span> +<a id="line-548" name="line-548"></a><span class="p">{</span> +<a id="line-549" name="line-549"></a><span class="w"> </span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-550" name="line-550"></a><span class="w"> </span><span class="n">ret</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">(</span><span class="n">LexerState</span><span class="w"> </span><span class="o">*</span><span class="p">)</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="p">(</span><span class="n">LexerState</span><span class="p">));</span> +<a id="line-551" name="line-551"></a><span class="w"> </span><span class="n">assert</span><span class="p">(</span><span class="n">ret</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">);</span> +<a id="line-552" name="line-552"></a><span class="w"> </span><span class="n">ret</span><span class="o">-></span><span class="n">prelexer</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">pl_create_scanner</span><span class="p">(</span><span class="n">input</span><span class="p">);</span> +<a id="line-553" name="line-553"></a><span class="w"> </span><span class="n">ret</span><span class="o">-></span><span class="n">tokens</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">NULL</span><span class="p">;</span> +<a id="line-554" name="line-554"></a><span class="w"> </span><span class="n">ret</span><span class="o">-></span><span class="n">token_count</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-555" name="line-555"></a><span class="w"> </span><span class="n">ret</span><span class="o">-></span><span class="n">next_token</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span> +<a id="line-556" name="line-556"></a><span class="w"> </span><span class="n">ret</span><span class="o">-></span><span class="n">parent</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">parent</span><span class="p">;</span> +<a id="line-557" name="line-557"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">ret</span><span class="p">;</span> +<a id="line-558" name="line-558"></a><span class="p">}</span> +<a id="line-559" name="line-559"></a> +<a id="line-560" name="line-560"></a><span class="cm">/* Destroy lexer state and free memory. */</span> +<a id="line-561" name="line-561"></a><span class="kt">void</span> +<a id="line-562" name="line-562"></a><span class="nf">l_destroy_lexer</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-563" name="line-563"></a><span class="p">{</span> +<a id="line-564" name="line-564"></a><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">l</span><span class="p">;</span> +<a id="line-565" name="line-565"></a><span class="w"> </span><span class="n">pl_destroy_scanner</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">prelexer</span><span class="p">);</span> +<a id="line-566" name="line-566"></a><span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="n">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="p">;</span><span class="w"> </span><span class="n">l</span><span class="o">++</span><span class="p">)</span> +<a id="line-567" name="line-567"></a><span class="w"> </span><span class="p">{</span> +<a id="line-568" name="line-568"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">l</span><span class="p">].</span><span class="n">string</span><span class="p">);</span> +<a id="line-569" name="line-569"></a><span class="w"> </span><span class="p">}</span> +<a id="line-570" name="line-570"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">);</span> +<a id="line-571" name="line-571"></a><span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">state</span><span class="p">);</span> +<a id="line-572" name="line-572"></a><span class="p">}</span> +<a id="line-573" name="line-573"></a> +<a id="line-574" name="line-574"></a><span class="cm">/* Get next token interface. Will be called by parser to get pointer to next token in token stream. */</span> +<a id="line-575" name="line-575"></a><span class="n">LexerToken</span><span class="o">*</span> +<a id="line-576" name="line-576"></a><span class="nf">l_get_next_token</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-577" name="line-577"></a><span class="p">{</span> +<a id="line-578" name="line-578"></a><span class="w"> </span><span class="cm">/* Return PL_EOS token after token stream reaches to its end. */</span> +<a id="line-579" name="line-579"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">next_token</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="p">)</span> +<a id="line-580" name="line-580"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">token_count</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="mi">1</span><span class="p">];</span> +<a id="line-581" name="line-581"></a><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="o">&</span><span class="n">state</span><span class="o">-></span><span class="n">tokens</span><span class="p">[</span><span class="n">state</span><span class="o">-></span><span class="n">next_token</span><span class="o">++</span><span class="p">];</span> +<a id="line-582" name="line-582"></a><span class="p">}</span> +<a id="line-583" name="line-583"></a> +<a id="line-584" name="line-584"></a><span class="cm">/* Roll back one lexer token. */</span> +<a id="line-585" name="line-585"></a><span class="kt">void</span> +<a id="line-586" name="line-586"></a><span class="nf">l_roll_back</span><span class="p">(</span><span class="n">LexerState</span><span class="o">*</span><span class="w"> </span><span class="n">state</span><span class="p">)</span> +<a id="line-587" name="line-587"></a><span class="p">{</span> +<a id="line-588" name="line-588"></a><span class="w"> </span><span class="k">if</span><span class="p">(</span><span class="n">state</span><span class="o">-></span><span class="n">next_token</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">0</span><span class="p">)</span> +<a id="line-589" name="line-589"></a><span class="w"> </span><span class="n">state</span><span class="o">-></span><span class="n">next_token</span><span class="o">--</span><span class="p">;</span> +<a id="line-590" name="line-590"></a><span class="p">}</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/9.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/9.html new file mode 100644 index 0000000..33bd2b6 --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/9.html @@ -0,0 +1,423 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> +pre { line-height: 125%; } +td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } +td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } +.highlight .hll { background-color: #ffffcc } +.highlight { background: #ffffff; } +.highlight .c { color: #888888 } /* Comment */ +.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #008800; font-weight: bold } /* Keyword */ +.highlight .o { color: #333333 } /* Operator */ +.highlight .ch { color: #888888 } /* Comment.Hashbang */ +.highlight .cm { color: #888888 } /* Comment.Multiline */ +.highlight .cp { color: #557799 } /* Comment.Preproc */ +.highlight .cpf { color: #888888 } /* Comment.PreprocFile */ +.highlight .c1 { color: #888888 } /* Comment.Single */ +.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */ +.highlight .gd { color: #A00000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */ +.highlight .gi { color: #00A000 } /* Generic.Inserted */ +.highlight .go { color: #888888 } /* Generic.Output */ +.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #0044DD } /* Generic.Traceback */ +.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */ +.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */ +.highlight .s { background-color: #fff0f0 } /* Literal.String */ +.highlight .na { color: #0000CC } /* Name.Attribute */ +.highlight .nb { color: #007020 } /* Name.Builtin */ +.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */ +.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ +.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */ +.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */ +.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */ +.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #007700 } /* Name.Tag */ +.highlight .nv { color: #996633 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */ +.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */ +.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */ +.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ +.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */ +.highlight .sa { background-color: #fff0f0 } /* Literal.String.Affix */ +.highlight .sb { background-color: #fff0f0 } /* Literal.String.Backtick */ +.highlight .sc { color: #0044DD } /* Literal.String.Char */ +.highlight .dl { background-color: #fff0f0 } /* Literal.String.Delimiter */ +.highlight .sd { color: #DD4422 } /* Literal.String.Doc */ +.highlight .s2 { background-color: #fff0f0 } /* Literal.String.Double */ +.highlight .se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ +.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ +.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */ +.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */ +.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ +.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */ +.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */ +.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */ +.highlight .fm { color: #0066BB; font-weight: bold } /* Name.Function.Magic */ +.highlight .vc { color: #336699 } /* Name.Variable.Class */ +.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */ +.highlight .vi { color: #3333BB } /* Name.Variable.Instance */ +.highlight .vm { color: #996633 } /* Name.Variable.Magic */ +.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: src/prelexer.h</h1> + + </div> + + <div id="menu"> + <p><a href="index.html">Defects:</a> prelexer.h</p> +<a href="9.html#line-4"> missingIncludeSystem 4</a> + </div> + <div id="content"> +<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span> +<span class="normal"> 2</span> +<span class="normal"> 3</span> +<span class="normal"> 4</span> +<span class="normal"> 5</span> +<span class="normal"> 6</span> +<span class="normal"> 7</span> +<span class="normal"> 8</span> +<span class="normal"> 9</span> +<span class="normal">10</span> +<span class="normal">11</span> +<span class="normal">12</span> +<span class="normal">13</span> +<span class="normal">14</span> +<span class="normal">15</span> +<span class="normal">16</span> +<span class="normal">17</span> +<span class="normal">18</span> +<span class="normal">19</span> +<span class="normal">20</span> +<span class="normal">21</span> +<span class="normal">22</span> +<span class="normal">23</span> +<span class="normal">24</span> +<span class="normal">25</span> +<span class="normal">26</span> +<span class="normal">27</span> +<span class="normal">28</span> +<span class="normal">29</span> +<span class="normal">30</span> +<span class="normal">31</span> +<span class="normal">32</span> +<span class="normal">33</span> +<span class="normal">34</span> +<span class="normal">35</span> +<span class="normal">36</span> +<span class="normal">37</span> +<span class="normal">38</span> +<span class="normal">39</span> +<span class="normal">40</span> +<span class="normal">41</span> +<span class="normal">42</span> +<span class="normal">43</span> +<span class="normal">44</span> +<span class="normal">45</span> +<span class="normal">46</span> +<span class="normal">47</span> +<span class="normal">48</span> +<span class="normal">49</span> +<span class="normal">50</span> +<span class="normal">51</span> +<span class="normal">52</span> +<span class="normal">53</span> +<span class="normal">54</span> +<span class="normal">55</span> +<span class="normal">56</span> +<span class="normal">57</span> +<span class="normal">58</span> +<span class="normal">59</span> +<span class="normal">60</span> +<span class="normal">61</span> +<span class="normal">62</span> +<span class="normal">63</span> +<span class="normal">64</span> +<span class="normal">65</span> +<span class="normal">66</span> +<span class="normal">67</span> +<span class="normal">68</span> +<span class="normal">69</span> +<span class="normal">70</span> +<span class="normal">71</span> +<span class="normal">72</span> +<span class="normal">73</span> +<span class="normal">74</span> +<span class="normal">75</span> +<span class="normal">76</span> +<span class="normal">77</span> +<span class="normal">78</span> +<span class="normal">79</span> +<span class="normal">80</span> +<span class="normal">81</span> +<span class="normal">82</span> +<span class="normal">83</span> +<span class="normal">84</span> +<span class="normal">85</span> +<span class="normal">86</span> +<span class="normal">87</span> +<span class="normal">88</span> +<span class="normal">89</span> +<span class="normal">90</span> +<span class="normal">91</span> +<span class="normal">92</span> +<span class="normal">93</span></pre></div></td><td class="code"><div><pre><span></span><a id="line-1" name="line-1"></a><span class="cp">#ifndef PRE_LEXER_H</span> +<a id="line-2" name="line-2"></a><span class="cp">#define PRE_LEXER_H</span> +<a id="line-3" name="line-3"></a> +<a id="line-4" name="line-4"></a><span class="hll"><span class="cp">#include</span><span class="w"> </span><span class="cpf"><glib.h></span><span class="error2"><--- Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</span> +</span><a id="line-5" name="line-5"></a> +<a id="line-6" name="line-6"></a><span class="cm">/* Structure to store lexer state. */</span> +<a id="line-7" name="line-7"></a><span class="k">typedef</span><span class="w"> </span><span class="k">struct</span> +<a id="line-8" name="line-8"></a><span class="p">{</span> +<a id="line-9" name="line-9"></a><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="n">stream</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Pointer to the local copy of input string. */</span> +<a id="line-10" name="line-10"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">length</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Length of input string; stored to reduce calls to strlen(). */</span> +<a id="line-11" name="line-11"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">next_index</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Index of next (to be read) character from input. */</span> +<a id="line-12" name="line-12"></a><span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">mark_index</span><span class="p">;</span><span class="w"> </span><span class="cm">/* Location, last marked. Useful for getting substrings as part of highlighting */</span> +<a id="line-13" name="line-13"></a><span class="p">}</span><span class="w"> </span><span class="n">PreLexerState</span><span class="p">;</span> +<a id="line-14" name="line-14"></a> +<a id="line-15" name="line-15"></a><span class="cm">/* Enum for tokens generated by pre-lexer and lexer. */</span> +<a id="line-16" name="line-16"></a><span class="k">typedef</span><span class="w"> </span><span class="k">enum</span> +<a id="line-17" name="line-17"></a><span class="p">{</span> +<a id="line-18" name="line-18"></a><span class="w"> </span><span class="n">T_UNKNOWN</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span><span class="w"> </span><span class="c1">//Unknown</span> +<a id="line-19" name="line-19"></a> +<a id="line-20" name="line-20"></a><span class="w"> </span><span class="cm">/* These are all Pre-Lexer tokens, returned by pre-lexer */</span> +<a id="line-21" name="line-21"></a><span class="w"> </span><span class="n">PL_DECIMAL</span><span class="p">,</span><span class="w"> </span><span class="c1">//Decimal saperator</span> +<a id="line-22" name="line-22"></a><span class="w"> </span><span class="n">PL_DIGIT</span><span class="p">,</span><span class="w"> </span><span class="c1">//Decimal digit</span> +<a id="line-23" name="line-23"></a><span class="w"> </span><span class="n">PL_HEX</span><span class="p">,</span><span class="w"> </span><span class="c1">//A-F of Hex digits</span> +<a id="line-24" name="line-24"></a><span class="w"> </span><span class="n">PL_SUPER_DIGIT</span><span class="p">,</span><span class="w"> </span><span class="c1">//Super digits</span> +<a id="line-25" name="line-25"></a><span class="w"> </span><span class="n">PL_SUPER_MINUS</span><span class="p">,</span><span class="w"> </span><span class="c1">//Super minus</span> +<a id="line-26" name="line-26"></a><span class="w"> </span><span class="n">PL_SUB_DIGIT</span><span class="p">,</span><span class="w"> </span><span class="c1">//Sub digits</span> +<a id="line-27" name="line-27"></a><span class="w"> </span><span class="n">PL_FRACTION</span><span class="p">,</span><span class="w"> </span><span class="c1">//Fractions</span> +<a id="line-28" name="line-28"></a><span class="w"> </span><span class="n">PL_DEGREE</span><span class="p">,</span><span class="w"> </span><span class="c1">//Degree</span> +<a id="line-29" name="line-29"></a><span class="w"> </span><span class="n">PL_MINUTE</span><span class="p">,</span><span class="w"> </span><span class="c1">//Minutes</span> +<a id="line-30" name="line-30"></a><span class="w"> </span><span class="n">PL_SECOND</span><span class="p">,</span><span class="w"> </span><span class="c1">//10 //Seconds</span> +<a id="line-31" name="line-31"></a><span class="w"> </span><span class="n">PL_LETTER</span><span class="p">,</span><span class="w"> </span><span class="c1">//Alphabets</span> +<a id="line-32" name="line-32"></a><span class="w"> </span><span class="n">PL_EOS</span><span class="p">,</span><span class="w"> </span><span class="c1">//End of stream. Yay!!</span> +<a id="line-33" name="line-33"></a><span class="w"> </span><span class="n">PL_SKIP</span><span class="p">,</span><span class="w"> </span><span class="c1">//Skip this symbol (whitespace or newline).</span> +<a id="line-34" name="line-34"></a> +<a id="line-35" name="line-35"></a><span class="w"> </span><span class="cm">/* These are all tokens, returned by Lexer. */</span> +<a id="line-36" name="line-36"></a><span class="w"> </span><span class="n">T_ADD</span><span class="p">,</span><span class="w"> </span><span class="c1">//Plus</span> +<a id="line-37" name="line-37"></a><span class="w"> </span><span class="n">T_SUBTRACT</span><span class="p">,</span><span class="w"> </span><span class="c1">//Minus</span> +<a id="line-38" name="line-38"></a><span class="w"> </span><span class="n">T_MULTIPLY</span><span class="p">,</span><span class="w"> </span><span class="c1">//Multiply</span> +<a id="line-39" name="line-39"></a><span class="w"> </span><span class="n">T_DIV</span><span class="p">,</span><span class="w"> </span><span class="c1">//Divide (note can't use T_DIVIDE as it is defined in *BSD as an "integer divide fault" trap type value)</span> +<a id="line-40" name="line-40"></a><span class="w"> </span><span class="n">T_MOD</span><span class="p">,</span><span class="w"> </span><span class="c1">//Modulus</span> +<a id="line-41" name="line-41"></a><span class="w"> </span><span class="n">T_L_FLOOR</span><span class="p">,</span><span class="w"> </span><span class="c1">//Floor ( Left )</span> +<a id="line-42" name="line-42"></a><span class="w"> </span><span class="n">T_R_FLOOR</span><span class="p">,</span><span class="w"> </span><span class="c1">//20 //Floor ( Right )</span> +<a id="line-43" name="line-43"></a><span class="w"> </span><span class="n">T_L_CEILING</span><span class="p">,</span><span class="w"> </span><span class="c1">//Ceiling ( Left )</span> +<a id="line-44" name="line-44"></a><span class="w"> </span><span class="n">T_R_CEILING</span><span class="p">,</span><span class="w"> </span><span class="c1">//Ceiling ( Right )</span> +<a id="line-45" name="line-45"></a><span class="w"> </span><span class="n">T_ROOT</span><span class="p">,</span><span class="w"> </span><span class="c1">//Square root</span> +<a id="line-46" name="line-46"></a><span class="w"> </span><span class="n">T_ROOT_3</span><span class="p">,</span><span class="w"> </span><span class="c1">//Cube root</span> +<a id="line-47" name="line-47"></a><span class="w"> </span><span class="n">T_ROOT_4</span><span class="p">,</span><span class="w"> </span><span class="c1">//Fourth root</span> +<a id="line-48" name="line-48"></a><span class="w"> </span><span class="n">T_NOT</span><span class="p">,</span><span class="w"> </span><span class="c1">//Bitwise NOT</span> +<a id="line-49" name="line-49"></a><span class="w"> </span><span class="n">T_AND</span><span class="p">,</span><span class="w"> </span><span class="c1">//Bitwise AND</span> +<a id="line-50" name="line-50"></a><span class="w"> </span><span class="n">T_OR</span><span class="p">,</span><span class="w"> </span><span class="c1">//Bitwise OR</span> +<a id="line-51" name="line-51"></a><span class="w"> </span><span class="n">T_XOR</span><span class="p">,</span><span class="w"> </span><span class="c1">//Bitwise XOR</span> +<a id="line-52" name="line-52"></a><span class="w"> </span><span class="n">T_IN</span><span class="p">,</span><span class="w"> </span><span class="c1">//30 //IN ( for converter )</span> +<a id="line-53" name="line-53"></a><span class="w"> </span><span class="n">T_NUMBER</span><span class="p">,</span><span class="w"> </span><span class="c1">//Number</span> +<a id="line-54" name="line-54"></a><span class="w"> </span><span class="n">T_SUP_NUMBER</span><span class="p">,</span><span class="w"> </span><span class="c1">//Super Number</span> +<a id="line-55" name="line-55"></a><span class="w"> </span><span class="n">T_NSUP_NUMBER</span><span class="p">,</span><span class="w"> </span><span class="c1">//Negative Super Number</span> +<a id="line-56" name="line-56"></a><span class="w"> </span><span class="n">T_SUB_NUMBER</span><span class="p">,</span><span class="w"> </span><span class="c1">//Sub Number</span> +<a id="line-57" name="line-57"></a><span class="w"> </span><span class="n">T_FUNCTION</span><span class="p">,</span><span class="w"> </span><span class="c1">//Function</span> +<a id="line-58" name="line-58"></a><span class="w"> </span><span class="n">T_VARIABLE</span><span class="p">,</span><span class="w"> </span><span class="c1">//Variable name</span> +<a id="line-59" name="line-59"></a><span class="w"> </span><span class="n">T_ASSIGN</span><span class="p">,</span><span class="w"> </span><span class="c1">//=</span> +<a id="line-60" name="line-60"></a><span class="w"> </span><span class="n">T_L_R_BRACKET</span><span class="p">,</span><span class="w"> </span><span class="c1">//40 //(</span> +<a id="line-61" name="line-61"></a><span class="w"> </span><span class="n">T_R_R_BRACKET</span><span class="p">,</span><span class="w"> </span><span class="c1">//)</span> +<a id="line-62" name="line-62"></a><span class="w"> </span><span class="n">T_L_S_BRACKET</span><span class="p">,</span><span class="w"> </span><span class="c1">//[</span> +<a id="line-63" name="line-63"></a><span class="w"> </span><span class="n">T_R_S_BRACKET</span><span class="p">,</span><span class="w"> </span><span class="c1">//]</span> +<a id="line-64" name="line-64"></a><span class="w"> </span><span class="n">T_L_C_BRACKET</span><span class="p">,</span><span class="w"> </span><span class="c1">//{</span> +<a id="line-65" name="line-65"></a><span class="w"> </span><span class="n">T_R_C_BRACKET</span><span class="p">,</span><span class="w"> </span><span class="c1">//}</span> +<a id="line-66" name="line-66"></a><span class="w"> </span><span class="n">T_ABS</span><span class="p">,</span><span class="w"> </span><span class="c1">//|</span> +<a id="line-67" name="line-67"></a><span class="w"> </span><span class="n">T_POWER</span><span class="p">,</span><span class="w"> </span><span class="c1">//^</span> +<a id="line-68" name="line-68"></a><span class="w"> </span><span class="n">T_FACTORIAL</span><span class="p">,</span><span class="w"> </span><span class="c1">//!</span> +<a id="line-69" name="line-69"></a><span class="w"> </span><span class="n">T_PERCENTAGE</span><span class="w"> </span><span class="c1">//49 //%</span> +<a id="line-70" name="line-70"></a><span class="p">}</span><span class="w"> </span><span class="n">LexerTokenType</span><span class="p">;</span> +<a id="line-71" name="line-71"></a> +<a id="line-72" name="line-72"></a><span class="cm">/* Creates a scanner state. Useful when multiple scanners are in action. */</span> +<a id="line-73" name="line-73"></a><span class="n">PreLexerState</span><span class="o">*</span><span class="w"> </span><span class="nf">pl_create_scanner</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">gchar</span><span class="o">*</span><span class="p">);</span> +<a id="line-74" name="line-74"></a> +<a id="line-75" name="line-75"></a><span class="cm">/* Destroy and free memory used by LexerState object. */</span> +<a id="line-76" name="line-76"></a><span class="kt">void</span><span class="w"> </span><span class="nf">pl_destroy_scanner</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="p">);</span> +<a id="line-77" name="line-77"></a> +<a id="line-78" name="line-78"></a><span class="cm">/* Roll back last scanned unichar. */</span> +<a id="line-79" name="line-79"></a><span class="kt">void</span><span class="w"> </span><span class="nf">pl_roll_back</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="p">);</span> +<a id="line-80" name="line-80"></a> +<a id="line-81" name="line-81"></a><span class="cm">/* Get validated gunichar from input stream. */</span> +<a id="line-82" name="line-82"></a><span class="n">gunichar</span><span class="w"> </span><span class="nf">pl_get_next_gunichar</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="p">);</span> +<a id="line-83" name="line-83"></a> +<a id="line-84" name="line-84"></a><span class="cm">/* Set marker index. To be used for highlighting and error reporting. */</span> +<a id="line-85" name="line-85"></a><span class="kt">void</span><span class="w"> </span><span class="nf">pl_set_marker</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="p">);</span> +<a id="line-86" name="line-86"></a> +<a id="line-87" name="line-87"></a><span class="cm">/* Get marked substring. To be used for error reporting. */</span> +<a id="line-88" name="line-88"></a><span class="n">gchar</span><span class="o">*</span><span class="w"> </span><span class="nf">pl_get_marked_substring</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">PreLexerState</span><span class="o">*</span><span class="p">);</span> +<a id="line-89" name="line-89"></a> +<a id="line-90" name="line-90"></a><span class="cm">/* Get next Pre-Lexer token from stream. */</span> +<a id="line-91" name="line-91"></a><span class="n">LexerTokenType</span><span class="w"> </span><span class="nf">pl_get_next_token</span><span class="p">(</span><span class="n">PreLexerState</span><span class="o">*</span><span class="p">);</span> +<a id="line-92" name="line-92"></a> +<a id="line-93" name="line-93"></a><span class="cp">#endif </span><span class="cm">/* PRE_LEXER_H */</span> +</pre></div></td></tr></table></div> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/index.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/index.html new file mode 100644 index 0000000..69abb4a --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/index.html @@ -0,0 +1,523 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> + + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc</h1> + <div id="filters"> + + <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="error"checked/>error</label> + <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="warning"checked/>warning</label> + <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="portability"disabled/>portability</label> + <label class="checkBtn disabled"><input type="checkbox" onclick="toggleSeverity(this)" id="performance"disabled/>performance</label> + <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="style"checked/>style</label> + <label class="checkBtn"><input type="checkbox" onclick="toggleSeverity(this)" id="information"checked/>information</label> + | + <label class="checkBtn"><input type="checkbox" onclick="toggleTool(this)" id="cppcheck"checked/>cppcheck</label> + <label class="checkBtn disabled"><input type="checkbox" onclick="toggleTool(this)" id="clang-tidy"disabled/>clang-tidy</label> + | + <label class="severityHeader">File: <input type="text" oninput="filterFile(this.value)"/></label> + <label class="severityHeader">Filter: <input type="text" oninput="filterText(this.value)"/></label> + </div> + + </div> + + <div id="menu_index"> + <p><a href="index.html">Defect summary</a> </p> + + <label><input type="checkbox" class="idToggle" onclick="toggleAll()" checked> Toggle all</label> + <table> + <tr><th>Show</th><th>#</th><th>Defect ID</th></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingIncludeSystem" name="missingIncludeSystem" checked></td><td>140</td><td>missingIncludeSystem</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterPointer" name="constParameterPointer" checked></td><td>38</td><td>constParameterPointer</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="variableScope" name="variableScope" checked></td><td>18</td><td>variableScope</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariablePointer" name="constVariablePointer" checked></td><td>5</td><td>constVariablePointer</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="knownConditionTrueFalse" name="knownConditionTrueFalse" checked></td><td>5</td><td>knownConditionTrueFalse</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="unreadVariable" name="unreadVariable" checked></td><td>3</td><td>unreadVariable</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="unusedStructMember" name="unusedStructMember" checked></td><td>3</td><td>unusedStructMember</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constVariable" name="constVariable" checked></td><td>2</td><td>constVariable</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="arrayIndexOutOfBounds" name="arrayIndexOutOfBounds" checked></td><td>1</td><td>arrayIndexOutOfBounds</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="constParameterCallback" name="constParameterCallback" checked></td><td>1</td><td>constParameterCallback</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="invalidscanf" name="invalidscanf" checked></td><td>1</td><td>invalidscanf</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="missingInclude" name="missingInclude" checked></td><td>1</td><td>missingInclude</td></tr> + <tr><td><input type="checkbox" class="idToggle" onclick="toggleDisplay(this)" id="uninitvar" name="uninitvar" checked></td><td>1</td><td>uninitvar</td></tr> + <tr><td></td><td>219</td><td>total</td></tr> + </table> + <p><a href="stats.html">Statistics</a></p> + </div> + <div id="content_index"> + + <table class="summaryTable"> + <tr><th>Line</th><th>Id</th><th>CWE</th><th>Severity</th><th>Message</th></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="0.html">src/currency-manager.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gstdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <libxml/tree.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <libxml/parser.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-18">18</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <libxml/xpath.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-19">19</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <libxml/xpathInternals.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="0.html#line-20">20</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constVariablePointer sev_style issue"><td><a href="0.html#line-375">375</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 'value' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="3.html">src/currency.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="3.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="3.html#line-65">65</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'value' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="1.html">src/currency.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="1.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="5.html">src/financial.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="5.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-18">18</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'fv' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-18">18</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pv' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-18">18</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pint' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-45">45</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'period' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-45">45</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'cost' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-45">45</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'life' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-88">88</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pint' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-88">88</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'n' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-88">88</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pmt' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-116">116</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'margin' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-116">116</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'cost' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-137">137</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pint' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-137">137</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'n' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-137">137</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'prin' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-167">167</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pint' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-167">167</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'n' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-167">167</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pmt' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-197">197</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'fv' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-197">197</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pv' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-197">197</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'n' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-225">225</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'cost' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-225">225</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'salvage' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-225">225</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'life' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-242">242</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'life' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-242">242</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'period' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-242">242</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'cost' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-242">242</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'salvage' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-276">276</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pint' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-276">276</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'fv' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="5.html#line-276">276</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'pmt' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="8.html">src/lexer.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="8.html#line-1">1</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="8.html#line-2">2</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <assert.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="8.html#line-3">3</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="8.html#line-34">34</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'count' can be reduced.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="8.html#line-125">125</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'type' is assigned a value that is never used.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="8.html#line-533">533</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'token' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="11.html">src/mate-calc-cmd.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <sys/types.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <time.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="11.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="11.html#line-71">71</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'line' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="12.html">src/mate-calc-resources.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="12.html#line-1">1</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gio/gio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="12.html#line-9">9</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>union member 'Anonymous0::alignment' is never used.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="12.html#line-9">9</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>union member 'Anonymous0::ptr' is never used.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="13.html">src/mate-calc.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-18">18</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-19">19</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="13.html#line-20">20</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="13.html#line-127">127</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'arg' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="22.html">src/math-buttons.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="22.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="unusedStructMember sev_style issue"><td><a href="22.html#line-86">86</a></td><td>unusedStructMember</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>struct member 'ButtonData::class' is never used.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="22.html#line-472">472</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'valid' is assigned a value that is never used.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="16.html">src/math-buttons.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="16.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="25.html">src/math-converter.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="25.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="23.html">src/math-converter.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="23.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="26.html">src/math-display.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="26.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="26.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="26.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="15.html">src/math-display.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="15.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="15.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="27.html">src/math-equation.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-18">18</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="27.html#line-19">19</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="27.html#line-421">421</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'equation' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="27.html#line-828">828</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'text' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="27.html#line-1303">1303</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'next_factor' can be reduced.</td></tr> + <tr class="constParameterCallback sev_style issue"><td><a href="27.html#line-1872">1872</a></td><td>constParameterCallback</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'text' can be declared as pointer to const. However it seems that 'insert_text_cb' is a callback function, if 'text' is declared with const you might also need to cast function pointer(s).</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="6.html">src/math-equation.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="6.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="29.html">src/math-history-entry.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="29.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="29.html#line-63">63</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'answer' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="30.html">src/math-history-entry.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="30.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="30.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="32.html">src/math-history.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="32.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="32.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="32.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="31.html">src/math-history.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="31.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="33.html">src/math-preferences.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="33.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="33.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="unreadVariable sev_style issue"><td><a href="33.html#line-150">150</a></td><td>unreadVariable</td><td><a href="https://cwe.mitre.org/data/definitions/563.html">563</a></td><td>style</td><td>Variable 'valid' is assigned a value that is never used.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="17.html">src/math-preferences.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="17.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="17.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="34.html">src/math-variable-popup.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="34.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="24.html">src/math-variable-popup.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="24.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="35.html">src/math-variables.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="35.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="35.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constVariablePointer sev_style issue"><td><a href="35.html#line-90">90</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 'name' can be declared as pointer to const</td></tr> + <tr class="constVariablePointer sev_style issue"><td><a href="35.html#line-91">91</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 'value' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="7.html">src/math-variables.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="7.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="36.html">src/math-window.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="36.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <config.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="36.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="36.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gtk/gtk.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="36.html#line-18">18</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <gdk/gdkkeysyms.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="14.html">src/math-window.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="14.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="37.html">src/mp-binary.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="37.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="uninitvar sev_error issue"><td><a href="37.html#line-69">69</a></td><td>uninitvar</td><td><a href="https://cwe.mitre.org/data/definitions/457.html">457</a></td><td>error</td><td class="error">Uninitialized variable: text_out</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="38.html">src/mp-convert.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="38.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="38.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="38.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="38.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="38.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="38.html#line-17">17</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <langinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="arrayIndexOutOfBounds sev_error issue"><td><a href="38.html#line-169">169</a></td><td>arrayIndexOutOfBounds</td><td><a href="https://cwe.mitre.org/data/definitions/788.html">788</a></td><td>error</td><td class="error">Array 'digits[0][10]' accessed at index digits[*][10], which is out of bounds.</td></tr> + <tr class="invalidscanf sev_warning issue"><td><a href="38.html#line-199">199</a></td><td>invalidscanf</td><td><a href="https://cwe.mitre.org/data/definitions/119.html">119</a></td><td>warning</td><td class="warning">sscanf() without field width limits can crash with huge input data.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="38.html#line-229">229</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'numerators' can be reduced.</td></tr> + <tr class="constVariable sev_style issue"><td><a href="38.html#line-229">229</a></td><td>constVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 'numerators' can be declared as const array</td></tr> + <tr class="variableScope sev_style issue"><td><a href="38.html#line-230">230</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'denominators' can be reduced.</td></tr> + <tr class="constVariable sev_style issue"><td><a href="38.html#line-230">230</a></td><td>constVariable</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 'denominators' can be declared as const array</td></tr> + <tr class="knownConditionTrueFalse sev_style issue"><td><a href="38.html#line-317">317</a></td><td>knownConditionTrueFalse</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The comparison 'multiplier != 0' is always false.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="28.html">src/mp-enums.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="28.html#line-8">8</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="39.html">src/mp-equation.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="39.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <ctype.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="39.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="39.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="39.html#line-292">292</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'err' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="40.html">src/mp-serializer.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="40.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <langinfo.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="40.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="40.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="40.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="40.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="knownConditionTrueFalse sev_style issue"><td><a href="40.html#line-225">225</a></td><td>knownConditionTrueFalse</td><td><a href="https://cwe.mitre.org/data/definitions/570.html">570</a></td><td>style</td><td>Condition 'strcmp(s->str,"+0")==0' is always false</td></tr> + <tr class="knownConditionTrueFalse sev_style issue"><td><a href="40.html#line-227">227</a></td><td>knownConditionTrueFalse</td><td><a href="https://cwe.mitre.org/data/definitions/571.html">571</a></td><td>style</td><td>Condition 'strcmp(s->str,"0")!=0' is always true</td></tr> + <tr class="knownConditionTrueFalse sev_style issue"><td><a href="40.html#line-370">370</a></td><td>knownConditionTrueFalse</td><td><a href="https://cwe.mitre.org/data/definitions/570.html">570</a></td><td>style</td><td>Condition 'strcmp(s->str,"+0")==0' is always false</td></tr> + <tr class="knownConditionTrueFalse sev_style issue"><td><a href="40.html#line-372">372</a></td><td>knownConditionTrueFalse</td><td><a href="https://cwe.mitre.org/data/definitions/571.html">571</a></td><td>style</td><td>Condition 'strcmp(s->str,"0")!=0' is always true</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="4.html">src/mp-serializer.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="4.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="41.html">src/mp-trigonometric.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="41.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="41.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="41.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="41.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <libintl.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="42.html">src/mp.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="42.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="42.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="42.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="42.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <math.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="42.html#line-16">16</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <errno.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="42.html#line-658">658</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'n' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="2.html">src/mp.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-33">33</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdbool.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-34">34</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdint.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-35">35</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-36">36</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-37">37</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <mpfr.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="2.html#line-38">38</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <mpc.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="43.html">src/parser.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="43.html#line-1">1</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="43.html#line-2">2</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="43.html#line-3">3</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <assert.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="43.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="43.html#line-73">73</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'state' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="43.html#line-80">80</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'state' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="43.html#line-106">106</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'left' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="43.html#line-106">106</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'right' can be declared as pointer to const</td></tr> + <tr class="variableScope sev_style issue"><td><a href="43.html#line-327">327</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'buffer' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="43.html#line-542">542</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'node' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="43.html#line-1165">1165</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'node' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="43.html#line-1209">1209</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'node' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="10.html">src/parser.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="10.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <lexer.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="44.html">src/parserfunc.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="44.html#line-1">1</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="44.html#line-2">2</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="44.html#line-3">3</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="44.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="44.html#line-172">172</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'buffer' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="44.html#line-228">228</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'buffer' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="45.html">src/prelexer.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="45.html#line-1">1</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="45.html#line-2">2</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="45.html#line-3">3</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="45.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <assert.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="9.html">src/prelexer.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="9.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="46.html">src/test-mp-equation.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="46.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdlib.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="46.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="46.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="46.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="46.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="47.html">src/test-mp.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="47.html#line-11">11</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="47.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdio.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="47.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="47.html#line-14">14</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <stdarg.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="47.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <locale.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="48.html">src/unit-category.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="48.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="19.html">src/unit-category.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="19.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="49.html">src/unit-manager.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="49.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="49.html#line-13">13</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="49.html#line-189">189</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'u' can be reduced.</td></tr> + <tr class="variableScope sev_style issue"><td><a href="49.html#line-208">208</a></td><td>variableScope</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>The scope of the variable 'u' can be reduced.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="18.html">src/unit-manager.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="18.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="50.html">src/unit.c</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="50.html#line-12">12</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <string.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="constVariablePointer sev_style issue"><td><a href="50.html#line-80">80</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 's' can be declared as pointer to const</td></tr> + <tr class="constVariablePointer sev_style issue"><td><a href="50.html#line-104">104</a></td><td>constVariablePointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Variable 'x' can be declared as pointer to const</td></tr> + <tr class="constParameterPointer sev_style issue"><td><a href="50.html#line-173">173</a></td><td>constParameterPointer</td><td><a href="https://cwe.mitre.org/data/definitions/398.html">398</a></td><td>style</td><td>Parameter 'x' can be declared as pointer to const</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="20.html">src/unit.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="20.html#line-15">15</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib-object.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tbody class="fileEntry"> + <tr><td colspan="5"><a href="21.html">src/utility.h</a></td></tr> + <tr class="missingIncludeSystem sev_information issue"><td><a href="21.html#line-4">4</a></td><td>missingIncludeSystem</td><td></td><td>information</td><td>Include file: <glib/gi18n.h> not found. Please note: Cppcheck does not need standard library headers to get proper results.</td></tr> + <tr class="missingInclude sev_information issue"><td><a href="21.html#line-5">5</a></td><td>missingInclude</td><td></td><td>information</td><td>Include file: "config.h" not found.</td></tr> + </tbody> + </table> + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/stats.html b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/stats.html new file mode 100644 index 0000000..645f71d --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/stats.html @@ -0,0 +1,195 @@ + +<!doctype html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Cppcheck - HTML report - mate-calc</title> + <link rel="stylesheet" href="style.css"> + <style> + + </style> + <script> + function getStyle(el, styleProp) { + var y; + + if (el.currentStyle) { + y = el.currentStyle[styleProp]; + } else if (window.getComputedStyle) { + y = document.defaultView.getComputedStyle(el, null).getPropertyValue(styleProp); + } + + return y; + } + + function toggle() { + var el = this.expandable_content; + var mark = this.expandable_marker; + + if (el.style.display === "block") { + el.style.display = "none"; + mark.textContent = "[+]"; + } else { + el.style.display = "block"; + mark.textContent = "[-]"; + } + } + + function initExpandables() { + var elements = document.querySelectorAll(".expandable"); + + for (var i = 0, len = elements.length; i < len; i++) { + var el = elements[i]; + var clickable = el.querySelector("span"); + var marker = clickable.querySelector(".marker"); + var content = el.querySelector(".content"); + var width = clickable.clientWidth - parseInt(getStyle(content, "padding-left")) - parseInt(getStyle(content, "padding-right")); + content.style.width = width + "px"; + clickable.expandable_content = content; + clickable.expandable_marker = marker; + clickable.addEventListener("click", toggle); + } + } + + function toggleDisplay(cb) { + var elements = document.querySelectorAll("." + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("id-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleSeverity(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + var elements = document.querySelectorAll(".sev_" + cb.id); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("severity-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleTool(cb) { + cb.parentElement.classList.toggle("unchecked", !cb.checked); + + var elements; + if (cb.id == "clang-tidy") + elements = document.querySelectorAll("[class^=clang-tidy-]"); + else + elements = document.querySelectorAll(".issue:not([class^=clang-tidy-])"); + + for (var i = 0, len = elements.length; i < len; i++) { + elements[i].classList.toggle("tool-filtered", !cb.checked); + } + + updateFileRows(); + } + + function toggleAll() { + var elements = document.querySelectorAll(".idToggle"); + + // starting from 1 since 0 is the "toggle all" input + for (var i = 1, len = elements.length; i < len; i++) { + var changed = elements[i].checked != elements[0].checked; + if (changed) { + elements[i].checked = elements[0].checked; + toggleDisplay(elements[i]); + } + } + } + + function filterFile(filter) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector("tr").querySelector("td").textContent.toLowerCase().includes(filter.toLowerCase()); + elements[i].classList.toggle("text-filtered", !visible); + } + } + + function filterText(text) { + filter = text.toLowerCase(); + var elements = document.querySelectorAll(".issue"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = false; + var fields = elements[i].querySelectorAll("td"); + for (var n = 0, num = fields.length; n < num; n++) { + if (fields[n].textContent.toLowerCase().includes(filter)) { + visible = true; + break; + } + } + elements[i].classList.toggle("text-filtered", !visible); + } + + updateFileRows(); + } + + function updateFileRows(element) { + var elements = document.querySelectorAll(".fileEntry"); + + for (var i = 0, len = elements.length; i < len; i++) { + var visible = elements[i].querySelector(".issue:not(.id-filtered):not(.severity-filtered):not(.tool-filtered):not(.text-filtered)"); + elements[i].classList.toggle("file-filtered", !visible); + } + } + + window.addEventListener("load", initExpandables); + </script> + </head> + <body> + <div id="wrapper"> + <div id="header" class="header"> + <h1>Cppcheck report - mate-calc: Statistics</h1> + + </div> + + <div id="menu_index"> + <p><a href="index.html">Back to summary</a> </p> + + </div> + <div id="content_index"> +<p><span class="statHeader">Top 10 files for error severity, total findings: 2</span><br> +   1 <a href="38.html"> src/mp-convert.c</a><br> +   1 <a href="37.html"> src/mp-binary.c</a><br> +</p> +<p><span class="statHeader">Top 10 files for warning severity, total findings: 1</span><br> +   1 <a href="38.html"> src/mp-convert.c</a><br> +</p> +<p><span class="statHeader">Top 10 files for style severity, total findings: 75</span><br> +   30 <a href="5.html"> src/financial.c</a><br> +   8  <a href="43.html"> src/parser.c</a><br> +   5  <a href="38.html"> src/mp-convert.c</a><br> +   4  <a href="40.html"> src/mp-serializer.c</a><br> +   4  <a href="27.html"> src/math-equation.c</a><br> +   3  <a href="50.html"> src/unit.c</a><br> +   3  <a href="8.html"> src/lexer.c</a><br> +   2  <a href="49.html"> src/unit-manager.c</a><br> +   2  <a href="44.html"> src/parserfunc.c</a><br> +   2  <a href="35.html"> src/math-variables.c</a><br> +</p> +<p><span class="statHeader">Top 10 files for information severity, total findings: 141</span><br> +   9 <a href="0.html"> src/currency-manager.c</a><br> +   8 <a href="27.html"> src/math-equation.c</a><br> +   6 <a href="2.html"> src/mp.h</a><br> +   6 <a href="38.html"> src/mp-convert.c</a><br> +   6 <a href="13.html"> src/mate-calc.c</a><br> +   6 <a href="11.html"> src/mate-calc-cmd.c</a><br> +   5 <a href="47.html"> src/test-mp.c</a><br> +   5 <a href="46.html"> src/test-mp-equation.c</a><br> +   5 <a href="42.html"> src/mp.c</a><br> +   5 <a href="40.html"> src/mp-serializer.c</a><br> +</p> + + </div> + <div id="footer" class="footer"> + <p> + Created by Cppcheck 2.12.1 (<a href="https://cppcheck.sourceforge.io">Sourceforge</a>, <a href="irc://irc.freenode.net/cppcheck">IRC</a>) + </p> + </div> + </div> + </body> +</html> diff --git a/2023-11-25-191150-4354-cppcheck@be25688b3305_master/style.css b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/style.css new file mode 100644 index 0000000..3897bfa --- /dev/null +++ b/2023-11-25-191150-4354-cppcheck@be25688b3305_master/style.css @@ -0,0 +1,177 @@ + +body { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; + font-size: 13px; + line-height: 1.5; + height: 100%; + margin: 0; +} + +#wrapper { + position: fixed; + height: 100vh; + width: 100vw; + display: grid; + grid-template-rows: fit-content(8rem) auto fit-content(8rem); + grid-template-columns: fit-content(25%) 1fr; + grid-template-areas: + "header header" + "menu content" + "footer footer"; +} + +h1 { + margin: 0 0 8px -2px; + font-size: 175%; +} + +.header { + padding: 0 0 5px 15px; + grid-area: header; + border-bottom: thin solid #aaa; +} + +.footer { + grid-area: footer; + border-top: thin solid #aaa; + font-size: 85%; + +} + +.footer > p { + margin: 4px; +} + +#menu, +#menu_index { + grid-area: menu; + text-align: left; + overflow: auto; + padding: 0 23px 15px 15px; + border-right: thin solid #aaa; + min-width: 200px; +} + +#menu > a { + display: block; + margin-left: 10px; + font-size: 12px; +} + +#content, +#content_index { + grid-area: content; + padding: 0px 5px 15px 15px; + overflow: auto; +} + +label { + white-space: nowrap; +} + +label.checkBtn.disabled { + color: #606060; + background: #e0e0e0; + font-style: italic; +} + +label.checkBtn, input[type="text"] { + border: 1px solid grey; + border-radius: 4px; + box-shadow: 1px 1px inset; + padding: 1px 5px; +} + +label.checkBtn { + white-space: nowrap; + background: #ccddff; +} + +label.unchecked { + background: #eff8ff; + box-shadow: 1px 1px 1px; +} + +label.checkBtn:hover, label.unchecked:hover{ + box-shadow: 0 0 2px; +} + +label.disabled:hover { + box-shadow: 1px 1px inset; +} + +label.checkBtn > input { + display:none; +} + +.summaryTable { + width: 100%; +} + +table.summaryTable td { padding: 0 5px 0 5px; } + +.statHeader, .severityHeader { + font-weight: bold; +} + +.warning { + background-color: #ffffa7; +} + +.error { + background-color: #ffb7b7; +} + +.error2 { + background-color: #faa; + display: inline-block; + margin-left: 4px; +} + +.inconclusive { + background-color: #b6b6b4; +} + +.inconclusive2 { + background-color: #b6b6b4; + display: inline-block; + margin-left: 4px; +} + +.verbose { + display: inline-block; + vertical-align: top; + cursor: help; +} + +.verbose .content { + display: none; + position: absolute; + padding: 10px; + margin: 4px; + max-width: 40%; + white-space: pre-wrap; + border: 1px solid #000; + background-color: #ffffcc; + cursor: auto; +} + +.highlight .hll { + padding: 1px; +} + +.highlighttable { + background-color: #fff; + position: relative; + margin: -10px; +} + +.linenos { + border-right: thin solid #aaa; + color: #d3d3d3; + padding-right: 6px; +} + +.id-filtered, .severity-filtered, .file-filtered, .tool-filtered, .text-filtered { + visibility: collapse; +} |