msgpack/c/make_8h_source.html
2017-06-30 11:05:26 +09:00

79 lines
20 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MessagePack for C: /home/kondo/work/msgpack-c/include/msgpack/predef/make.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MessagePack for C
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_dd2411636cfeb3780831d8d9eec9249e.html">msgpack</a></li><li class="navelem"><a class="el" href="dir_dd8ff1bf07031bf061ce0f8efc2f82d3.html">predef</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">make.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="make_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">Copyright Rene Rivera 2008-2015</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">Distributed under the Boost Software License, Version 1.0.</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">(See accompanying file LICENSE_1_0.txt or copy at</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">http://www.boost.org/LICENSE_1_0.txt)</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="test_8h.html">msgpack/predef/detail/test.h</a>&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#ifndef MSGPACK_PREDEF_MAKE_H</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_H</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">Shorthands for the common version number formats used by vendors...</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">/*`</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">[heading `MSGPACK_PREDEF_MAKE_..` macros]</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">These set of macros decompose common vendor version number</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">macros which are composed version, revision, and patch digits.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">The naming convention indicates:</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment">* The base of the specified version number. &quot;`MSGPACK_PREDEF_MAKE_0X`&quot; for</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment"> hexadecimal digits, and &quot;`MSGPACK_PREDEF_MAKE_10`&quot; for decimal digits.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="comment">* The format of the vendor version number. Where &quot;`V`&quot; indicates the version digits,</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment"> &quot;`R`&quot; indicates the revision digits, &quot;`P`&quot; indicates the patch digits, and &quot;`0`&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="comment"> indicates an ignored digit.</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">Macros are:</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VRP(V)` */</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="make_8h.html#a6e3b565d4d4aedfc812a1d1f38cac496"> 32</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VRP(V) MSGPACK_VERSION_NUMBER((V&amp;0xF00)&gt;&gt;8,(V&amp;0xF0)&gt;&gt;4,(V&amp;0xF))</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VVRP(V)` */</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="make_8h.html#aa44a6e07cfbd7b59e3a20730e4aa5e61"> 34</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VVRP(V) MSGPACK_VERSION_NUMBER((V&amp;0xFF00)&gt;&gt;8,(V&amp;0xF0)&gt;&gt;4,(V&amp;0xF))</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VRPP(V)` */</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="make_8h.html#ab4daf09adfa7555681af25c6ea326cd6"> 36</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VRPP(V) MSGPACK_VERSION_NUMBER((V&amp;0xF000)&gt;&gt;12,(V&amp;0xF00)&gt;&gt;8,(V&amp;0xFF))</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VVRR(V)` */</span></div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="make_8h.html#a0969bff805977dd1d48d08ee7bd7db5e"> 38</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VVRR(V) MSGPACK_VERSION_NUMBER((V&amp;0xFF00)&gt;&gt;8,(V&amp;0xFF),0)</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VRRPPPP(V)` */</span></div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="make_8h.html#ac4f92f1a49934c24fdb5300904b5eb89"> 40</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VRRPPPP(V) MSGPACK_VERSION_NUMBER((V&amp;0xF000000)&gt;&gt;24,(V&amp;0xFF0000)&gt;&gt;16,(V&amp;0xFFFF))</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VVRRP(V)` */</span></div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="make_8h.html#aa679b57341a2d30cc8d29bf8a999588d"> 42</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VVRRP(V) MSGPACK_VERSION_NUMBER((V&amp;0xFF000)&gt;&gt;12,(V&amp;0xFF0)&gt;&gt;4,(V&amp;0xF))</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VRRPP000(V)` */</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="make_8h.html#a6c54b89cb6febe258a0d4690a02f0601"> 44</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VRRPP000(V) MSGPACK_VERSION_NUMBER((V&amp;0xF0000000)&gt;&gt;28,(V&amp;0xFF00000)&gt;&gt;20,(V&amp;0xFF000)&gt;&gt;12)</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_0X_VVRRPP(V)` */</span></div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="make_8h.html#ab8ec391be765dbc2c31fe3254116cf90"> 46</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_0X_VVRRPP(V) MSGPACK_VERSION_NUMBER((V&amp;0xFF0000)&gt;&gt;16,(V&amp;0xFF00)&gt;&gt;8,(V&amp;0xFF))</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VPPP(V)` */</span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="make_8h.html#a8261dd81a08f4600658a3a08dd24f596"> 48</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VPPP(V) MSGPACK_VERSION_NUMBER(((V)/1000)%10,0,(V)%1000)</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VRP(V)` */</span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="make_8h.html#a0de187732be1c065649693ba346f7626"> 50</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VRP(V) MSGPACK_VERSION_NUMBER(((V)/100)%10,((V)/10)%10,(V)%10)</span></div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VRP000(V)` */</span></div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="make_8h.html#a56ffbb69b094716fa80a3f7b1eea1974"> 52</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VRP000(V) MSGPACK_VERSION_NUMBER(((V)/100000)%10,((V)/10000)%10,((V)/1000)%10)</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VRPP(V)` */</span></div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="make_8h.html#ac3799ddeda6ed5fe4ed234cd01134add"> 54</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VRPP(V) MSGPACK_VERSION_NUMBER(((V)/1000)%10,((V)/100)%10,(V)%100)</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VRR(V)` */</span></div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="make_8h.html#ada0af98839926e8cebd1e9edd3d625c6"> 56</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VRR(V) MSGPACK_VERSION_NUMBER(((V)/100)%10,(V)%100,0)</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VRRPP(V)` */</span></div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="make_8h.html#aa0689c66dca75db798dab942da0c4805"> 58</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VRRPP(V) MSGPACK_VERSION_NUMBER(((V)/10000)%10,((V)/100)%100,(V)%100)</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VRR000(V)` */</span></div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="make_8h.html#aa23076e66bde84871d1d0b8c921ca1a6"> 60</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VRR000(V) MSGPACK_VERSION_NUMBER(((V)/100000)%10,((V)/1000)%100,0)</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VV00(V)` */</span></div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="make_8h.html#a621191265e638660f85b997f9f150711"> 62</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VV00(V) MSGPACK_VERSION_NUMBER(((V)/100)%100,0,0)</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VVRR(V)` */</span></div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="make_8h.html#a118a7b8e7c278062ae06d7d845be2775"> 64</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VVRR(V) MSGPACK_VERSION_NUMBER(((V)/100)%100,(V)%100,0)</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VVRRPP(V)` */</span></div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="make_8h.html#adcb634d290c9c8c5d0aa16caa9059560"> 66</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VVRRPP(V) MSGPACK_VERSION_NUMBER(((V)/10000)%100,((V)/100)%100,(V)%100)</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VVRR0PP00(V)` */</span></div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="make_8h.html#ae770414b1da71ec08fea778b3466e9da"> 68</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VVRR0PP00(V) MSGPACK_VERSION_NUMBER(((V)/10000000)%100,((V)/100000)%100,((V)/100)%100)</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VVRR0PPPP(V)` */</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="make_8h.html#a34fe7af9d3f1a280b22524bf11ee7ac3"> 70</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VVRR0PPPP(V) MSGPACK_VERSION_NUMBER(((V)/10000000)%100,((V)/100000)%100,(V)%10000)</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_10_VVRR00PP00(V)` */</span></div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="make_8h.html#aea08c326eacade4381956376d8e9945b"> 72</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_10_VVRR00PP00(V) MSGPACK_VERSION_NUMBER(((V)/100000000)%100,((V)/1000000)%100,((V)/100)%100)</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="comment">/*`</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="comment">[heading `MSGPACK_PREDEF_MAKE_*..` date macros]</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="comment">Date decomposition macros return a date in the relative to the 1970</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="comment">Epoch date. If the month is not available, January 1st is used as the month and day.</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;<span class="comment">If the day is not available, but the month is, the 1st of the month is used as the day.</span></div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_DATE(Y,M,D)` */</span></div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="make_8h.html#af75213f26b2f4793f647dbaa2148ca3e"> 81</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_DATE(Y,M,D) MSGPACK_VERSION_NUMBER((Y)%10000-1970,(M)%100,(D)%100)</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_YYYYMMDD(V)` */</span></div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="make_8h.html#aee6927d8634b1c0634f999bd38fe8bfb"> 83</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_YYYYMMDD(V) MSGPACK_PREDEF_MAKE_DATE(((V)/10000)%10000,((V)/100)%100,(V)%100)</span></div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_YYYY(V)` */</span></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="make_8h.html#ad7cc15bd2d5b64c1727d6fd1c2d813a4"> 85</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_YYYY(V) MSGPACK_PREDEF_MAKE_DATE(V,1,1)</span></div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="comment">/*` `MSGPACK_PREDEF_MAKE_YYYYMM(V)` */</span></div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="make_8h.html#ae39a24b9780393126b79ae4ad0594de8"> 87</a></span>&#160;<span class="preprocessor">#define MSGPACK_PREDEF_MAKE_YYYYMM(V) MSGPACK_PREDEF_MAKE_DATE((V)/100,(V)%100,1)</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="test_8h_html"><div class="ttname"><a href="test_8h.html">test.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>