about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTString.h
Commit message (Expand)AuthorAgeFilesLines
* snapshot of project "lynx", label v2-8-8dev_11Thomas E. Dickey2012-02-201-0/+162
* snapshot of project "lynx", label v2-8-8dev_10bThomas E. Dickey2012-02-201-162/+0
* snapshot of project "lynx", label v2-8-8dev_9kThomas E. Dickey2012-02-081-6/+9
* snapshot of project "lynx", label v2-8-8dev_8mThomas E. Dickey2011-06-111-0/+159
* snapshot of project "lynx", label v2_8_8dev_9aThomas E. Dickey2011-06-111-159/+0
* snapshot of project "lynx", label v2-8-8dev_5eThomas E. Dickey2010-09-261-2/+9
* snapshot of project "lynx", label v2-8-8dev_3cThomas E. Dickey2010-05-031-0/+152
* snapshot of project "lynx", label v2_8_8dev_6cThomas E. Dickey2010-04-291-152/+0
* snapshot of project "lynx", label v2-8-7dev_13dThomas E. Dickey2009-03-171-4/+8
* snapshot of project "lynx", label v2-8-7dev_11dThomas E. Dickey2009-01-011-28/+23
* snapshot of project "lynx", label v2-8-6dev_18Thomas E. Dickey2006-05-291-0/+2
* snapshot of project "lynx", label v2-8-6dev_10Thomas E. Dickey2005-01-021-47/+53
* snapshot of project "lynx", label v2-8-6dev_5Thomas E. Dickey2004-07-011-11/+0
* snapshot of project "lynx", label v2-8-6dev_4Thomas E. Dickey2004-05-231-1/+0
* snapshot of project "lynx", label v2-8-6dev_3Thomas E. Dickey2004-05-071-50/+50
* snapshot of project "lynx", label v2-8-6dev_2Thomas E. Dickey2004-04-271-35/+35
* snapshot of project "lynx", label v2-8-5pre_4Thomas E. Dickey2004-01-281-0/+1
* snapshot of project "lynx", label v2-8-5dev_15Thomas E. Dickey2003-04-281-4/+28
* snapshot of project "lynx", label v2-8-5dev_13Thomas E. Dickey2003-01-221-0/+9
* snapshot of project "lynx", label v2-8-5dev_4Thomas E. Dickey2001-11-081-1/+1
* snapshot of project "lynx", label v2-8-4dev_19Thomas E. Dickey2001-02-271-2/+0
* snapshot of project "lynx", label v2-8-3dev_14Thomas E. Dickey1999-11-041-0/+8
* snapshot of project "lynx", label v2-8-3dev_13Thomas E. Dickey1999-10-211-1/+1
* snapshot of project "lynx", label v2-8-3dev_2Thomas E. Dickey1999-06-181-0/+12
* snapshot of project "lynx", label v2-8-2pre_4Thomas E. Dickey1999-05-171-0/+16
* snapshot of project "lynx", label v2-8-2dev_23Thomas E. Dickey1999-04-231-0/+2
* snapshot of project "lynx", label v2-8-2dev_13Thomas E. Dickey1999-01-131-0/+2
* snapshot of project "lynx", label v2-8-2dev_10Thomas E. Dickey1998-12-161-0/+3
* snapshot of project "lynx", label v2-8-2dev_9Thomas E. Dickey1998-12-131-0/+16
* snapshot of project "lynx", label v2-8-2dev_7Thomas E. Dickey1998-11-231-2/+2
* snapshot of project "lynx", label v2-8-2dev_5Thomas E. Dickey1998-11-211-3/+3
* snapshot of project "lynx", label v2-8-2dev_3Thomas E. Dickey1998-11-161-7/+12
* snapshot of project "lynx", label v2-8-2dev_2Thomas E. Dickey1998-11-101-2/+0
* snapshot of project "lynx", label v2-8-1dev_4Thomas E. Dickey1998-11-061-0/+2
* snapshot of project "lynx", label v2-8-1dev_20Thomas E. Dickey1998-08-061-2/+0
* snapshot of project "lynx", label v2-8-1dev_5Thomas E. Dickey1998-03-291-1/+1
* snapshot of project "lynx", label v2-7-1ac-0_117Thomas E. Dickey1998-02-271-0/+9
* snapshot of project "lynx", label v2-7-1ac_0-95Thomas E. Dickey1997-11-171-2/+2
* snapshot of project "lynx", label v2-7-1ac_0-89Thomas E. Dickey1997-10-271-0/+3
* snapshot of project "lynx", label v2_6Thomas E. Dickey1996-09-021-0/+51
span class="o">= window.location.hash; lineNum = lineNum.substr(1); /* strip off '#' */ if (lineNum.indexOf('L') == -1) { lineNum = 'L'+lineNum; } var lineElem = document.getElementById(lineNum); /* Always jump to new location even if the line was hidden inside a fold, or * we corrected the raw number to a line ID. */ if (lineElem) { lineElem.scrollIntoView(true); } return true; } if ('onhashchange' in window) { window.onhashchange = JumpToLine; } --> </script> </head> <body onload='JumpToLine();'> <a href='https://github.com/akkartik/mu/blob/master/apps/print-file.mu'>https://github.com/akkartik/mu/blob/master/apps/print-file.mu</a> <pre id='vimCodeElement'> <span id="L1" class="LineNr"> 1 </span><span class="Comment"># accept a filename on the commandline, read it and print it out to screen</span> <span id="L2" class="LineNr"> 2 </span><span class="Comment"># only ascii right now, just like the rest of Mu</span> <span id="L3" class="LineNr"> 3 </span><span class="Comment">#</span> <span id="L4" class="LineNr"> 4 </span><span class="Comment"># To run:</span> <span id="L5" class="LineNr"> 5 </span><span class="Comment"># $ ./translate_mu apps/print-file.mu</span> <span id="L6" class="LineNr"> 6 </span><span class="Comment"># $ echo abc &gt; x</span> <span id="L7" class="LineNr"> 7 </span><span class="Comment"># $ ./a.elf x</span> <span id="L8" class="LineNr"> 8 </span><span class="Comment"># abc</span> <span id="L9" class="LineNr"> 9 </span> <span id="L10" class="LineNr">10 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='print-file.mu.html#L10'>main</a></span> _args: (addr array addr array byte)<span class="PreProc"> -&gt; </span>exit-status/<span class="Constant">ebx</span>: int <span class="Delimiter">{</span> <span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> args/<span class="Constant">eax</span>: (addr array addr array byte) <span class="SpecialChar">&lt;-</span> copy _args <span id="L12" class="LineNr">12 </span>$main-body: <span class="Delimiter">{</span> <span id="L13" class="LineNr">13 </span> <span class="PreProc">var</span> n/<span class="Constant">ecx</span>: int <span class="SpecialChar">&lt;-</span> length args <span id="L14" class="LineNr">14 </span> compare n, <span class="Constant">1</span> <span id="L15" class="LineNr">15 </span> <span class="Delimiter">{</span> <span id="L16" class="LineNr">16 </span> <span class="PreProc">break-if-&gt;</span> <span id="L17" class="LineNr">17 </span> <a href='../405screen.mu.html#L134'>print-string</a> <span class="Constant">0</span>, <span class="Constant">&quot;usage: cat &lt;filename&gt;\n&quot;</span> <span id="L18" class="LineNr">18 </span> <span class="PreProc">break</span> $main-body <span id="L19" class="LineNr">19 </span> <span class="Delimiter">}</span> <span id="L20" class="LineNr">20 </span> <span class="Delimiter">{</span> <span id="L21" class="LineNr">21 </span> <span class="PreProc">break-if-&lt;=</span> <span id="L22" class="LineNr">22 </span> <span class="PreProc">var</span> filename/<span class="Constant">edx</span>: (addr addr array byte) <span class="SpecialChar">&lt;-</span> index args <span class="Constant">1</span> <span id="L23" class="LineNr">23 </span> <span class="PreProc">var</span> in: (handle buffered-file) <span id="L24" class="LineNr">24 </span> <span class="Delimiter">{</span> <span id="L25" class="LineNr">25 </span> <span class="PreProc">var</span> addr-in/<span class="Constant">eax</span>: (addr handle buffered-file) <span class="SpecialChar">&lt;-</span> address in <span id="L26" class="LineNr">26 </span> <a href='../306files.subx.html#L3'>open</a> *filename, <span class="Constant">0</span>, addr-in <span id="L27" class="LineNr">27 </span> <span class="Delimiter">}</span> <span id="L28" class="LineNr">28 </span> <span class="PreProc">var</span> _in-addr/<span class="Constant">eax</span>: (addr buffered-file) <span class="SpecialChar">&lt;-</span> <a href='../120allocate.subx.html#L256'>lookup</a> in <span id="L29" class="LineNr">29 </span> <span class="PreProc">var</span> in-addr/<span class="Constant">ecx</span>: (addr buffered-file) <span class="SpecialChar">&lt;-</span> copy _in-addr <span id="L30" class="LineNr">30 </span> <span class="Delimiter">{</span> <span id="L31" class="LineNr">31 </span> <span class="PreProc">var</span> c/<span class="Constant">eax</span>: byte <span class="SpecialChar">&lt;-</span> <a href='../112read-byte.subx.html#L38'>read-byte-buffered</a> in-addr <span id="L32" class="LineNr">32 </span> compare c, <span class="Constant">0xffffffff</span> <span class="Comment"># EOF marker</span> <span id="L33" class="LineNr">33 </span> <span class="PreProc">break-if-=</span> <span id="L34" class="LineNr">34 </span> <span class="PreProc">var</span> g/<span class="Constant">eax</span>: grapheme <span class="SpecialChar">&lt;-</span> copy c <span id="L35" class="LineNr">35 </span> <a href='../405screen.mu.html#L149'>print-grapheme</a> <span class="Constant">0</span>, g <span id="L36" class="LineNr">36 </span> <span class="PreProc">loop</span> <span id="L37" class="LineNr">37 </span> <span class="Delimiter">}</span> <span id="L38" class="LineNr">38 </span> <span class="Delimiter">}</span> <span id="L39" class="LineNr">39 </span> <span class="Delimiter">}</span> <span id="L40" class="LineNr">40 </span> exit-status <span class="SpecialChar">&lt;-</span> copy <span class="Constant">0</span> <span id="L41" class="LineNr">41 </span><span class="Delimiter">}</span> </pre> </body> </html> <!-- vim: set foldmethod=manual : -->