about summary refs log blame commit diff stats
path: root/html/400.mu.html
blob: 887a0a2dc11f297c086784d2d64dcd6e383b166d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                               
                              
           




































                                                                                                                 
                                                                                                                            
                                        
                                                                                                                            
                                        
                                                                                      

                                                                                  














                                                                                                                                                                                                                       
                                         




                                                                                                                                               





                                                                                                                                                                                                                                                                                            

                                                                                                                                                







                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                              


                                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                       

                                                                                                                                                                            
                                                                                                                                                                  
                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                     

                                                                                                                                                                    



                                                                                                                                                                                     
                                                                                                                       


                                                                                                                                                                              




















































































































                                                                                                                                                                                                                                                                



                                     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - 400.mu</title>
<meta name="Generator" content="Vim/8.1">
<meta name="plugin-version" content="vim8.1_v1">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal-light">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #c6c6c6; }
body { font-size:12pt; font-family: monospace; color: #000000; background-color: #c6c6c6; }
a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.muComment { color: #005faf; }
.LineNr { }
.Constant { color: #008787; }
.PreProc { color: #c000c0; }
-->
</style>

<script type='text/javascript'>
<!--

/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
  var lineNum;
  lineNum = 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/400.mu'>https://github.com/akkartik/mu/blob/master/400.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr">  1 </span><span class="muComment"># The 4xx series is for primitives implemented in Mu.</span>
<span id="L2" class="LineNr">  2 </span>
<span id="L3" class="LineNr">  3 </span><span class="muComment"># Signatures for major SubX functions defined so far.</span>
<span id="L4" class="LineNr">  4 </span>
<span id="L5" class="LineNr">  5 </span><span class="muComment"># autogenerated</span>
<span id="L6" class="LineNr">  6 </span><span class="PreProc">sig</span> run-tests
<span id="L7" class="LineNr">  7 </span>
<span id="L8" class="LineNr">  8 </span><span class="muComment"># init.linux</span>
<span id="L9" class="LineNr">  9 </span><span class="muComment"># TODO: make this OS-specific</span>
<span id="L10" class="LineNr"> 10 </span><span class="muComment"># TODO: include result type at least, even if register args are too much</span>
<span id="L11" class="LineNr"> 11 </span><span class="PreProc">sig</span> syscall_exit  <span class="muComment"># status/ebx: int</span>
<span id="L12" class="LineNr"> 12 </span><span class="PreProc">sig</span> syscall_read  <span class="muComment"># fd/ebx: int, buf/ecx: addr, size/edx: int -&gt; nbytes-or-error/eax: int</span>
<span id="L13" class="LineNr"> 13 </span><span class="PreProc">sig</span> syscall_write  <span class="muComment"># fd/ebx: int, buf/ecx: addr, size/edx: int -&gt; nbytes-or-error/eax: int</span>
<span id="L14" class="LineNr"> 14 </span><span class="PreProc">sig</span> syscall_open  <span class="muComment"># filename/ebx: (addr kernel-string), flags/ecx: int, dummy=0x180/edx -&gt; fd-or-error/eax: int</span>
<span id="L15" class="LineNr"> 15 </span><span class="PreProc">sig</span> syscall_close  <span class="muComment"># fd/ebx: int -&gt; status/eax</span>
<span id="L16" class="LineNr"> 16 </span><span class="PreProc">sig</span> syscall_creat  <span class="muComment"># filename/ebx: (addr kernel-string) -&gt; fd-or-error/eax: int</span>
<span id="L17" class="LineNr"> 17 </span><span class="PreProc">sig</span> syscall_unlink  <span class="muComment"># filename/ebx: (addr kernel-string) -&gt; status/eax: int</span>
<span id="L18" class="LineNr"> 18 </span><span class="PreProc">sig</span> syscall_rename  <span class="muComment"># source/ebx: (addr kernel-string), dest/ecx: (addr kernel-string) -&gt; status/eax: int</span>
<span id="L19" class="LineNr"> 19 </span><span class="PreProc">sig</span> syscall_mmap  <span class="muComment"># arg/ebx: (addr mmap_arg_struct) -&gt; status/eax: int</span>
<span id="L20" class="LineNr"> 20 </span><span class="PreProc">sig</span> syscall_ioctl  <span class="muComment"># fd/ebx: int, cmd/ecx: int, arg/edx: (addr _)</span>
<span id="L21" class="LineNr"> 21 </span><span class="PreProc">sig</span> syscall_nanosleep  <span class="muComment"># req/ebx: (addr timespec)</span>
<span id="L22" class="LineNr"> 22 </span><span class="PreProc">sig</span> syscall_clock_gettime  <span class="muComment"># clock/ebx: int, out/ecx: (addr timespec)</span>
<span id="L23" class="LineNr"> 23 </span>
<span id="L24" class="LineNr"> 24 </span><span class="muComment"># Generated using:</span>
<span id="L25" class="LineNr"> 25 </span><span class="muComment">#   grep -h '^[a-z]' [0-9]*.subx |grep -v '^test-'</span>
<span id="L26" class="LineNr"> 26 </span><span class="muComment"># Functions we don't want to make accessible from Mu are commented out.</span>
<span id="L27" class="LineNr"> 27 </span><span class="muComment"># Many functions here may not be usable yet because of missing features</span>
<span id="L28" class="LineNr"> 28 </span><span class="muComment"># (global variable support, etc.)</span>
<span id="L29" class="LineNr"> 29 </span><span class="PreProc">sig</span> <a href='102test.subx.html#L23'>check-ints-equal</a> a: int, b: int, msg: (addr array byte)
<span id="L30" class="LineNr"> 30 </span><span class="PreProc">sig</span> <a href='103kernel-string-equal.subx.html#L31'>kernel-string-equal?</a> s: (addr kernel-string), benchmark: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L31" class="LineNr"> 31 </span><span class="PreProc">sig</span> <a href='104new-segment.subx.html#L40'>new-segment</a> len: int, ad: (addr allocation-descriptor)
<span id="L32" class="LineNr"> 32 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L15'>string-equal?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L33" class="LineNr"> 33 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L57'>string-starts-with?</a> s: (addr array byte), benchmark: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L34" class="LineNr"> 34 </span><span class="PreProc">sig</span> <a href='105string-equal.subx.html#L220'>check-strings-equal</a> s: (addr array byte), expected: (addr array byte), msg: (addr array byte)
<span id="L35" class="LineNr"> 35 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L17'>clear-stream</a> f: (addr stream _)
<span id="L36" class="LineNr"> 36 </span><span class="PreProc">sig</span> <a href='106stream.subx.html#L56'>rewind-stream</a> f: (addr stream _)
<span id="L37" class="LineNr"> 37 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L48'>initialize-trace-stream</a> n: int
<span id="L38" class="LineNr"> 38 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L86'>trace</a> line: (addr array byte)
<span id="L39" class="LineNr"> 39 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L253'>check-trace-contains</a> line: (addr string), msg: (addr string)
<span id="L40" class="LineNr"> 40 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L278'>check-trace-scans-to</a> line: (addr string), msg: (addr string)
<span id="L41" class="LineNr"> 41 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L309'>trace-scan</a> line: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L42" class="LineNr"> 42 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L561'>next-line-matches?</a> t: (addr stream byte), line: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L43" class="LineNr"> 43 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L737'>skip-next-line</a> t: (addr stream byte)
<span id="L44" class="LineNr"> 44 </span><span class="PreProc">sig</span> <a href='107trace.subx.html#L845'>clear-trace-stream</a>
<span id="L45" class="LineNr"> 45 </span><span class="PreProc">sig</span> <a href='108write.subx.html#L24'>write</a> f: (addr stream byte), s: (addr array byte)  <span class="muComment"># writing to file descriptor not supported; use buffered-file</span>
<span id="L46" class="LineNr"> 46 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L9'>stream-data-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L47" class="LineNr"> 47 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L194'>check-stream-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte)
<span id="L48" class="LineNr"> 48 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L230'>next-stream-line-equal?</a> f: (addr stream byte), s: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L49" class="LineNr"> 49 </span><span class="PreProc">sig</span> <a href='109stream-equal.subx.html#L565'>check-next-stream-line-equal</a> f: (addr stream byte), s: (addr array byte), msg: (addr array byte)
<span id="L50" class="LineNr"> 50 </span><span class="PreProc">sig</span> <a href='110stop.subx.html#L44'>tailor-exit-descriptor</a> ed: (addr exit-descriptor), nbytes: int
<span id="L51" class="LineNr"> 51 </span><span class="PreProc">sig</span> <a href='110stop.subx.html#L92'>stop</a> ed: (addr exit-descriptor), value: int
<span id="L52" class="LineNr"> 52 </span><span class="muComment">#sig read f: fd or (addr stream byte), s: (addr stream byte) -&gt; num-bytes-read/eax: int</span>
<span id="L53" class="LineNr"> 53 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L38'>read-byte-buffered</a> f: (addr buffered-file)<span class="PreProc"> -&gt; </span>byte-or-Eof/<span class="Constant">eax</span>: byte
<span id="L54" class="LineNr"> 54 </span><span class="PreProc">sig</span> <a href='112read-byte.subx.html#L273'>read-byte</a> s: (addr stream byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: byte
<span id="L55" class="LineNr"> 55 </span><span class="muComment">#sig write-stream f: fd or (addr stream byte), s: (addr stream byte)</span>
<span id="L56" class="LineNr"> 56 </span><span class="muComment">#sig error ed: (addr exit-descriptor), out: fd or (addr stream byte), msg: (addr array byte)</span>
<span id="L57" class="LineNr"> 57 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L33'>write-byte-buffered</a> f: (addr buffered-file), n: int
<span id="L58" class="LineNr"> 58 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L81'>flush</a> f: (addr buffered-file)
<span id="L59" class="LineNr"> 59 </span><span class="PreProc">sig</span> <a href='115write-byte.subx.html#L208'>append-byte</a> f: (addr stream byte), n: int
<span id="L60" class="LineNr"> 60 </span><span class="PreProc">sig</span> <a href='116write-buffered.subx.html#L8'>write-buffered</a> f: (addr buffered-file), msg: (addr array byte)
<span id="L61" class="LineNr"> 61 </span><span class="muComment">#sig to-hex-char in/eax: int -&gt; out/eax: int</span>
<span id="L62" class="LineNr"> 62 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L21'>append-byte-hex</a> f: (addr stream byte), n: int
<span id="L63" class="LineNr"> 63 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L93'>write-byte-hex-buffered</a> f: (addr buffered-file), n: int
<span id="L64" class="LineNr"> 64 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L178'>write-int32-hex</a> f: (addr stream byte), n: int
<span id="L65" class="LineNr"> 65 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L209'>write-int32-hex-bits</a> f: (addr stream byte), n: int, bits: int
<span id="L66" class="LineNr"> 66 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L288'>write-int32-hex-buffered</a> f: (addr buffered-file), n: int
<span id="L67" class="LineNr"> 67 </span><span class="PreProc">sig</span> <a href='117write-int-hex.subx.html#L319'>write-int32-hex-bits-buffered</a> f: (addr buffered-file), n: int, bits: int
<span id="L68" class="LineNr"> 68 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L9'>is-hex-int?</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L69" class="LineNr"> 69 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L354'>parse-hex-int</a> in: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L70" class="LineNr"> 70 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L387'>parse-hex-int-from-slice</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L71" class="LineNr"> 71 </span><span class="muComment">#sig parse-hex-int-helper start: (addr byte), end: (addr byte) -&gt; result/eax: int</span>
<span id="L72" class="LineNr"> 72 </span><span class="PreProc">sig</span> <a href='118parse-hex-int.subx.html#L701'>is-hex-digit?</a> c: byte<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L73" class="LineNr"> 73 </span><span class="muComment">#sig from-hex-char in/eax: byte -&gt; out/eax: nibble</span>
<span id="L74" class="LineNr"> 74 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L21'>parse-decimal-int</a> in: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L75" class="LineNr"> 75 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L3'>parse-decimal-int-from-slice</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L76" class="LineNr"> 76 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L46'>parse-decimal-int-from-stream</a> in: (addr stream byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L77" class="LineNr"> 77 </span><span class="muComment">#sig parse-decimal-int-helper start: (addr byte), end: (addr byte) -&gt; result/eax: int</span>
<span id="L78" class="LineNr"> 78 </span><span class="PreProc">sig</span> <a href='311decimal-int.subx.html#L287'>decimal-size</a> n: int<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L79" class="LineNr"> 79 </span><span class="PreProc">sig</span> <a href='119error-byte.subx.html#L26'>error-byte</a> ed: (addr exit-descriptor), out: (addr buffered-file), msg: (addr array byte), n: byte
<span id="L80" class="LineNr"> 80 </span><span class="muComment">#sig allocate ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L81" class="LineNr"> 81 </span><span class="muComment">#sig allocate-raw ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L82" class="LineNr"> 82 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L256'>lookup</a> h: (handle _T)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: (addr _T)
<span id="L83" class="LineNr"> 83 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L458'>handle-equal?</a> a: (handle _T), b: (handle _T)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L84" class="LineNr"> 84 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L489'>copy-handle</a> src: (handle _T), dest: (addr handle _T)
<span id="L85" class="LineNr"> 85 </span><span class="muComment">#sig allocate-region ad: (addr allocation-descriptor), n: int, out: (addr handle allocation-descriptor)</span>
<span id="L86" class="LineNr"> 86 </span><span class="muComment">#sig allocate-array ad: (addr allocation-descriptor), n: int, out: (addr handle _)</span>
<span id="L87" class="LineNr"> 87 </span><span class="PreProc">sig</span> <a href='120allocate.subx.html#L710'>copy-array</a> ad: (addr allocation-descriptor), src: (addr array _T), out: (addr handle array _T)
<span id="L88" class="LineNr"> 88 </span><span class="muComment">#sig zero-out start: (addr byte), size: int</span>
<span id="L89" class="LineNr"> 89 </span><span class="muComment">#sig new-stream ad: (addr allocation-descriptor), length: int, elemsize: int, out: (addr handle stream _)</span>
<span id="L90" class="LineNr"> 90 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L9'>read-line-buffered</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L91" class="LineNr"> 91 </span><span class="PreProc">sig</span> <a href='122read-line.subx.html#L218'>read-line</a> f: (addr stream byte), s: (addr stream byte)
<span id="L92" class="LineNr"> 92 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L9'>slice-empty?</a> s: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L93" class="LineNr"> 93 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L120'>slice-equal?</a> s: (addr slice), p: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L94" class="LineNr"> 94 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L487'>slice-starts-with?</a> s: (addr slice), head: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L95" class="LineNr"> 95 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L793'>write-slice</a> out: (addr stream byte), s: (addr slice)
<span id="L96" class="LineNr"> 96 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L908'>write-slice-buffered</a> out: (addr buffered-file), s: (addr slice)
<span id="L97" class="LineNr"> 97 </span><span class="PreProc">sig</span> <a href='123slice.subx.html#L1043'>slice-to-string</a> ad: (addr allocation-descriptor), in: (addr slice), out: (addr handle array byte)
<span id="L98" class="LineNr"> 98 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L10'>next-token</a> in: (addr stream byte), delimiter: byte, out: (addr slice)
<span id="L99" class="LineNr"> 99 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L163'>next-token-from-slice</a> start: (addr byte), end: (addr byte), delimiter: byte, out: (addr slice)
<span id="L100" class="LineNr">100 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L341'>skip-chars-matching</a> in: (addr stream byte), delimiter: byte
<span id="L101" class="LineNr">101 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L464'>skip-chars-matching-whitespace</a> in: (addr stream byte)
<span id="L102" class="LineNr">102 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L554'>skip-chars-not-matching</a> in: (addr stream byte), delimiter: byte
<span id="L103" class="LineNr">103 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L716'>skip-chars-not-matching-whitespace</a> in: (addr stream byte)
<span id="L104" class="LineNr">104 </span><span class="muComment">#sig skip-chars-matching-in-slice curr: (addr byte), end: (addr byte), delimiter: byte -&gt; curr/eax: (addr byte)</span>
<span id="L105" class="LineNr">105 </span><span class="muComment">#sig skip-chars-matching-whitespace-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L106" class="LineNr">106 </span><span class="muComment">#sig skip-chars-not-matching-in-slice curr: (addr byte), end: (addr byte), delimiter: byte -&gt; curr/eax: (addr byte)</span>
<span id="L107" class="LineNr">107 </span><span class="muComment">#sig skip-chars-not-matching-whitespace-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L108" class="LineNr">108 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L1171'>skip-string</a> line: (addr stream byte)
<span id="L109" class="LineNr">109 </span><span class="muComment">#sig skip-string-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L110" class="LineNr">110 </span><span class="PreProc">sig</span> <a href='124next-token.subx.html#L1599'>skip-until-close-paren</a> line: (addr stream byte)
<span id="L111" class="LineNr">111 </span><span class="muComment">#sig skip-until-close-paren-in-slice curr: (addr byte), end: (addr byte) -&gt; curr/eax: (addr byte)</span>
<span id="L112" class="LineNr">112 </span><span class="PreProc">sig</span> <a href='125write-stream-data.subx.html#L11'>write-stream-data</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L113" class="LineNr">113 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L8'>write-int32-decimal</a> out: (addr stream byte), n: int
<span id="L114" class="LineNr">114 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L306'>is-decimal-digit?</a> c: grapheme<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L115" class="LineNr">115 </span><span class="PreProc">sig</span> <a href='126write-int-decimal.subx.html#L405'>to-decimal-digit</a> in: grapheme<span class="PreProc"> -&gt; </span>out/<span class="Constant">eax</span>: int
<span id="L116" class="LineNr">116 </span><span class="PreProc">sig</span> <a href='127next-word.subx.html#L10'>next-word</a> line: (addr stream byte), out: (addr slice)
<span id="L117" class="LineNr">117 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L8'>has-metadata?</a> word: (addr slice), s: (addr string)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L118" class="LineNr">118 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L278'>is-valid-name?</a> in: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L119" class="LineNr">119 </span><span class="PreProc">sig</span> <a href='128subx-words.subx.html#L535'>is-label?</a> word: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L120" class="LineNr">120 </span><span class="PreProc">sig</span> <a href='129emit-hex.subx.html#L7'>emit-hex</a> out: (addr buffered-file), n: int, width: int
<span id="L121" class="LineNr">121 </span><span class="PreProc">sig</span> <a href='130emit.subx.html#L10'>emit</a> out: (addr buffered-file), word: (addr slice), width: int
<span id="L122" class="LineNr">122 </span><span class="muComment">#sig get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, abort-message-prefix: (addr array byte) -&gt; result/eax: (addr T)</span>
<span id="L123" class="LineNr">123 </span><span class="muComment">#sig get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int, abort-message-prefix: (addr array byte) -&gt; result/eax: (addr T)</span>
<span id="L124" class="LineNr">124 </span><span class="muComment">#sig get-or-insert table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int, ad: (addr allocation-descriptor) -&gt; result/eax: (addr T)</span>
<span id="L125" class="LineNr">125 </span><span class="muComment">#sig get-or-insert-handle table: (addr stream {(handle array byte), T}), key: (handle array byte), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L126" class="LineNr">126 </span><span class="muComment">#sig get-or-insert-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int, ad: (addr allocation-descriptor) -&gt; result/eax: (addr T)</span>
<span id="L127" class="LineNr">127 </span><span class="muComment">#sig get-or-stop table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int</span>
<span id="L128" class="LineNr">128 </span><span class="muComment">#sig get-slice-or-stop table: (addr stream {(handle array byte), _}), key: (addr slice), row-size: int</span>
<span id="L129" class="LineNr">129 </span><span class="muComment">#sig maybe-get table: (addr stream {(handle array byte), T}), key: (addr array byte), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L130" class="LineNr">130 </span><span class="muComment">#sig maybe-get-slice table: (addr stream {(handle array byte), T}), key: (addr slice), row-size: int -&gt; result/eax: (addr T)</span>
<span id="L131" class="LineNr">131 </span><span class="PreProc">sig</span> <a href='132slurp.subx.html#L8'>slurp</a> f: (addr buffered-file), s: (addr stream byte)
<span id="L132" class="LineNr">132 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L11'>compute-width</a> word: (addr array byte)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L133" class="LineNr">133 </span><span class="PreProc">sig</span> <a href='133subx-widths.subx.html#L45'>compute-width-of-slice</a> s: (addr slice)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L134" class="LineNr">134 </span><span class="PreProc">sig</span> <a href='134emit-hex-array.subx.html#L7'>emit-hex-array</a> out: (addr buffered-file), arr: (addr array byte)
<span id="L135" class="LineNr">135 </span><span class="PreProc">sig</span> <a href='135next-word-or-string.subx.html#L8'>next-word-or-string</a> line: (addr stream byte), out: (addr slice)
<span id="L136" class="LineNr">136 </span><span class="PreProc">sig</span> <a href='202write-int.subx.html#L8'>write-int</a> out: (addr stream byte), n: int
<span id="L137" class="LineNr">137 </span><span class="muComment">#sig clear-stack s: (addr stack)</span>
<span id="L138" class="LineNr">138 </span><span class="muComment">#sig push s: (addr stack), n: int</span>
<span id="L139" class="LineNr">139 </span><span class="muComment">#sig pop s: (addr stack) -&gt; n/eax: int</span>
<span id="L140" class="LineNr">140 </span><span class="muComment">#sig top s: (addr stack) -&gt; n/eax: int</span>
<span id="L141" class="LineNr">141 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L5'>array-equal?</a> a: (addr array int), b: (addr array int)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L142" class="LineNr">142 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L174'>parse-array-of-ints</a> ad: (addr allocation-descriptor), s: (addr string), out: (addr handle array int)
<span id="L143" class="LineNr">143 </span><span class="PreProc">sig</span> <a href='301array-equal.subx.html#L370'>check-array-equal</a> a: (addr array int), expected: (addr string), msg: (addr string)
<span id="L144" class="LineNr">144 </span><span class="muComment">#sig push-n-zero-bytes n: int</span>
<span id="L145" class="LineNr">145 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L7'>kernel-string-to-string</a> ad: (addr allocation-descriptor), in: (addr kernel-string), out: (addr handle array byte)
<span id="L146" class="LineNr">146 </span><span class="PreProc">sig</span> <a href='303kernel-string.subx.html#L57'>kernel-string-length</a> in: (addr kernel-string)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: int
<span id="L147" class="LineNr">147 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L6'>enable-screen-grid-mode</a>
<span id="L148" class="LineNr">148 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L24'>enable-screen-type-mode</a>
<span id="L149" class="LineNr">149 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L37'>real-screen-size</a><span class="PreProc"> -&gt; </span>nrows/<span class="Constant">eax</span>: int, ncols/<span class="Constant">ecx</span>: int
<span id="L150" class="LineNr">150 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L75'>clear-real-screen</a>
<span id="L151" class="LineNr">151 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L91'>move-cursor-on-real-screen</a> row: int, column: int
<span id="L152" class="LineNr">152 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L122'>print-string-to-real-screen</a> s: (addr array byte)
<span id="L153" class="LineNr">153 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L134'>print-slice-to-real-screen</a> s: (addr slice)
<span id="L154" class="LineNr">154 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L147'>print-stream-to-real-screen</a> s: (addr stream byte)
<span id="L155" class="LineNr">155 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L161'>print-grapheme-to-real-screen</a> c: grapheme
<span id="L156" class="LineNr">156 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L226'>print-int32-hex-to-real-screen</a> n: int
<span id="L157" class="LineNr">157 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L239'>print-int32-hex-bits-to-real-screen</a> n: int, bits: int
<span id="L158" class="LineNr">158 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L252'>print-int32-decimal-to-real-screen</a> n: int
<span id="L159" class="LineNr">159 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L265'>write-int32-decimal-buffered</a> f: (addr buffered-file), n: int
<span id="L160" class="LineNr">160 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L289'>reset-formatting-on-real-screen</a>
<span id="L161" class="LineNr">161 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L304'>start-color-on-real-screen</a> fg: int, bg: int
<span id="L162" class="LineNr">162 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L339'>start-bold-on-real-screen</a>
<span id="L163" class="LineNr">163 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L352'>start-underline-on-real-screen</a>
<span id="L164" class="LineNr">164 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L365'>start-reverse-video-on-real-screen</a>
<span id="L165" class="LineNr">165 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L379'>start-blinking-on-real-screen</a>
<span id="L166" class="LineNr">166 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L392'>hide-cursor-on-real-screen</a>
<span id="L167" class="LineNr">167 </span><span class="PreProc">sig</span> <a href='304screen.subx.html#L405'>show-cursor-on-real-screen</a>
<span id="L168" class="LineNr">168 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L6'>enable-keyboard-immediate-mode</a>
<span id="L169" class="LineNr">169 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L72'>enable-keyboard-type-mode</a>
<span id="L170" class="LineNr">170 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L132'>read-key-from-real-keyboard</a><span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: grapheme
<span id="L171" class="LineNr">171 </span><span class="PreProc">sig</span> <a href='305keyboard.subx.html#L158'>read-line-from-real-keyboard</a> in: (addr stream byte)
<span id="L172" class="LineNr">172 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L12'>open</a> filename: (addr array byte), write?: boolean, out: (addr handle buffered-file)
<span id="L173" class="LineNr">173 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L76'>populate-buffered-file-containing</a> contents: (addr array byte), out: (addr handle buffered-file)
<span id="L174" class="LineNr">174 </span><span class="PreProc">sig</span> <a href='306files.subx.html#L122'>new-buffered-file</a> out: (addr handle buffered-file)
<span id="L175" class="LineNr">175 </span><span class="muComment">#sig size in: (addr array _) -&gt; result/eax: int</span>
<span id="L176" class="LineNr">176 </span>
<span id="L177" class="LineNr">177 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L6'>stream-empty?</a> s: (addr stream _)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L178" class="LineNr">178 </span><span class="PreProc">sig</span> <a href='309stream.subx.html#L30'>stream-full?</a> s: (addr stream _)<span class="PreProc"> -&gt; </span>result/<span class="Constant">eax</span>: boolean
<span id="L179" class="LineNr">179 </span><span class="PreProc">sig</span> <a href='310copy-bytes.subx.html#L59'>stream-to-string</a> in: (addr stream _), out: (addr handle array _)
<span id="L180" class="LineNr">180 </span>
<span id="L181" class="LineNr">181 </span><span class="muComment">#sig copy-bytes src: (addr byte), dest: (addr byte), n: int</span>
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->