⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forth_8h-source.html

📁 Tixys source code, include G.711, G.726, IMA-ADPCM etc.
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>forth/forth.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.1 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div><div class="nav"><a class="el" href="dir_000002.html">forth</a></div><h1>forth.h</h1><a href="forth_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00012 <span class="preprocessor">#ifndef __FORTH_H__</span>00013 <span class="preprocessor"></span><span class="preprocessor">#define __FORTH_H__</span>00014 <span class="preprocessor"></span><a name="l00034"></a><a class="code" href="group__forth.html#ga0">00034</a> <span class="keyword">typedef</span> <a class="code" href="group__integers.html#ga5">int32</a> <a class="code" href="group__forth.html#ga0">CELL</a>;00035 00036 <a class="code" href="common_8h.html#a5">ASSERT_COMPILE</a>(<span class="keyword">sizeof</span>(CELL)&gt;=<span class="keyword">sizeof</span>(CELL*)); <span class="comment">// CELL must be big enough to store pointers</span>00037 <a name="l00042"></a><a class="code" href="group__forth.html#ga1">00042</a> <span class="keyword">typedef</span> <a class="code" href="group__integers.html#ga2">uint32</a> <a class="code" href="group__forth.html#ga1">UCELL</a>;00043 <a name="l00048"></a><a class="code" href="group__forth.html#ga2">00048</a> <span class="keyword">typedef</span> <a class="code" href="group__integers.html#ga0">uint8</a> <a class="code" href="group__forth.html#ga2">CHAR</a>;00049 <a name="l00053"></a><a class="code" href="group__forth.html#ga5">00053</a> <span class="preprocessor">#define BITS_PER_CHAR 8</span>00054 <span class="preprocessor"></span><a name="l00058"></a><a class="code" href="group__forth.html#ga6">00058</a> <span class="preprocessor">#define CHARS_PER_CELL 4</span>00059 <span class="preprocessor"></span>00060 <a class="code" href="common_8h.html#a5">ASSERT_COMPILE</a>(CHARS_PER_CELL==<span class="keyword">sizeof</span>(CELL)/<span class="keyword">sizeof</span>(CHAR)); <span class="comment">// Check CHARS_PER_CELL is defined correctly</span>00061 00062 <a name="l00083"></a><a class="code" href="classForthIo.html">00083</a> <span class="keyword">class </span><a class="code" href="classForthIo.html">ForthIo</a>00084     {00085 <span class="keyword">public</span>:00092     <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classForthIo.html#a0">ConsoleOut</a>(<span class="keyword">const</span> <a class="code" href="group__forth.html#ga2">CHAR</a>* text,<a class="code" href="group__forth.html#ga1">UCELL</a> textLength) = 0;00093 00099     <span class="keyword">virtual</span> <a class="code" href="group__forth.html#ga0">CELL</a> <a class="code" href="classForthIo.html#a1">ConsoleIn</a>() = 0;00100 <span class="keyword">public</span>:<a name="l00114"></a><a class="code" href="classForthIo.html#o0">00114</a>     <a class="code" href="group__forth.html#ga2">CHAR</a> <a class="code" href="classForthIo.html#o0">NewLine</a>[4];00115     };00116 00117 <a name="l00121"></a><a class="code" href="classForth.html">00121</a> <span class="keyword">class </span><a class="code" href="classForth.html">Forth</a>00122     {00123 <span class="keyword">public</span>:00133     <span class="keyword">static</span> <a class="code" href="classForth.html">Forth</a>* <a class="code" href="classForth.html#e0">Construct</a>(<span class="keywordtype">void</span>* memoryStart,<a class="code" href="group__integers.html#ga6">uint</a> memorySize,<a class="code" href="classForthIo.html">ForthIo</a>* ioHandler);00134 00138     <span class="keywordtype">void</span> <a class="code" href="classForth.html#a0">Reset</a>();00139 00148     <a class="code" href="group__forth.html#ga0">CELL</a> <a class="code" href="classForth.html#a1">Quit</a>();00149 00157     <a class="code" href="group__forth.html#ga0">CELL</a> <a class="code" href="classForth.html#a2">Execute</a>(<a class="code" href="group__forth.html#ga0">CELL</a> xt);00158 00167     <a class="code" href="group__forth.html#ga0">CELL</a> <a class="code" href="classForth.html#a3">Evaluate</a>(<span class="keyword">const</span> <a class="code" href="group__forth.html#ga2">CHAR</a>* text,<a class="code" href="group__integers.html#ga6">uint</a> textLength);00168 00177     <span class="keywordtype">void</span> <a class="code" href="classForth.html#a4">Push</a>(<span class="keyword">const</span> <a class="code" href="group__forth.html#ga0">CELL</a>* cells, <a class="code" href="group__integers.html#ga6">uint</a> numCells);00178 00190     <span class="keyword">const</span> <a class="code" href="group__forth.html#ga0">CELL</a>* <a class="code" href="classForth.html#a5">Pop</a>(<a class="code" href="group__integers.html#ga6">uint</a> numCells);00191 00192     };00193 00194  <span class="comment">// End of group</span>00196 00197 <span class="preprocessor">#endif</span></pre></div><HR><ADDRESS STYLE="align: right;"><SMALL>Generated by&nbsp; <A HREF="http://www.doxygen.org/index.html"><IMG SRC="doxygen.png" ALT="doxygen" ALIGN="middle" BORDER="0"></A> 1.4.1</SMALL></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -