349 lines
42 KiB
HTML
Executable File
349 lines
42 KiB
HTML
Executable File
<!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/Output;StdOut/DolDoc"</span><span class=cF0>
|
|
<a name="l2"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CTask</span><span class=cF0> *</span><span class=cF5>PopUpViewDoc</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>I64</span><span class=cF0> dof_flags=0)
|
|
<a name="l3"></a>{</span><span class=cF2>//Pass doc to PopUp win task for viewing.</span><span class=cF0>
|
|
<a name="l4"></a> </span><span class=cF1>U8</span><span class=cF0> *buf=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"DocEd(0x%X,0x%X);"</span><span class=cF0>,doc,dof_flags);
|
|
<a name="l5"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>Spawn</span><span class=cF0>(&</span><span class=cF5>SrvCmdLine</span><span class=cF0>,</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF6>"View"</span><span class=cF0>,,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l6"></a> </span><span class=cF5>TaskExe</span><span class=cF0>(task,</span><span class=cF3>NULL</span><span class=cF0>,buf,1<<</span><span class=cF3>JOBf_EXIT_ON_COMPLETE</span><span class=cF0>|1<<</span><span class=cF3>JOBf_FREE_ON_COMPLETE</span><span class=cF0>);
|
|
<a name="l7"></a> </span><span class=cF5>Free</span><span class=cF0>(buf);
|
|
<a name="l8"></a> </span><span class=cF1>return</span><span class=cF0> task;
|
|
<a name="l9"></a>}
|
|
<a name="l10"></a>
|
|
<a name="l11"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>CTask</span><span class=cF0> *</span><span class=cF5>PopUpViewPrint</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *fmt,...)
|
|
<a name="l12"></a>{</span><span class=cF2>//View Print stmt in PopUp win task.</span><span class=cF0>
|
|
<a name="l13"></a> </span><span class=cF9>CTask</span><span class=cF0> *task=</span><span class=cF5>Spawn</span><span class=cF0>(&</span><span class=cF5>SrvCmdLine</span><span class=cF0>,</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF6>"View"</span><span class=cF0>,,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l14"></a> </span><span class=cF1>U8</span><span class=cF0> *buf=</span><span class=cF5>StrPrintJoin</span><span class=cF0>(</span><span class=cF3>NULL</span><span class=cF0>,fmt,argc,argv);
|
|
<a name="l15"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>(,task);
|
|
<a name="l16"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,buf);
|
|
<a name="l17"></a> </span><span class=cF5>Free</span><span class=cF0>(buf);
|
|
<a name="l18"></a> buf=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"DocEd(0x%X);"</span><span class=cF0>,doc);
|
|
<a name="l19"></a> </span><span class=cF5>TaskExe</span><span class=cF0>(task,</span><span class=cF3>NULL</span><span class=cF0>,buf,1<<</span><span class=cF3>JOBf_EXIT_ON_COMPLETE</span><span class=cF0>|1<<</span><span class=cF3>JOBf_FREE_ON_COMPLETE</span><span class=cF0>);
|
|
<a name="l20"></a> </span><span class=cF5>Free</span><span class=cF0>(buf);
|
|
<a name="l21"></a> </span><span class=cF1>return</span><span class=cF0> task;
|
|
<a name="l22"></a>}
|
|
<a name="l23"></a>
|
|
<a name="l24"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Input;File/FileNames;StdIn/DolDoc"</span><span class=cF0>
|
|
<a name="l25"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>PopUpPickFile</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *dir=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l26"></a>{</span><span class=cF2>//Filename chooser. Uses </span><a href="/Wb/Adam/ABlkDev/FileMgr.HC.HTML#l579"><span class=cF4>FileMgr</span></a><span class=cF2>().</span><span class=cF0>
|
|
<a name="l27"></a> </span><span class=cF1>U8</span><span class=cF0> *res,*st,*st2;
|
|
<a name="l28"></a> </span><span class=cF1>if</span><span class=cF0> (dir)
|
|
<a name="l29"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Cd(\"%Q\");FileMgr(FM_PICK_FILE,Fs->parent_task);"</span><span class=cF0>,dir);
|
|
<a name="l30"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l31"></a> st2=</span><span class=cF5>DirCur</span><span class=cF0>;
|
|
<a name="l32"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Cd(\"%Q\");FileMgr(FM_PICK_FILE,Fs->parent_task);"</span><span class=cF0>,st2);
|
|
<a name="l33"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
|
|
<a name="l34"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l35"></a> res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l36"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l37"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l38"></a>}
|
|
<a name="l39"></a>
|
|
<a name="l40"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>PopUpPickDir</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *dir=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l41"></a>{</span><span class=cF2>//File dir name chooser. Uses </span><a href="/Wb/Adam/ABlkDev/FileMgr.HC.HTML#l579"><span class=cF4>FileMgr</span></a><span class=cF2>().</span><span class=cF0>
|
|
<a name="l42"></a> </span><span class=cF1>U8</span><span class=cF0> *res,*st,*st2;
|
|
<a name="l43"></a> </span><span class=cF1>if</span><span class=cF0> (dir)
|
|
<a name="l44"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Cd(\"%Q\");FileMgr(FM_PICK_DIR,Fs->parent_task);"</span><span class=cF0>,dir);
|
|
<a name="l45"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l46"></a> st2=</span><span class=cF5>DirCur</span><span class=cF0>;
|
|
<a name="l47"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Cd(\"%Q\");FileMgr(FM_PICK_DIR,Fs->parent_task);"</span><span class=cF0>,st2);
|
|
<a name="l48"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
|
|
<a name="l49"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l50"></a> res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l51"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l52"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l53"></a>}
|
|
<a name="l54"></a>
|
|
<a name="l55"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>FileNameForm</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *dft=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF9>I64</span><span class=cF0> dof_flags=0,</span><span class=cF9>CTask</span><span class=cF0> *mem_task=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l56"></a>{</span><span class=cF2>//Text filename form in cur win, not PopUp.</span><span class=cF0>
|
|
<a name="l57"></a> </span><span class=cF9>CEdFileName</span><span class=cF0> fn;
|
|
<a name="l58"></a> </span><span class=cF1>if</span><span class=cF0> (dft)
|
|
<a name="l59"></a> </span><span class=cF5>StrCpy</span><span class=cF0>(fn.name,dft);
|
|
<a name="l60"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l61"></a> *fn.name=0;
|
|
<a name="l62"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn,,dof_flags</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l63"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>StrNew</span><span class=cF0>(fn.name,mem_task);
|
|
<a name="l64"></a> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l65"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>NULL</span><span class=cF0>;
|
|
<a name="l66"></a>}
|
|
<a name="l67"></a>
|
|
<a name="l68"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>PopUpFileName</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *dft=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF9>I64</span><span class=cF0> dof_flags=0)
|
|
<a name="l69"></a>{</span><span class=cF2>//Filename chooser. Uses form, not </span><a href="/Wb/Adam/ABlkDev/FileMgr.HC.HTML#l579"><span class=cF4>FileMgr</span></a><span class=cF2>().</span><span class=cF0>
|
|
<a name="l70"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"FileNameForm(\"%Q\",0x%X,Fs->parent_task);"</span><span class=cF0>,
|
|
<a name="l71"></a> dft,dof_flags|</span><span class=cF3>DOF_SIZE_MIN</span><span class=cF0>),*res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l72"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l73"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l74"></a>}
|
|
<a name="l75"></a>
|
|
<a name="l76"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc"</span><span class=cF0>
|
|
<a name="l77"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>PopUpCd</span><span class=cF0>()
|
|
<a name="l78"></a>{
|
|
<a name="l79"></a> </span><span class=cF1>Bool</span><span class=cF0> res;
|
|
<a name="l80"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>PopUpPickDir</span><span class=cF0>;
|
|
<a name="l81"></a> </span><span class=cF1>if</span><span class=cF0> (st) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l82"></a> res=</span><span class=cF5>Cd</span><span class=cF0>(st);
|
|
<a name="l83"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l84"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
|
<a name="l85"></a> res=</span><span class=cF3>FALSE</span><span class=cF0>;
|
|
<a name="l86"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l87"></a>}
|
|
<a name="l88"></a>
|
|
<a name="l89"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Input;Char/Lists;StdIn/DolDoc"</span><span class=cF0>
|
|
<a name="l90"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpPickLst</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *lst)
|
|
<a name="l91"></a>{</span><span class=cF2>//Prompt for lst entry in PopUp win task.</span><span class=cF0>
|
|
<a name="l92"></a> </span><span class=cF9>I64</span><span class=cF0> res,i=0;
|
|
<a name="l93"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l94"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$LTBLUE$"</span><span class=cF0>);
|
|
<a name="l95"></a> </span><span class=cF1>while</span><span class=cF0> (*lst) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l96"></a> </span><span class=cF1>if</span><span class=cF0> (*lst==</span><span class=cF6>'@'</span><span class=cF0>) {</span><span class=cF2>//Check for '@' alias lst entry</span><span class=cF0>
|
|
<a name="l97"></a> i--;
|
|
<a name="l98"></a> lst++;
|
|
<a name="l99"></a> }
|
|
<a name="l100"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$MU,\"%s\",LE=%d$\n"</span><span class=cF0>,lst,i++);
|
|
<a name="l101"></a> lst+=</span><span class=cF5>StrLen</span><span class=cF0>(lst)+1;
|
|
<a name="l102"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l103"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"\n$MU,\"CANCEL\",LE=DOCM_CANCEL$\n"</span><span class=cF0>);
|
|
<a name="l104"></a> res=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l105"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l106"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l107"></a>}
|
|
<a name="l108"></a>
|
|
<a name="l109"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Input;Char/Lists;Char/Define;StdIn/DolDoc"</span><span class=cF0>
|
|
<a name="l110"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>PopUpPickDefineSub</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *dname)
|
|
<a name="l111"></a>{</span><span class=cF2>//Prompt for </span><span class=cF4><u>Define</u></span><span class=cF2> lst entry in PopUp win task.</span><span class=cF0>
|
|
<a name="l112"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUpPickLst</span><span class=cF0>(</span><span class=cF5>Define</span><span class=cF7>(</span><span class=cF0>dname</span><span class=cF7>)</span><span class=cF0>);
|
|
<a name="l113"></a>}
|
|
<a name="l114"></a>
|
|
<a name="l115"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Input;StdIn/DolDoc"</span><span class=cF0>
|
|
<a name="l116"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUp1</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *b1,</span><span class=cF9>I64</span><span class=cF0> n1,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l117"></a>{</span><span class=cF2>//Make PopUp win task with one bttn.</span><span class=cF0>
|
|
<a name="l118"></a> </span><span class=cF9>I64</span><span class=cF0> i,l1=</span><span class=cF5>StrLen</span><span class=cF0>(b1);
|
|
<a name="l119"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l120"></a> </span><span class=cF1>if</span><span class=cF0> (header) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
|
<a name="l121"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$CM+CX,%d,4$$BT,\"%s\",LE=%d$\n"</span><span class=cF0>,-l1/2,b1,n1);
|
|
<a name="l122"></a> </span><span class=cF1>if</span><span class=cF0> (footer) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
|
<a name="l123"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l124"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l125"></a> </span><span class=cF1>return</span><span class=cF0> i;
|
|
<a name="l126"></a>}
|
|
<a name="l127"></a>
|
|
<a name="l128"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUp2</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *b1,</span><span class=cF9>I64</span><span class=cF0> n1,</span><span class=cF1>U8</span><span class=cF0> *b2,</span><span class=cF9>I64</span><span class=cF0> n2,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l129"></a>{</span><span class=cF2>//Make PopUp win task with two bttns.</span><span class=cF0>
|
|
<a name="l130"></a> </span><span class=cF9>I64</span><span class=cF0> i,l1=</span><span class=cF5>StrLen</span><span class=cF0>(b1),l2=</span><span class=cF5>StrLen</span><span class=cF0>(b2),y;
|
|
<a name="l131"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l132"></a> </span><span class=cF1>if</span><span class=cF0> (header) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l133"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
|
<a name="l134"></a> y=4;
|
|
<a name="l135"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l136"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%*s\n"</span><span class=cF0>,l1+l2+10,</span><span class=cF6>""</span><span class=cF0>);
|
|
<a name="l137"></a> y=3;
|
|
<a name="l138"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l139"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$CM+CX,%d,%d$$BT,\"%s\",LE=%d$"</span><span class=cF0>,-</span><span class=cF7>(</span><span class=cF0>l1+l2+3</span><span class=cF7>)</span><span class=cF0>>>1,y,b1,n1);
|
|
<a name="l140"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$CM+CX,%d,0$$BT,\"%s\",LE=%d$\n"</span><span class=cF0> ,-</span><span class=cF7>(</span><span class=cF0>l1+l2+3</span><span class=cF7>)</span><span class=cF0>>>1+l1+6,b2,n2);
|
|
<a name="l141"></a> </span><span class=cF1>if</span><span class=cF0> (footer) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
|
<a name="l142"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l143"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l144"></a> </span><span class=cF1>return</span><span class=cF0> i;
|
|
<a name="l145"></a>}
|
|
<a name="l146"></a>
|
|
<a name="l147"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>PopUpOk</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l148"></a>{</span><span class=cF2>//Make PopUp win task with OKAY bttn.</span><span class=cF0>
|
|
<a name="l149"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUp1</span><span class=cF0>(</span><span class=cF6>"OKAY"</span><span class=cF0>,1,header,footer)>0;
|
|
<a name="l150"></a>}
|
|
<a name="l151"></a>
|
|
<a name="l152"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>PopUpNoYes</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l153"></a>{</span><span class=cF2>//Make PopUp win task with NO/YES bttns.</span><span class=cF0>
|
|
<a name="l154"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUp2</span><span class=cF0>(</span><span class=cF6>"YES"</span><span class=cF0>,1,</span><span class=cF6>"NO"</span><span class=cF0>,0,header,footer)>0;
|
|
<a name="l155"></a>}
|
|
<a name="l156"></a>
|
|
<a name="l157"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>PopUpCancelOk</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l158"></a>{</span><span class=cF2>//Make PopUp win task CANCEL/OKAY bttns.</span><span class=cF0>
|
|
<a name="l159"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUp2</span><span class=cF0>(</span><span class=cF6>"OKAY"</span><span class=cF0>,1,</span><span class=cF6>"CANCEL"</span><span class=cF0>,0,header,footer)>0;
|
|
<a name="l160"></a>}
|
|
<a name="l161"></a>
|
|
<a name="l162"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>PopUpGetStr2</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header,</span><span class=cF9>CTask</span><span class=cF0> *mem_task)
|
|
<a name="l163"></a>{
|
|
<a name="l164"></a> </span><span class=cF1>U8</span><span class=cF0> *res,*st;
|
|
<a name="l165"></a> </span><span class=cF1>if</span><span class=cF0> (header)
|
|
<a name="l166"></a> </span><span class=cF6>"%s"</span><span class=cF0>,header;
|
|
<a name="l167"></a> st=</span><span class=cF5>GetStr</span><span class=cF0>(,,</span><span class=cF3>GSF_WITH_NEW_LINE</span><span class=cF0>);
|
|
<a name="l168"></a> res=</span><span class=cF5>StrNew</span><span class=cF0>(st,mem_task);
|
|
<a name="l169"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l170"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l171"></a>}
|
|
<a name="l172"></a>
|
|
<a name="l173"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>PopUpGetStr</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l174"></a>{</span><span class=cF2>//Prompt for text str in PopUp win task.</span><span class=cF0>
|
|
<a name="l175"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"PopUpGetStr2(0x%X,0x%X);"</span><span class=cF0>,header,</span><span class=cF5>Fs</span><span class=cF0>),
|
|
<a name="l176"></a> *res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l177"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l178"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l179"></a>}
|
|
<a name="l180"></a>
|
|
<a name="l181"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpGetI64</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *msg,</span><span class=cF9>I64</span><span class=cF0> dft,</span><span class=cF9>I64</span><span class=cF0> lo=</span><span class=cF3>I64_MIN</span><span class=cF0>,</span><span class=cF9>I64</span><span class=cF0> hi=</span><span class=cF3>I64_MAX</span><span class=cF0>)
|
|
<a name="l182"></a>{</span><span class=cF2>//Prompt for I64 text expression in PopUp win task.</span><span class=cF0>
|
|
<a name="l183"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"GetI64(0x%X,0x%X,0x%X,0x%X);"</span><span class=cF0>,msg,dft,lo,hi);
|
|
<a name="l184"></a> </span><span class=cF9>I64</span><span class=cF0> res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l185"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l186"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l187"></a>}
|
|
<a name="l188"></a>
|
|
<a name="l189"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>F64</span><span class=cF0> </span><span class=cF5>PopUpGetF64</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *msg,</span><span class=cF1>F64</span><span class=cF0> dft,</span><span class=cF1>F64</span><span class=cF0> lo=</span><span class=cF3>F64_MIN</span><span class=cF0>,</span><span class=cF1>F64</span><span class=cF0> hi=</span><span class=cF3>F64_MAX</span><span class=cF0>)
|
|
<a name="l190"></a>{</span><span class=cF2>//Prompt for F64 text expression in PopUp win task.</span><span class=cF0>
|
|
<a name="l191"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"GetF64(0x%X,0x%X(F64),0x%X(F64),0x%X(F64));"</span><span class=cF0>,msg,dft,lo,hi);
|
|
<a name="l192"></a> </span><span class=cF1>F64</span><span class=cF0> res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>)(</span><span class=cF1>F64</span><span class=cF0>);
|
|
<a name="l193"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l194"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l195"></a>}
|
|
<a name="l196"></a>
|
|
<a name="l197"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpRangeI64</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> lo,</span><span class=cF9>I64</span><span class=cF0> hi,</span><span class=cF9>I64</span><span class=cF0> step=1,
|
|
<a name="l198"></a> </span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l199"></a>{</span><span class=cF2>//Evenly-spaced I64 range chooser in PopUp win task.</span><span class=cF0>
|
|
<a name="l200"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l201"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l202"></a> </span><span class=cF1>if</span><span class=cF0> (header)
|
|
<a name="l203"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
|
<a name="l204"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$LTBLUE$"</span><span class=cF0>);
|
|
<a name="l205"></a> </span><span class=cF1>for</span><span class=cF0> (i=lo;i<=hi;i+=step)
|
|
<a name="l206"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$MU,\"%d\",LE=%d$\n"</span><span class=cF0>,i,i);
|
|
<a name="l207"></a> </span><span class=cF1>if</span><span class=cF0> (footer)
|
|
<a name="l208"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
|
<a name="l209"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l210"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l211"></a> </span><span class=cF1>return</span><span class=cF0> i;
|
|
<a name="l212"></a>}
|
|
<a name="l213"></a>
|
|
<a name="l214"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>F64</span><span class=cF0> </span><span class=cF5>PopUpRangeF64</span><span class=cF0>(</span><span class=cF1>F64</span><span class=cF0> lo,</span><span class=cF1>F64</span><span class=cF0> hi,</span><span class=cF1>F64</span><span class=cF0> step,
|
|
<a name="l215"></a> </span><span class=cF1>U8</span><span class=cF0> *fmt=</span><span class=cF6>"%9.4f"</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l216"></a>{</span><span class=cF2>//Evenly-spaced F64 range chooser in PopUp win task.</span><span class=cF0>
|
|
<a name="l217"></a> </span><span class=cF1>F64</span><span class=cF0> d;
|
|
<a name="l218"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l219"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cF3>STR_LEN</span><span class=cF0>];
|
|
<a name="l220"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l221"></a> </span><span class=cF1>if</span><span class=cF0> (header)
|
|
<a name="l222"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
|
<a name="l223"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$LTBLUE$"</span><span class=cF0>);
|
|
<a name="l224"></a> </span><span class=cF1>for</span><span class=cF0> (d=lo;d<=hi;d+=step) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l225"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(buf,fmt,d);
|
|
<a name="l226"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$MU,\"%s\",LE=0x%X$\n"</span><span class=cF0>,buf,d);
|
|
<a name="l227"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l228"></a> </span><span class=cF1>if</span><span class=cF0> (footer)
|
|
<a name="l229"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
|
<a name="l230"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l231"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l232"></a> </span><span class=cF1>return</span><span class=cF0> i(</span><span class=cF1>F64</span><span class=cF0>);
|
|
<a name="l233"></a>}
|
|
<a name="l234"></a>
|
|
<a name="l235"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>F64</span><span class=cF0> </span><span class=cF5>PopUpRangeF64Exp</span><span class=cF0>(</span><span class=cF1>F64</span><span class=cF0> lo,</span><span class=cF1>F64</span><span class=cF0> hi,</span><span class=cF1>F64</span><span class=cF0> factor,
|
|
<a name="l236"></a> </span><span class=cF1>U8</span><span class=cF0> *fmt=</span><span class=cF6>"%9.4f"</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l237"></a>{</span><span class=cF2>//Exp-spaced F64 range chooser in PopUp win task.</span><span class=cF0>
|
|
<a name="l238"></a> </span><span class=cF1>F64</span><span class=cF0> d;
|
|
<a name="l239"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
|
<a name="l240"></a> </span><span class=cF1>U8</span><span class=cF0> buf[</span><span class=cF3>STR_LEN</span><span class=cF0>];
|
|
<a name="l241"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
|
<a name="l242"></a> </span><span class=cF1>if</span><span class=cF0> (header)
|
|
<a name="l243"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
|
<a name="l244"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$LTBLUE$"</span><span class=cF0>);
|
|
<a name="l245"></a> </span><span class=cF1>for</span><span class=cF0> (d=lo;d<=hi;d*=factor) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l246"></a> </span><span class=cF5>StrPrint</span><span class=cF0>(buf,fmt,d);
|
|
<a name="l247"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$MU,\"%s\",LE=0x%X$\n"</span><span class=cF0>,buf,d);
|
|
<a name="l248"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l249"></a> </span><span class=cF1>if</span><span class=cF0> (footer)
|
|
<a name="l250"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
|
<a name="l251"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
|
<a name="l252"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
|
<a name="l253"></a> </span><span class=cF1>return</span><span class=cF0> i(</span><span class=cF1>F64</span><span class=cF0>);
|
|
<a name="l254"></a>}
|
|
<a name="l255"></a>
|
|
<a name="l256"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>F64</span><span class=cF0> </span><span class=cF5>PopUpRangeF64Log</span><span class=cF0>(</span><span class=cF1>F64</span><span class=cF0> lo,</span><span class=cF1>F64</span><span class=cF0> hi,</span><span class=cF9>I64</span><span class=cF0> steps,
|
|
<a name="l257"></a> </span><span class=cF1>U8</span><span class=cF0> *fmt=</span><span class=cF6>"%9.4f"</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l258"></a>{</span><span class=cF2>//Log-spaced F64 range chooser in PopUp win task.</span><span class=cF0>
|
|
<a name="l259"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF5>PopUpRangeF64Exp</span><span class=cF0>(lo,hi,</span><span class=cF5>Exp</span><span class=cF7>(</span><span class=cF5>Ln</span><span class=cF0>(hi/lo)/(steps-1)</span><span class=cF7>)</span><span class=cF0>,fmt,header,footer);
|
|
<a name="l260"></a>}
|
|
<a name="l261"></a>
|
|
<a name="l262"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"Job/Exe;Task/Job/Exe;Compiler"</span><span class=cF0>
|
|
<a name="l263"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>AdamFile</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *filename,</span><span class=cF1>Bool</span><span class=cF0> warn_ext=</span><span class=cF3>TRUE</span><span class=cF0>)
|
|
<a name="l264"></a>{</span><span class=cF2>//Make adam_task execute file.</span><span class=cF0>
|
|
<a name="l265"></a> </span><span class=cF1>Bool</span><span class=cF0> okay=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l266"></a> </span><span class=cF1>U8</span><span class=cF0> *name=</span><span class=cF5>FileNameAbs</span><span class=cF0>(filename),
|
|
<a name="l267"></a> *name2=</span><span class=cF5>ExtDft</span><span class=cF0>(name,</span><span class=cF6>"HC.Z"</span><span class=cF0>);
|
|
<a name="l268"></a> </span><span class=cF9>I64</span><span class=cF0> res=0;
|
|
<a name="l269"></a> </span><span class=cF1>if</span><span class=cF0> (warn_ext &&
|
|
<a name="l270"></a> !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>name2,</span><span class=cF3>FILEMASK_JIT</span><span class=cF7>)</span><span class=cF0> &&
|
|
<a name="l271"></a> !</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not .HC File\n\n"</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l272"></a> okay=</span><span class=cF3>FALSE</span><span class=cF0>;
|
|
<a name="l273"></a> </span><span class=cF1>if</span><span class=cF0> (okay)
|
|
<a name="l274"></a> res=</span><span class=cF5>Adam</span><span class=cF0>(</span><span class=cF6>"#include \"%s\";"</span><span class=cF0>,name2);
|
|
<a name="l275"></a> </span><span class=cF5>Free</span><span class=cF0>(name2);
|
|
<a name="l276"></a> </span><span class=cF5>Free</span><span class=cF0>(name);
|
|
<a name="l277"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l278"></a>}
|
|
<a name="l279"></a>
|
|
<a name="l280"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpFile</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *filename,</span><span class=cF1>Bool</span><span class=cF0> warn_ext=</span><span class=cF3>TRUE</span><span class=cF0>,
|
|
<a name="l281"></a> </span><span class=cF9>CTask</span><span class=cF0> *parent=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF9>CTask</span><span class=cF0> **_pu_task=</span><span class=cF3>NULL</span><span class=cF0>)
|
|
<a name="l282"></a>{</span><span class=cF2>//</span><a href="/Wb/Compiler/CMain.HC.HTML#l657"><span class=cF4>ExeFile2</span></a><span class=cF2>() in </span><a href="/Wb/Kernel/Job.HC.HTML#l376"><span class=cF4>PopUp</span></a><span class=cF2> task. Cont as User.</span><span class=cF0>
|
|
<a name="l283"></a> </span><span class=cF1>Bool</span><span class=cF0> okay=</span><span class=cF3>TRUE</span><span class=cF0>;
|
|
<a name="l284"></a> </span><span class=cF1>U8</span><span class=cF0> *st,*name=</span><span class=cF5>FileNameAbs</span><span class=cF0>(filename),
|
|
<a name="l285"></a> *name2=</span><span class=cF5>ExtDft</span><span class=cF0>(name,</span><span class=cF6>"HC.Z"</span><span class=cF0>);
|
|
<a name="l286"></a> </span><span class=cF9>I64</span><span class=cF0> res=0;
|
|
<a name="l287"></a> </span><span class=cF1>if</span><span class=cF0> (warn_ext &&
|
|
<a name="l288"></a> !</span><span class=cF5>FilesFindMatch</span><span class=cF7>(</span><span class=cF0>name2,</span><span class=cF3>FILEMASK_JIT</span><span class=cF7>)</span><span class=cF0> &&
|
|
<a name="l289"></a> !</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF3>ST_WARN_ST</span><span class=cF0> </span><span class=cF6>"Not .HC File\n\n"</span><span class=cF7>)</span><span class=cF0>)
|
|
<a name="l290"></a> okay=</span><span class=cF3>FALSE</span><span class=cF0>;
|
|
<a name="l291"></a> </span><span class=cF1>if</span><span class=cF0> (okay) </span><span class=cF7>{</span><span class=cF0>
|
|
<a name="l292"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(
|
|
<a name="l293"></a> </span><span class=cF6>"\"$$WW+H,1$$\";In(\"ExeFile2(\\\"%s\\\",CCF_CMD_LINE);\\n\");"</span><span class=cF0>
|
|
<a name="l294"></a> </span><span class=cF6>"UserTaskCont;"</span><span class=cF0>,
|
|
<a name="l295"></a> name2);
|
|
<a name="l296"></a> res=</span><span class=cF5>PopUp</span><span class=cF0>(st,parent,_pu_task);
|
|
<a name="l297"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l298"></a> </span><span class=cF7>}</span><span class=cF0>
|
|
<a name="l299"></a> </span><span class=cF5>Free</span><span class=cF0>(name2);
|
|
<a name="l300"></a> </span><span class=cF5>Free</span><span class=cF0>(name);
|
|
<a name="l301"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l302"></a>}
|
|
<a name="l303"></a>
|
|
<a name="l304"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpRunFile</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *filename,</span><span class=cF9>I64</span><span class=cF0> ccf_flags=0,...)
|
|
<a name="l305"></a>{</span><span class=cF2>//</span><a href="/Wb/Compiler/CMain.HC.HTML#l614"><span class=cF4>ExeFile</span></a><span class=cF2>() with args using </span><a href="/Wb/Compiler/CMisc.HC.HTML#l48"><span class=cF4>LastFun</span></a><span class=cF2>() in </span><a href="/Wb/Kernel/Job.HC.HTML#l376"><span class=cF4>PopUp</span></a><span class=cF2> task.</span><span class=cF0>
|
|
<a name="l306"></a> </span><span class=cF1>U8</span><span class=cF0> *st,*name=</span><span class=cF5>FileNameAbs</span><span class=cF0>(filename),
|
|
<a name="l307"></a> *name2=</span><span class=cF5>ExtDft</span><span class=cF0>(name,</span><span class=cF6>"HC.Z"</span><span class=cF0>);
|
|
<a name="l308"></a> </span><span class=cF9>I64</span><span class=cF0> res=0;
|
|
<a name="l309"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(
|
|
<a name="l310"></a> </span><span class=cF6>"\"$$WW+H,1$$\";ExeFile2(\"%s\",0x%X);LastFun(0x%X,0x%X);"</span><span class=cF0>,
|
|
<a name="l311"></a> name2,ccf_flags,argc,argv);
|
|
<a name="l312"></a> res=</span><span class=cF5>PopUp</span><span class=cF0>(st,</span><span class=cF5>Fs</span><span class=cF0>);
|
|
<a name="l313"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
|
<a name="l314"></a> </span><span class=cF5>Free</span><span class=cF0>(name2);
|
|
<a name="l315"></a> </span><span class=cF5>Free</span><span class=cF0>(name);
|
|
<a name="l316"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
|
<a name="l317"></a>}
|
|
</span></pre></body>
|
|
</html>
|