• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5<title>libmangle: src/m_ms.h Source File</title>
6<link href="tabs.css" rel="stylesheet" type="text/css"/>
7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
8</head>
9<body>
10<!-- Generated by Doxygen 1.6.1 -->
11<div class="navigation" id="top">
12  <div class="tabs">
13    <ul>
14      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
16      <li class="current"><a href="files.html"><span>Files</span></a></li>
17    </ul>
18  </div>
19  <div class="tabs">
20    <ul>
21      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
22      <li><a href="globals.html"><span>Globals</span></a></li>
23    </ul>
24  </div>
25<h1>src/m_ms.h</h1><a href="m__ms_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
26<a name="l00002"></a>00002 <span class="comment">   Copyright (c) 2009, 2010 mingw-w64 project</span>
27<a name="l00003"></a>00003 <span class="comment"></span>
28<a name="l00004"></a>00004 <span class="comment">   Contributing authors: Kai Tietz, Jonathan Yong</span>
29<a name="l00005"></a>00005 <span class="comment"></span>
30<a name="l00006"></a>00006 <span class="comment">   Permission is hereby granted, free of charge, to any person obtaining a</span>
31<a name="l00007"></a>00007 <span class="comment">   copy of this software and associated documentation files (the &quot;Software&quot;),</span>
32<a name="l00008"></a>00008 <span class="comment">   to deal in the Software without restriction, including without limitation</span>
33<a name="l00009"></a>00009 <span class="comment">   the rights to use, copy, modify, merge, publish, distribute, sublicense,</span>
34<a name="l00010"></a>00010 <span class="comment">   and/or sell copies of the Software, and to permit persons to whom the</span>
35<a name="l00011"></a>00011 <span class="comment">   Software is furnished to do so, subject to the following conditions:</span>
36<a name="l00012"></a>00012 <span class="comment"></span>
37<a name="l00013"></a>00013 <span class="comment">   The above copyright notice and this permission notice shall be included in</span>
38<a name="l00014"></a>00014 <span class="comment">   all copies or substantial portions of the Software.</span>
39<a name="l00015"></a>00015 <span class="comment"></span>
40<a name="l00016"></a>00016 <span class="comment">   THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span>
41<a name="l00017"></a>00017 <span class="comment">   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
42<a name="l00018"></a>00018 <span class="comment">   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span>
43<a name="l00019"></a>00019 <span class="comment">   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
44<a name="l00020"></a>00020 <span class="comment">   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
45<a name="l00021"></a>00021 <span class="comment">   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
46<a name="l00022"></a>00022 <span class="comment">   DEALINGS IN THE SOFTWARE.</span>
47<a name="l00023"></a>00023 <span class="comment">*/</span>
48<a name="l00046"></a>00046 <span class="preprocessor">#ifndef _M_MS_HXX</span>
49<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#define _M_MS_HXX</span>
50<a name="l00048"></a>00048 <span class="preprocessor"></span>
51<a name="l00049"></a>00049 <span class="preprocessor">#include &quot;<a class="code" href="m__token_8h.html">m_token.h</a>&quot;</span>
52<a name="l00050"></a>00050
53<a name="l00051"></a><a class="code" href="m__ms_8h.html#aef5f6ad4353a2cf2321c074dbfaa9aac">00051</a> <span class="preprocessor">#define ENCODING_TYPE_MS        1</span>
54<a name="l00052"></a>00052 <span class="preprocessor"></span>
55<a name="l00059"></a><a class="code" href="structs_cached.html">00059</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_cached.html">sCached</a> {
56<a name="l00060"></a><a class="code" href="structs_cached.html#aaf6b51539515c90f3258e80701871bc3">00060</a>   <span class="keywordtype">int</span> <a class="code" href="structs_cached.html#aaf6b51539515c90f3258e80701871bc3">count</a>;
57<a name="l00061"></a><a class="code" href="structs_cached.html#af1075e0e3cedc49b7adf9f79d6c18e27">00061</a>   <a class="code" href="unionu_m_token.html">uMToken</a> *<a class="code" href="structs_cached.html#af1075e0e3cedc49b7adf9f79d6c18e27">arr</a>[10];
58<a name="l00062"></a>00062 } <a class="code" href="structs_cached.html">sCached</a>;
59<a name="l00063"></a>00063
60<a name="l00064"></a><a class="code" href="structs_m_s_ctx.html">00064</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_m_s_ctx.html">sMSCtx</a> {
61<a name="l00065"></a><a class="code" href="structs_m_s_ctx.html#a2f5063c35143e68593acf2f1d718cfeb">00065</a>   <a class="code" href="structlibmangle__gc__context__t.html">libmangle_gc_context_t</a> *<a class="code" href="structs_m_s_ctx.html#a2f5063c35143e68593acf2f1d718cfeb">gc</a>;
62<a name="l00066"></a><a class="code" href="structs_m_s_ctx.html#ac0a073d6988c2278ef48f9d159383d84">00066</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structs_m_s_ctx.html#ac0a073d6988c2278ef48f9d159383d84">name</a>;
63<a name="l00067"></a><a class="code" href="structs_m_s_ctx.html#a6e5fc61ecefe939aea462a75a2ba1332">00067</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structs_m_s_ctx.html#a6e5fc61ecefe939aea462a75a2ba1332">end</a>;
64<a name="l00068"></a><a class="code" href="structs_m_s_ctx.html#a26e2b2ad1f83c22f21581f0fd474fc21">00068</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structs_m_s_ctx.html#a26e2b2ad1f83c22f21581f0fd474fc21">pos</a>;
65<a name="l00069"></a><a class="code" href="structs_m_s_ctx.html#a78565b455c2442fb61bf1bcce3af88e4">00069</a>   <span class="keywordtype">int</span> <a class="code" href="structs_m_s_ctx.html#a78565b455c2442fb61bf1bcce3af88e4">err</a>;
66<a name="l00070"></a><a class="code" href="structs_m_s_ctx.html#a6bc7b52416f139ba855c13b30621c59d">00070</a>   <span class="keywordtype">int</span> <a class="code" href="structs_m_s_ctx.html#a6bc7b52416f139ba855c13b30621c59d">fExplicitTemplateParams</a>;
67<a name="l00071"></a><a class="code" href="structs_m_s_ctx.html#af7821943d90885f933ff5ab411b339a3">00071</a>   <span class="keywordtype">int</span> <a class="code" href="structs_m_s_ctx.html#af7821943d90885f933ff5ab411b339a3">fGetTemplateArgumentList</a>;
68<a name="l00072"></a><a class="code" href="structs_m_s_ctx.html#a5fd6ba39ed9dde4dbdc7c8ac632955f2">00072</a>   <a class="code" href="structs_cached.html">sCached</a> *<a class="code" href="structs_m_s_ctx.html#a5fd6ba39ed9dde4dbdc7c8ac632955f2">pZNameList</a>;
69<a name="l00073"></a><a class="code" href="structs_m_s_ctx.html#a106ed398e4438095320072ffea744e3b">00073</a>   <a class="code" href="structs_cached.html">sCached</a> *<a class="code" href="structs_m_s_ctx.html#a106ed398e4438095320072ffea744e3b">pTemplateArgList</a>;
70<a name="l00074"></a><a class="code" href="structs_m_s_ctx.html#ac4b8422234e32c0045fa7f3f09dd0412">00074</a>   <a class="code" href="structs_cached.html">sCached</a> *<a class="code" href="structs_m_s_ctx.html#ac4b8422234e32c0045fa7f3f09dd0412">pArgList</a>;
71<a name="l00075"></a>00075 } <a class="code" href="structs_m_s_ctx.html">sMSCtx</a>;
72<a name="l00076"></a>00076
73<a name="l00077"></a><a class="code" href="m__ms_8h.html#a0abbf2a725f45243f4292bf3e764973c">00077</a> <span class="preprocessor">#define GET_CHAR(CTX)   ((CTX)-&gt;pos == (CTX)-&gt;end ? 0 : (CTX)-&gt;pos[0])</span>
74<a name="l00078"></a><a class="code" href="m__ms_8h.html#adfca56cc6bed709fa84cc0b26430100d">00078</a> <span class="preprocessor"></span><span class="preprocessor">#define INC_CHAR(CTX)   do { if ((CTX)-&gt;pos != (CTX)-&gt;end) (CTX)-&gt;pos++; } while (0)</span>
75<a name="l00079"></a><a class="code" href="m__ms_8h.html#aac4ed973666f5f09c3e866666326fb05">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define DEC_CHAR(CTX)   do { if ((CTX)-&gt;pos != (CTX)-&gt;name) (CTX)-&gt;pos--; } while (0)</span>
76<a name="l00080"></a><a class="code" href="m__ms_8h.html#a1a18b928484e6e93526a252d4b7e3532">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define SKIP_CHAR(CTX,LEN) do { (CTX)-&gt;pos += (LEN); if ((CTX)-&gt;pos &gt; (CTX)-&gt;end) (CTX)-&gt;pos=(CTX)-&gt;end; } while (0)</span>
77<a name="l00081"></a>00081 <span class="preprocessor"></span>
78<a name="l00092"></a>00092 <a class="code" href="unionu_m_token.html">uMToken</a> *<a class="code" href="libmangle_8h.html#a14ff3e5c3309017dc99459ef1ffef582">libmangle_decode_ms_name</a> (<a class="code" href="structlibmangle__gc__context__t.html">libmangle_gc_context_t</a> *gc, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
79<a name="l00093"></a>00093 <span class="keywordtype">char</span> *<a class="code" href="libmangle_8h.html#ad6e58fecfca8cc312a2b09a44e3748fb">libmangle_encode_ms_name</a> (<a class="code" href="structlibmangle__gc__context__t.html">libmangle_gc_context_t</a> *gc, <a class="code" href="unionu_m_token.html">uMToken</a> *tok);
80<a name="l00094"></a>00094
81<a name="l00095"></a>00095 <span class="preprocessor">#endif</span>
82</pre></div></div>
83<hr size="1"/><address style="text-align: right;"><small>Generated on 23 Jul 2010 for libmangle by&nbsp;
84<a href="http://www.doxygen.org/index.html">
85<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
86</body>
87</html>
88