mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-28 08:16:31 +00:00
147 lines
18 KiB
HTML
Executable file
147 lines
18 KiB
HTML
Executable file
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
|
|
<meta name="generator" content="ZealOS V1.06">
|
|
<style type="text/css">
|
|
body {background-color:#1f1f1f;}
|
|
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
|
|
.cF1{color:#4f84a6;background-color:#1f1f1f;}
|
|
.cF2{color:#73a255;background-color:#1f1f1f;}
|
|
.cF3{color:#297582;background-color:#1f1f1f;}
|
|
.cF4{color:#b34f4b;background-color:#1f1f1f;}
|
|
.cF5{color:#8a52c3;background-color:#1f1f1f;}
|
|
.cF6{color:#b7822f;background-color:#1f1f1f;}
|
|
.cF7{color:#444444;background-color:#1f1f1f;}
|
|
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
|
|
.cF9{color:#94bfde;background-color:#1f1f1f;}
|
|
.cFA{color:#a1ce97;background-color:#1f1f1f;}
|
|
.cFB{color:#6db4be;background-color:#1f1f1f;}
|
|
.cFC{color:#e88e88;background-color:#1f1f1f;}
|
|
.cFD{color:#ca94e8;background-color:#1f1f1f;}
|
|
.cFE{color:#d4b475;background-color:#1f1f1f;}
|
|
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre style="font-family:monospace;font-size:12pt">
|
|
<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="https://zeal-operating-system.github.io/ZealOS/Kernel/KernelA.HH.html#l1041"><span class=cF4>CMD Defines</span></a><span class=cF0>
|
|
<a name="l5"></a> </span><span class=cF9>CCompCtrl</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>DefineListLoad</span><span class=cF0>(</span><span class=cF6>"ST_DOC_CMDS"</span><span class=cF0>,
|
|
<a name="l10"></a>
|
|
<a name="l11"></a> </span><span class=cF6>"TX\0CR\0SR\0TB\0PB\0CU\0MK\0PT\0CL\0PL\0LM\0RM\0HD\0FO\0ID\0FG\0BG\0FD\0BD\0WW\0HL\0BK\0IV\0UL"</span><span class=cF0>
|
|
<a name="l12"></a> </span><span class=cF6>"\0SX\0SY\0CM\0AN\0LK\0BT\0DA\0CB\0LS\0MA\0MU\0HX\0TR\0SP\0IB\0IS\0SO\0HC\0ER\0"</span><span class=cF0>);
|
|
<a name="l13"></a>
|
|
<a name="l14"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>"ST_DOC_FLAGS"</span><span class=cF0>,
|
|
<a name="l15"></a>
|
|
<a name="l16"></a> </span><span class=cF6>"T\0LEN\0A\0D\0HTML\0LE\0LM\0RE\0RM\0BI\0BP\0RT\0SX\0SY\0SCX\0U\0LC\0LIS\0RC\0RIS\0LX\0CX\0RX\0TY\0CY\0BY\0"</span><span class=cF0>
|
|
<a name="l17"></a> </span><span class=cF6>"HL\0WW\0BK\0IV\0SEL\0UL\0TC\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>
|
|
<a name="l20"></a> </span><span class=cF5>DefineListLoad</span><span class=cF0>(</span><span class=cF6>"ST_LINK_TYPES"</span><span class=cF0>,
|
|
<a name="l21"></a>
|
|
<a name="l22"></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="l23"></a>
|
|
<a name="l24"></a> </span><span class=cFB>doldoc</span><span class=cF0>.hash = </span><span class=cF5>HashTableNew</span><span class=cF0>(</span><span class=cFE>512</span><span class=cF0>);
|
|
<a name="l25"></a> </span><span class=cF5>HashDefineListAdd</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="l26"></a> </span><span class=cF5>HashDefineListAdd</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="l27"></a> </span><span class=cF5>HashDefineListAdd</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="l28"></a>
|
|
<a name="l29"></a> </span><span class=cF5>MemSet</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.default_de_flags, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cFB>doldoc</span><span class=cF0>.default_de_flags</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l30"></a> </span><span class=cF5>MemSet</span><span class=cF0>(</span><span class=cFB>doldoc</span><span class=cF0>.default_type_flags, </span><span class=cFE>0</span><span class=cF0>, </span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cFB>doldoc</span><span class=cF0>.default_type_flags</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l31"></a>
|
|
<a name="l32"></a> cc = </span><span class=cF5>CompCtrlNew</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="l33"></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="l34"></a> </span><span class=cF6>"SP+T;IB+T;IS+T;SO+T;HC+T;"</span><span class=cF0>,
|
|
<a name="l35"></a> </span><span class=cF3>CCF_DONT_FREE_BUF</span><span class=cF0>);
|
|
<a name="l36"></a> cc->htc.hash_table_list = </span><span class=cF3>NULL</span><span class=cF0>;
|
|
<a name="l37"></a> </span><span class=cF5>Lex</span><span class=cF0>(cc);
|
|
<a name="l38"></a> </span><span class=cF1>while</span><span class=cF0> (cc->token == </span><span class=cF3>TK_IDENT</span><span class=cF0>)
|
|
<a name="l39"></a> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l40"></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="l41"></a> {
|
|
<a name="l42"></a> i = tmph->user_data0;
|
|
<a name="l43"></a> </span><span class=cF5>Lex</span><span class=cF0>(cc);
|
|
<a name="l44"></a> </span><span class=cF5>ParseDocFlags</span><span class=cF0>(cc, &</span><span class=cFB>doldoc</span><span class=cF0>.default_de_flags[i], &</span><span class=cFB>doldoc</span><span class=cF0>.default_type_flags[i]);
|
|
<a name="l45"></a> }
|
|
<a name="l46"></a> </span><span class=cF1>if</span><span class=cF0> (cc->token == </span><span class=cF6>';'</span><span class=cF0>)
|
|
<a name="l47"></a> </span><span class=cF5>Lex</span><span class=cF0>(cc);
|
|
<a name="l48"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l49"></a> </span><span class=cF5>CompCtrlDel</span><span class=cF0>(cc);
|
|
<a name="l50"></a>
|
|
<a name="l51"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < </span><span class=cF3>DOCT_TYPES_NUM</span><span class=cF0>; i++)
|
|
<a name="l52"></a> </span><span class=cFB>doldoc</span><span class=cF0>.default_de_flags[i] &= ~</span><span class=cF3>DOCG_BL_IV_UL</span><span class=cF0>;
|
|
<a name="l53"></a>
|
|
<a name="l54"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_form[</span><span class=cFE>0</span><span class=cF0>] = </span><span class=cFE>0</span><span class=cF0>;
|
|
<a name="l55"></a> </span><span class=cF1>for</span><span class=cF0> (i = </span><span class=cFE>0</span><span class=cF0>; i < </span><span class=cF3>DOCT_TYPES_NUM</span><span class=cF0>; i++)
|
|
<a name="l56"></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>.default_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="l57"></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="l58"></a>
|
|
<a name="l59"></a> </span><span class=cF2>//Don't forget </span><a href="https://zeal-operating-system.github.io/ZealOS/Compiler/Lex.CC.html#l378"><span class=cF4>comp_type_flags_src_code</span></a><span class=cF2>.</span><span class=cF0>
|
|
<a name="l60"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_nontag_invis[</span><span class=cFE>0</span><span class=cF0>] =
|
|
<a name="l61"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_PROMPT</span><span class=cF0> |
|
|
<a name="l62"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_PAGE_LEN</span><span class=cF0> |
|
|
<a name="l63"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_LEFT_MARGIN</span><span class=cF0> |
|
|
<a name="l64"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_RIGHT_MARGIN</span><span class=cF0> |
|
|
<a name="l65"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_HEADER</span><span class=cF0> |
|
|
<a name="l66"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_FOOTER</span><span class=cF0> |
|
|
<a name="l67"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_INDENT</span><span class=cF0> |
|
|
<a name="l68"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_FOREGROUND</span><span class=cF0> |
|
|
<a name="l69"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_BACKGROUND</span><span class=cF0> |
|
|
<a name="l70"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_DEFAULT_FOREGROUND</span><span class=cF0> |
|
|
<a name="l71"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_DEFAULT_BACKGROUND</span><span class=cF0> |
|
|
<a name="l72"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_WORD_WRAP</span><span class=cF0> |
|
|
<a name="l73"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_HIGHLIGHT</span><span class=cF0> |
|
|
<a name="l74"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_BLINK</span><span class=cF0> |
|
|
<a name="l75"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_INVERT</span><span class=cF0> |
|
|
<a name="l76"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_UNDERLINE</span><span class=cF0> |
|
|
<a name="l77"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_SHIFTED_X</span><span class=cF0> |
|
|
<a name="l78"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_SHIFTED_Y</span><span class=cF0> |
|
|
<a name="l79"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_SPRITE</span><span class=cF0>;
|
|
<a name="l80"></a>
|
|
<a name="l81"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_data[</span><span class=cFE>0</span><span class=cF0>] = </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_DATA</span><span class=cF0> | </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_HEX_ED</span><span class=cF0> | </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_CHECK_BOX</span><span class=cF0>;
|
|
<a name="l82"></a>
|
|
<a name="l83"></a> </span><span class=cFB>doldoc</span><span class=cF0>.type_flags_chk_dup[</span><span class=cFE>0</span><span class=cF0>] =
|
|
<a name="l84"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_LEFT_MARGIN</span><span class=cF0> |
|
|
<a name="l85"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_RIGHT_MARGIN</span><span class=cF0> |
|
|
<a name="l86"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_HEADER</span><span class=cF0> |
|
|
<a name="l87"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_FOOTER</span><span class=cF0> |
|
|
<a name="l88"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_FOREGROUND</span><span class=cF0> |
|
|
<a name="l89"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_BACKGROUND</span><span class=cF0> |
|
|
<a name="l90"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_DEFAULT_FOREGROUND</span><span class=cF0> |
|
|
<a name="l91"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_DEFAULT_BACKGROUND</span><span class=cF0> |
|
|
<a name="l92"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_WORD_WRAP</span><span class=cF0> |
|
|
<a name="l93"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_HIGHLIGHT</span><span class=cF0> |
|
|
<a name="l94"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_BLINK</span><span class=cF0> |
|
|
<a name="l95"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_INVERT</span><span class=cF0> |
|
|
<a name="l96"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_UNDERLINE</span><span class=cF0> |
|
|
<a name="l97"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_SHIFTED_X</span><span class=cF0> |
|
|
<a name="l98"></a> </span><span class=cFE>1</span><span class=cF0> << </span><span class=cF3>DOCT_SHIFTED_Y</span><span class=cF0>;
|
|
<a name="l99"></a>
|
|
<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_CURSOR_RIGHT</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_CURSOR_LEFT</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_CURSOR_UP</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_CURSOR_DOWN</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_PAGE_UP</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_PAGE_DOWN</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_ALT</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_CTRL</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_SHIFT</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_CAPS</span><span class=cF0>);
|
|
<a name="l110"></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="l111"></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="l112"></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="l113"></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="l114"></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="l115"></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="l116"></a>}
|
|
<a name="l117"></a>
|
|
<a name="l118"></a></span><span class=cF5>DocInit</span><span class=cF0>;
|
|
</span></pre></body>
|
|
</html>
|