diff options
| author | Root THC | 2026-02-24 12:42:47 +0000 |
|---|---|---|
| committer | Root THC | 2026-02-24 12:42:47 +0000 |
| commit | c9cbeced5b3f2bdd7407e29c0811e65954132540 (patch) | |
| tree | aefc355416b561111819de159ccbd86c3004cf88 /other/Kermit/doc/API_doc/html/Patch_8hpp-source.html | |
| parent | 073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff) | |
initial
Diffstat (limited to 'other/Kermit/doc/API_doc/html/Patch_8hpp-source.html')
| -rw-r--r-- | other/Kermit/doc/API_doc/html/Patch_8hpp-source.html | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/other/Kermit/doc/API_doc/html/Patch_8hpp-source.html b/other/Kermit/doc/API_doc/html/Patch_8hpp-source.html new file mode 100644 index 0000000..66340bd --- /dev/null +++ b/other/Kermit/doc/API_doc/html/Patch_8hpp-source.html | |||
| @@ -0,0 +1,119 @@ | |||
| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | ||
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> | ||
| 3 | <title>Patch.hpp Source File</title> | ||
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> | ||
| 5 | </head><body bgcolor="#ffffff"> | ||
| 6 | <!-- Generated by Doxygen 1.2.9.1 --> | ||
| 7 | <center> | ||
| 8 | <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center> | ||
| 9 | <hr><h1>Patch.hpp</h1><div class="fragment"><pre>00001 <font class="comment">/*</font> | ||
| 10 | 00002 <font class="comment"> * Patch.hpp:</font> | ||
| 11 | 00003 <font class="comment"> * representation of a kernel patch.</font> | ||
| 12 | 00004 <font class="comment"> * written by palmers / teso</font> | ||
| 13 | 00005 <font class="comment"> */</font> | ||
| 14 | 00006 <font class="preprocessor">#ifndef __PATCH_C</font> | ||
| 15 | 00007 <font class="preprocessor"></font><font class="preprocessor">#define __PATCH_C</font> | ||
| 16 | 00008 <font class="preprocessor"></font> | ||
| 17 | 00009 <font class="preprocessor">#include <rwKernel.hpp></font> | ||
| 18 | 00010 <font class="preprocessor">#include <SymbolTable.hpp></font> | ||
| 19 | 00011 <font class="preprocessor">#include <SystemMap.hpp></font> | ||
| 20 | 00012 <font class="preprocessor">#include <stoi16.hpp></font> | ||
| 21 | 00013 <font class="preprocessor">#include <itos16.hpp></font> | ||
| 22 | 00014 <font class="preprocessor">#include <utility></font> | ||
| 23 | 00015 <font class="preprocessor">#include <functional></font> | ||
| 24 | 00016 <font class="preprocessor">#include <algorithm></font> | ||
| 25 | 00017 <font class="preprocessor">#include <list></font> | ||
| 26 | 00018 <font class="preprocessor">#include <fstream></font> | ||
| 27 | 00019 <font class="preprocessor">#include <string></font> | ||
| 28 | 00020 <font class="preprocessor">#include <name2add.h></font> | ||
| 29 | 00021 | ||
| 30 | 00022 | ||
| 31 | 00023 <font class="keyword">typedef</font> pair<unsigned int, unsigned int> Addr2Addr; | ||
| 32 | 00024 <font class="keyword">typedef</font> list<Addr2Addr *> Addr2AddrList; | ||
| 33 | 00025 | ||
| 34 | 00026 Addr2AddrList *genReplaceValMap (<a class="code" href="classSymbolTable.html">SymbolTable</a> *st); | ||
| 35 | 00027 <font class="keywordtype">void</font> genDummyValMap (); | ||
| 36 | 00028 <font class="keyword">extern</font> <a class="code" href="classSystemMap.html">SystemMap</a> DummyValMap; | ||
| 37 | 00029 | ||
| 38 | 00030 | ||
| 39 | 00031 <font class="preprocessor">#define CLEAN 1</font> | ||
| 40 | 00032 <font class="preprocessor"></font><font class="preprocessor">#define LINKED 2</font> | ||
| 41 | 00033 <font class="preprocessor"></font><font class="preprocessor">#define APPLIED 4</font> | ||
| 42 | 00034 <font class="preprocessor"></font><font class="preprocessor">#define LFAILED 8</font> | ||
| 43 | 00035 <font class="preprocessor"></font><font class="preprocessor">#define AFAILED 16</font> | ||
| 44 | 00036 <font class="preprocessor"></font> | ||
| 45 | 00037 | ||
| 46 | <a name="l00050"></a><a class="code" href="classPatch.html">00050</a> <font class="keyword">class </font><a class="code" href="classPatch.html">Patch</a> | ||
| 47 | 00051 { | ||
| 48 | 00052 <font class="keyword">private</font>: | ||
| 49 | 00053 <font class="keywordtype">int</font> state; | ||
| 50 | 00054 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> len; | ||
| 51 | 00055 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *back_data, *data, *overwr; | ||
| 52 | 00056 <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> address; | ||
| 53 | 00057 <a class="code" href="classrwKernel.html">rwKernel</a> *local_rw; | ||
| 54 | 00058 | ||
| 55 | 00059 <font class="keywordtype">bool</font> initObjects (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *, <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font>, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font>, <a class="code" href="classrwKernel.html">rwKernel</a> *); | ||
| 56 | 00060 string state2string (); | ||
| 57 | 00061 <font class="keywordtype">void</font> string2state (string); | ||
| 58 | 00062 string data2string (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *); | ||
| 59 | 00063 <font class="keywordtype">void</font> string2data (string, <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *); | ||
| 60 | 00064 <font class="keywordtype">void</font> parse (string); | ||
| 61 | 00065 | ||
| 62 | 00066 <font class="keyword">public</font>: | ||
| 63 | 00070 <a class="code" href="classPatch.html#a0">Patch</a> (); | ||
| 64 | 00071 | ||
| 65 | 00078 <a class="code" href="classPatch.html#a0">Patch</a> (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *data, <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> len, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> addr); | ||
| 66 | 00079 | ||
| 67 | 00085 <a class="code" href="classPatch.html#a0">Patch</a> (<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *data, <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> len, <font class="keywordtype">unsigned</font> <font class="keywordtype">int</font> addr, <a class="code" href="classrwKernel.html">rwKernel</a> *x); | ||
| 68 | 00086 | ||
| 69 | 00091 <a class="code" href="classPatch.html#a0">Patch</a> (string); | ||
| 70 | 00092 | ||
| 71 | 00097 <a class="code" href="classPatch.html#a0">Patch</a> (string, <a class="code" href="classrwKernel.html">rwKernel</a> *); | ||
| 72 | 00098 | ||
| 73 | 00102 <a class="code" href="classPatch.html#a5">~Patch</a> (); | ||
| 74 | 00103 | ||
| 75 | 00104 | ||
| 76 | 00108 <font class="keywordtype">void</font> <a class="code" href="classPatch.html#a6">initFromString</a> (string); | ||
| 77 | 00109 | ||
| 78 | 00113 string <a class="code" href="classPatch.html#a7">getPatchAsString</a> (); | ||
| 79 | 00114 | ||
| 80 | 00119 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a8">wasChanged</a> (); | ||
| 81 | 00120 | ||
| 82 | 00124 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a9">isLinked</a> (); | ||
| 83 | 00125 | ||
| 84 | 00129 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a10">isApplied</a> (); | ||
| 85 | 00130 | ||
| 86 | 00134 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a11">isFailed</a> (); | ||
| 87 | 00135 | ||
| 88 | 00139 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a12">isClean</a> (); | ||
| 89 | 00140 | ||
| 90 | 00144 <font class="keywordtype">int</font> <a class="code" href="classPatch.html#a13">getState</a> (); | ||
| 91 | 00145 | ||
| 92 | 00149 <font class="keywordtype">void</font> <a class="code" href="classPatch.html#a14">restore</a> (); | ||
| 93 | 00150 | ||
| 94 | 00154 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a15">remove</a> (); | ||
| 95 | 00155 | ||
| 96 | 00159 <font class="keywordtype">bool</font> <a class="code" href="classPatch.html#a15">remove</a> (<a class="code" href="classrwKernel.html">rwKernel</a> *); | ||
| 97 | 00160 | ||
| 98 | 00164 <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *<a class="code" href="classPatch.html#a17">getData</a> (); | ||
| 99 | 00165 | ||
| 100 | 00171 <font class="keywordtype">void</font> <a class="code" href="classPatch.html#a19">apply</a> (<a class="code" href="classrwKernel.html">rwKernel</a> *); | ||
| 101 | 00172 | ||
| 102 | 00177 <font class="keywordtype">void</font> <a class="code" href="classPatch.html#a19">apply</a> (); | ||
| 103 | 00178 | ||
| 104 | 00182 <font class="keywordtype">void</font> <a class="code" href="classPatch.html#a20">link</a> (Addr2AddrList *); | ||
| 105 | 00183 | ||
| 106 | 00192 <font class="keywordtype">void</font> <a class="code" href="classPatch.html#a21">dump</a> (string file); | ||
| 107 | 00193 | ||
| 108 | 00197 <font class="keyword">friend</font> istream& <a class="code" href="classPatch.html#l0">operator>> </a>(istream&, <a class="code" href="classPatch.html">Patch</a>&); | ||
| 109 | 00198 | ||
| 110 | 00202 <font class="keyword">friend</font> ostream& <a class="code" href="classPatch.html#l1">operator<< </a>(ostream&, <a class="code" href="classPatch.html">Patch</a>&); | ||
| 111 | 00203 }; | ||
| 112 | 00204 <font class="preprocessor">#endif </font><font class="comment">/* __PATCH_C */</font> | ||
| 113 | </pre></div><hr><address><small>Generated at Tue Aug 14 18:04:51 2001 for Kermit by | ||
| 114 | <a href="http://www.doxygen.org/index.html"> | ||
| 115 | <img src="doxygen.gif" alt="doxygen" align="middle" border=0 | ||
| 116 | width=110 height=53></a>1.2.9.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, | ||
| 117 | © 1997-2001</small></address> | ||
| 118 | </body> | ||
| 119 | </html> | ||
