Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 3996

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: cstool/tokenlist.h Source File (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>cstool/tokenlist.h</h1><a href="tokenlist_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>
<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 2003 by Jorrit Tyberghein</span>
<a name="l00003"></a>00003 <span class="comment">              (C) 2003 by Frank Richter</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment">    License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment">    Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
<a name="l00016"></a>00016 <span class="comment">    License along with this library; if not, write to the Free</span>
<a name="l00017"></a>00017 <span class="comment">    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00024"></a>00024 <span class="comment">/* ATTENTION: Do! Not! #Include! Anything!</span>
<a name="l00025"></a>00025 <span class="comment"> * Read below on how this header is intended to be used, and you'll see why</span>
<a name="l00026"></a>00026 <span class="comment"> * including something is a really bad idea.</span>
<a name="l00027"></a>00027 <span class="comment"> */</span>
<a name="l00028"></a>00028 
<a name="l00108"></a>00108 <span class="preprocessor">#ifndef CS_TOKEN_LIST_TOKEN_PREFIX</span>
<a name="l00109"></a><a class="code" href="group__util.html#gaecc28f8e85d5e6865a691f862409d24">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define CS_TOKEN_LIST_TOKEN_PREFIX_DEFAULT</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span>
<a name="l00114"></a><a class="code" href="group__util.html#g0f2ffdc7e3f54d850a1bed0e78235d62">00114</a> <span class="preprocessor">#define CS_TOKEN_LIST_TOKEN_PREFIX XMLTOKEN_</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
<a name="l00117"></a>00117 <span class="preprocessor">#ifndef CS_TOKEN_LIST_TOKEN_LAST</span>
<a name="l00118"></a><a class="code" href="group__util.html#gde9f10d4f1887ff30f41f7d5f93d750a">00118</a> <span class="preprocessor"></span><span class="preprocessor">#define CS_TOKEN_LIST_TOKEN_LAST_DEFAULT</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00123"></a><a class="code" href="group__util.html#g766e6c4bb4775a5ed1eb2cce10a3a968">00123</a> <span class="preprocessor">#define CS_TOKEN_LIST_TOKEN_LAST TOKEN_COUNT</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span>
<a name="l00126"></a>00126 <span class="preprocessor">#undef CS_TOKEN_LIST_PASTE</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_PASTE1</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN_FINAL</span>
<a name="l00130"></a><a class="code" href="group__util.html#g7e911f2c2d1e7ab00c006b89946849f7">00130</a> <span class="preprocessor"></span><span class="preprocessor">#define CS_TOKEN_LIST_PASTE(X,Y) CS_TOKEN_LIST_PASTE1(X,Y)</span>
<a name="l00131"></a><a class="code" href="group__util.html#g6a9d9631d2d1ef3c41cf390eee7f48c7">00131</a> <span class="preprocessor"></span><span class="preprocessor">#define CS_TOKEN_LIST_PASTE1(X,Y) X ## Y</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#define CS_TOKEN_LIST_TOKEN(X) \</span>
<a name="l00133"></a>00133 <span class="preprocessor">  CS_TOKEN_LIST_PASTE(CS_TOKEN_LIST_TOKEN_PREFIX,X),</span>
<a name="l00134"></a><a class="code" href="group__util.html#g0f9fa2abfaa7c80c98fa47a4694f93d0">00134</a> <span class="preprocessor"></span><span class="preprocessor">#define CS_TOKEN_LIST_TOKEN_FINAL(X) \</span>
<a name="l00135"></a>00135 <span class="preprocessor">  CS_TOKEN_LIST_PASTE(CS_TOKEN_LIST_TOKEN_PREFIX,X)</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span>
<a name="l00137"></a>00137 <span class="keyword">enum</span> {
<a name="l00138"></a>00138 <span class="preprocessor">#include CS_TOKEN_ITEM_FILE</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span>  <a class="code" href="group__util.html#g0f9fa2abfaa7c80c98fa47a4694f93d0" title="Name of the token table initialization method.">CS_TOKEN_LIST_TOKEN_FINAL</a>(<a class="code" href="group__util.html#g766e6c4bb4775a5ed1eb2cce10a3a968" title="Name for the &amp;quot;token count&amp;quot; enumeration value.">CS_TOKEN_LIST_TOKEN_LAST</a>)
<a name="l00140"></a>00140 };
<a name="l00141"></a>00141 
<a name="l00142"></a>00142 <span class="preprocessor">#ifdef CS_TOKEN_LIST_TOKEN_LAST_DEFAULT</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN_LAST_DEFAULT</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN_LAST</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span>
<a name="l00147"></a>00147 <span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span>
<a name="l00151"></a><a class="code" href="group__util.html#g340f3d6933db2951eaf1eebe704a81c8">00151</a> <span class="preprocessor">#define CS_TOKEN_LIST_TOKEN(X) s = #X; s.Downcase(); \</span>
<a name="l00152"></a>00152 <span class="preprocessor">  t.Register(s, CS_TOKEN_LIST_PASTE(CS_TOKEN_LIST_TOKEN_PREFIX,X));</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span>
<a name="l00154"></a>00154 <span class="preprocessor">#ifndef CS_INIT_TOKEN_TABLE_NAME</span>
<a name="l00155"></a><a class="code" href="group__util.html#gde6cf86db0aca82244ca4a269ff4f34e">00155</a> <span class="preprocessor"></span><span class="preprocessor">#define CS_INIT_TOKEN_TABLE_NAME_DEFAULT</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span>
<a name="l00160"></a><a class="code" href="group__util.html#g997d7681d14447f53b90d413ddd24763">00160</a> <span class="preprocessor">#define CS_INIT_TOKEN_TABLE_NAME InitTokenTable</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span>  
<a name="l00163"></a><a class="code" href="group__util.html#gefa1013fce216adfcd909ad4d32e8a29">00163</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="shaderprogram_8h.html#997d7681d14447f53b90d413ddd24763">CS_INIT_TOKEN_TABLE_NAME</a>(<a class="code" href="classcsStringHash.html" title="A string-to-ID hash table.">csStringHash</a>&amp; t)
<a name="l00164"></a>00164 {
<a name="l00165"></a>00165   <a class="code" href="classcsString.html" title="Thin wrapper around csStringFast&amp;lt;&amp;gt; with its default buffer size.">csString</a> s;
<a name="l00166"></a>00166 <span class="preprocessor">#include CS_TOKEN_ITEM_FILE</span>
<a name="l00167"></a>00167 <span class="preprocessor"></span>}
<a name="l00168"></a>00168 <span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span>
<a name="l00170"></a>00170 <span class="preprocessor">#ifdef CS_INIT_TOKEN_TABLE_NAME_DEFAULT</span>
<a name="l00171"></a>00171 <span class="preprocessor"></span><span class="preprocessor">#undef CS_INIT_TOKEN_TABLE_NAME</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor">#undef CS_INIT_TOKEN_TABLE_NAME_DEFAULT</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00175"></a>00175 <span class="preprocessor">#ifdef CS_TOKEN_LIST_TOKEN_PREFIX_DEFAULT</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN_PREFIX_DEFAULT</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span><span class="preprocessor">#undef CS_TOKEN_LIST_TOKEN_PREFIX</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00179"></a>00179 <span class="preprocessor"></span>
</pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>