144 lines
15 KiB
Plaintext
144 lines
15 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="generator" content="TempleOS V5.03">
|
||
|
<meta name="viewport" content="width=device-width">
|
||
|
<link rel="stylesheet" href="/style/templeos.css">
|
||
|
<script src="/script/templeos.js"></script>
|
||
|
<style type="text/css">
|
||
|
.cF0{color:#000000;background-color:#ffffff;}
|
||
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
||
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
||
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
||
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
||
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
||
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
||
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
||
|
.cF8{color:#555555;background-color:#ffffff;}
|
||
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
||
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
||
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
||
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
||
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
||
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
||
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<pre id="content">
|
||
|
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc"</span><span class=cF0>
|
||
|
<a name="l2"></a>
|
||
|
<a name="l3"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DocInit</span><span class=cF0>()
|
||
|
<a name="l4"></a>{</span><span class=cF2>//</span><a href="/Wb/Kernel/KernelA.HH.HTML#l904"><span class=cF4>CMD Defines</span></a><span class=cF0>
|
||
|
<a name="l5"></a> </span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc;
|
||
|
<a name="l6"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
||
|
<a name="l7"></a> </span><span class=cF9>CHashGeneric</span><span class=cF0> *tmph;
|
||
|
<a name="l8"></a>
|
||
|
<a name="l9"></a> </span><span class=cF5>DefineLstLoad</span><span class=cF0>(</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,
|
||
|
<a name="l10"></a> </span><span class=cF6>"TX\0CR\0SR\0TB\0PB\0CU\0MK\0PT\0CL\0PL\0LM\0RM\0HD\0FO\0ID\0FG\0"</span><span class=cF0>
|
||
|
<a name="l11"></a> </span><span class=cF6>"BG\0FD\0BD\0WW\0HL\0BK\0IV\0UL\0SX\0SY\0CM\0AN\0LK\0BT\0"</span><span class=cF0>
|
||
|
<a name="l12"></a> </span><span class=cF6>"DA\0CB\0LS\0MA\0MU\0HX\0TR\0SP\0IB\0IS\0SO\0HC\0ER\0"</span><span class=cF0>);
|
||
|
<a name="l13"></a> </span><span class=cF5>DefineLstLoad</span><span class=cF0>(</span><span class=cF6>"ST_DOC_FLAGS"</span><span class=cF0>,
|
||
|
<a name="l14"></a> </span><span class=cF6>"T\0LEN\0A\0D\0HTML\0LE\0LM\0RE\0RM\0BI\0BP\0RT\0SX\0SY\0SCX\0U\0"</span><span class=cF0>
|
||
|
<a name="l15"></a> </span><span class=cF6>"LC\0LIS\0RC\0RIS\0LX\0CX\0RX\0TY\0CY\0BY\0"</span><span class=cF0>
|
||
|
<a name="l16"></a> </span><span class=cF6>"HL\0WW\0BK\0IV\0SEL\0UL\0"</span><span class=cF0>
|
||
|
<a name="l17"></a> </span><span class=cF6>"TC\0PRY\0MRX\0WR\0L\0X\0Q\0FST\0B\0S\0BD\0C\0CA\0RD\0UD\0P\0M\0"</span><span class=cF0>
|
||
|
<a name="l18"></a> </span><span class=cF6>"TRM\0Z\0H\0TR\0LS\0SK\0PU\0SIF\0FS\0NC\0DD\0DL\0DRT\0"</span><span class=cF0>);
|
||
|
<a name="l19"></a> </span><span class=cF5>DefineLstLoad</span><span class=cF0>(</span><span class=cF6>"ST_LINK_TYPES"</span><span class=cF0>,
|
||
|
<a name="l20"></a> </span><span class=cF6>"FI\0FA\0FF\0FL\0MN\0PI\0PF\0PL\0BF\0DN\0HI\0AD\0AI\0AA\0AF\0AL\0"</span><span class=cF0>);
|
||
|
<a name="l21"></a>
|
||
|
<a name="l22"></a> </span><span class=cFB>doldoc</span><span class=cF0>.hash=</span><span class=cF5>HashTableNew</span><span class=cF0>(512);
|
||
|
<a name="l23"></a> </span><span class=cF5>HashDefineLstAdd</span><span class=cF0>(</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,</span><span class=cF3>DHT_DOC_CMD</span><span class=cF0>,</span><span class=cFB>doldoc</span><span class=cF0>.hash);
|
||
|
<a name="l24"></a> </span><span class=cF5>HashDefineLstAdd</span><span class=cF0>(</span><span class=cF6>"ST_DOC_FLAGS"</span><span class=cF0>,</span><span class=cF3>DHT_DOC_FLAG</span><span class=cF0>,</span><span class=cFB>doldoc</span><span class=cF0>.hash);
|
||
|
<a name="l25"></a> </span><span class=cF5>HashDefineLstAdd</span><span class=cF0>(</span><span class=cF6>"ST_COLORS"</span><span class=cF0>,</span><span class=cF3>DHT_COLOR</span><span class=cF0>,</span><span class=cFB>doldoc</span><span class=cF0>.hash);
|
||
|
<a name="l26"></a>
|
||
|
<a name="l27"></a> </span><span class=cF5>MemSet</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.dft_de_flags, 0,</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cFB>doldoc</span><span class=cF0>.dft_de_flags</span><span class=cF7>)</span><span class=cF0>);
|
||
|
<a name="l28"></a> </span><span class=cF5>MemSet</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.dft_type_flags, 0,</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cFB>doldoc</span><span class=cF0>.dft_type_flags</span><span class=cF7>)</span><span class=cF0>);
|
||
|
<a name="l29"></a> cc=</span><span class=cF5>CmpCtrlNew</span><span class=cF0>(</span><span class=cF6>"TX+T;DA+P+TRM+T+DL+DRT;CM+LE+RE;AN+T;LK+L+UL+T;MA+X+UL+T;"</span><span class=cF0>
|
||
|
<a name="l30"></a> </span><span class=cF6>"MU+X+UL+T;BT+X+B+T;CB+CA+P+T+DRT;LS+LS+P+T+DRT;HX+P+Z;TR+TR+C+CA+UL+T;"</span><span class=cF0>
|
||
|
<a name="l31"></a> </span><span class=cF6>"SP+T;IB+T;IS+T;SO+T;HC+T;"</span><span class=cF0>,</span><span class=cF3>CCF_DONT_FREE_BUF</span><span class=cF0>);
|
||
|
<a name="l32"></a> cc->htc.hash_table_lst=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l33"></a> </span><span class=cF5>Lex</span><span class=cF0>(cc);
|
||
|
<a name="l34"></a> </span><span class=cF1>while</span><span class=cF0> (cc->token==</span><span class=cF3>TK_IDENT</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l35"></a> </span><span class=cF1>if</span><span class=cF0> (tmph=</span><span class=cF5>HashFind</span><span class=cF7>(</span><span class=cF0>cc->cur_str,</span><span class=cFB>doldoc</span><span class=cF0>.hash,</span><span class=cF3>DHT_DOC_CMD</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l36"></a> i=tmph->user_data0;
|
||
|
<a name="l37"></a> </span><span class=cF5>Lex</span><span class=cF0>(cc);
|
||
|
<a name="l38"></a> </span><span class=cF5>PrsDocFlags</span><span class=cF0>(cc,&</span><span class=cFB>doldoc</span><span class=cF0>.dft_de_flags[i],&</span><span class=cFB>doldoc</span><span class=cF0>.dft_type_flags[i]);
|
||
|
<a name="l39"></a> }
|
||
|
<a name="l40"></a> </span><span class=cF1>if</span><span class=cF0> (cc->token==</span><span class=cF6>';'</span><span class=cF0>)
|
||
|
<a name="l41"></a> </span><span class=cF5>Lex</span><span class=cF0>(cc);
|
||
|
<a name="l42"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l43"></a> </span><span class=cF5>CmpCtrlDel</span><span class=cF0>(cc);
|
||
|
<a name="l44"></a>
|
||
|
<a name="l45"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>DOCT_TYPES_NUM</span><span class=cF0>;i++)
|
||
|
<a name="l46"></a> </span><span class=cFB>doldoc</span><span class=cF0>.dft_de_flags[i]&=~</span><span class=cF3>DOCG_BL_IV_UL</span><span class=cF0>;
|
||
|
<a name="l47"></a>
|
||
|
<a name="l48"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_form[0]=0;
|
||
|
<a name="l49"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>DOCT_TYPES_NUM</span><span class=cF0>;i++)
|
||
|
<a name="l50"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&</span><span class=cFB>doldoc</span><span class=cF0>.dft_de_flags[i],</span><span class=cF3>DOCEf_TAG</span><span class=cF7>)</span><span class=cF0> && i!=</span><span class=cF3>DOCT_TEXT</span><span class=cF0> || i==</span><span class=cF3>DOCT_HEX_ED</span><span class=cF0>)
|
||
|
<a name="l51"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.type_flags_form,i);
|
||
|
<a name="l52"></a>
|
||
|
<a name="l53"></a> </span><span class=cF2>//Don't forget </span><a href="/Wb/Compiler/Lex.HC.HTML#l322"><span class=cF4>cmp_type_flags_src_code</span></a><span class=cF2>.</span><span class=cF0>
|
||
|
<a name="l54"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_nontag_invis[0]=
|
||
|
<a name="l55"></a> 1<<</span><span class=cF3>DOCT_PMT</span><span class=cF0>|
|
||
|
<a name="l56"></a> 1<<</span><span class=cF3>DOCT_PAGE_LEN</span><span class=cF0>|
|
||
|
<a name="l57"></a> 1<<</span><span class=cF3>DOCT_LEFT_MARGIN</span><span class=cF0>|
|
||
|
<a name="l58"></a> 1<<</span><span class=cF3>DOCT_RIGHT_MARGIN</span><span class=cF0>|
|
||
|
<a name="l59"></a> 1<<</span><span class=cF3>DOCT_HEADER</span><span class=cF0>|
|
||
|
<a name="l60"></a> 1<<</span><span class=cF3>DOCT_FOOTER</span><span class=cF0>|
|
||
|
<a name="l61"></a> 1<<</span><span class=cF3>DOCT_INDENT</span><span class=cF0>|
|
||
|
<a name="l62"></a> 1<<</span><span class=cF3>DOCT_FOREGROUND</span><span class=cF0>|
|
||
|
<a name="l63"></a> 1<<</span><span class=cF3>DOCT_BACKGROUND</span><span class=cF0>|
|
||
|
<a name="l64"></a> 1<<</span><span class=cF3>DOCT_DFT_FOREGROUND</span><span class=cF0>|
|
||
|
<a name="l65"></a> 1<<</span><span class=cF3>DOCT_DFT_BACKGROUND</span><span class=cF0>|
|
||
|
<a name="l66"></a> 1<<</span><span class=cF3>DOCT_WORD_WRAP</span><span class=cF0>|
|
||
|
<a name="l67"></a> 1<<</span><span class=cF3>DOCT_HIGHLIGHT</span><span class=cF0>|
|
||
|
<a name="l68"></a> 1<<</span><span class=cF3>DOCT_BLINK</span><span class=cF0>|
|
||
|
<a name="l69"></a> 1<<</span><span class=cF3>DOCT_INVERT</span><span class=cF0>|
|
||
|
<a name="l70"></a> 1<<</span><span class=cF3>DOCT_UNDERLINE</span><span class=cF0>|
|
||
|
<a name="l71"></a> 1<<</span><span class=cF3>DOCT_SHIFTED_X</span><span class=cF0>|
|
||
|
<a name="l72"></a> 1<<</span><span class=cF3>DOCT_SHIFTED_Y</span><span class=cF0>|
|
||
|
<a name="l73"></a> 1<<</span><span class=cF3>DOCT_SPRITE</span><span class=cF0>;
|
||
|
<a name="l74"></a>
|
||
|
<a name="l75"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_data[0]=1<<</span><span class=cF3>DOCT_DATA</span><span class=cF0>|1<<</span><span class=cF3>DOCT_HEX_ED</span><span class=cF0>|1<<</span><span class=cF3>DOCT_CHECK_BOX</span><span class=cF0>;
|
||
|
<a name="l76"></a>
|
||
|
<a name="l77"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_chk_dup[0]=
|
||
|
<a name="l78"></a> 1<<</span><span class=cF3>DOCT_LEFT_MARGIN</span><span class=cF0>|
|
||
|
<a name="l79"></a> 1<<</span><span class=cF3>DOCT_RIGHT_MARGIN</span><span class=cF0>|
|
||
|
<a name="l80"></a> 1<<</span><span class=cF3>DOCT_HEADER</span><span class=cF0>|
|
||
|
<a name="l81"></a> 1<<</span><span class=cF3>DOCT_FOOTER</span><span class=cF0>|
|
||
|
<a name="l82"></a> 1<<</span><span class=cF3>DOCT_FOREGROUND</span><span class=cF0>|
|
||
|
<a name="l83"></a> 1<<</span><span class=cF3>DOCT_BACKGROUND</span><span class=cF0>|
|
||
|
<a name="l84"></a> 1<<</span><span class=cF3>DOCT_DFT_FOREGROUND</span><span class=cF0>|
|
||
|
<a name="l85"></a> 1<<</span><span class=cF3>DOCT_DFT_BACKGROUND</span><span class=cF0>|
|
||
|
<a name="l86"></a> 1<<</span><span class=cF3>DOCT_WORD_WRAP</span><span class=cF0>|
|
||
|
<a name="l87"></a> 1<<</span><span class=cF3>DOCT_HIGHLIGHT</span><span class=cF0>|
|
||
|
<a name="l88"></a> 1<<</span><span class=cF3>DOCT_BLINK</span><span class=cF0>|
|
||
|
<a name="l89"></a> 1<<</span><span class=cF3>DOCT_INVERT</span><span class=cF0>|
|
||
|
<a name="l90"></a> 1<<</span><span class=cF3>DOCT_UNDERLINE</span><span class=cF0>|
|
||
|
<a name="l91"></a> 1<<</span><span class=cF3>DOCT_SHIFTED_X</span><span class=cF0>|
|
||
|
<a name="l92"></a> 1<<</span><span class=cF3>DOCT_SHIFTED_Y</span><span class=cF0>;
|
||
|
<a name="l93"></a>
|
||
|
<a name="l94"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_CURSOR_RIGHT</span><span class=cF0>);
|
||
|
<a name="l95"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_CURSOR_LEFT</span><span class=cF0>);
|
||
|
<a name="l96"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_CURSOR_UP</span><span class=cF0>);
|
||
|
<a name="l97"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_CURSOR_DOWN</span><span class=cF0>);
|
||
|
<a name="l98"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_PAGE_UP</span><span class=cF0>);
|
||
|
<a name="l99"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_PAGE_DOWN</span><span class=cF0>);
|
||
|
<a name="l100"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_ALT</span><span class=cF0>);
|
||
|
<a name="l101"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_CTRL</span><span class=cF0>);
|
||
|
<a name="l102"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_SHIFT</span><span class=cF0>);
|
||
|
<a name="l103"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_CAPS</span><span class=cF0>);
|
||
|
<a name="l104"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_NUM</span><span class=cF0>);
|
||
|
<a name="l105"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_SCROLL</span><span class=cF0>);
|
||
|
<a name="l106"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_HOME</span><span class=cF0>);
|
||
|
<a name="l107"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_END</span><span class=cF0>);
|
||
|
<a name="l108"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_GUI</span><span class=cF0>);
|
||
|
<a name="l109"></a> </span><span class=cF5>Bts</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.clean_scan_codes,</span><span class=cF3>SC_BACKSPACE</span><span class=cF0>); </span><span class=cF2>//Handled specially</span><span class=cF0>
|
||
|
<a name="l110"></a>}
|
||
|
<a name="l111"></a>
|
||
|
<a name="l112"></a></span><span class=cF5>DocInit</span><span class=cF0>;
|
||
|
</span></pre></body>
|
||
|
</html>
|