diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-08-22 10:10:54 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-08-22 10:14:37 -0700 |
commit | 66daf3cc1f479300cf3e58278a1167bd862d855a (patch) | |
tree | 323e8936cfc599b1255cb007b410bb35a7ac4a08 /prototypes/browse/21/main.mu | |
parent | e8ffaf29cea786e1c1266273c65bdb5eb42b39ab (diff) | |
download | mu-66daf3cc1f479300cf3e58278a1167bd862d855a.tar.gz |
6720
Diffstat (limited to 'prototypes/browse/21/main.mu')
-rw-r--r-- | prototypes/browse/21/main.mu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/prototypes/browse/21/main.mu b/prototypes/browse/21/main.mu index c936a575..5470a7e2 100644 --- a/prototypes/browse/21/main.mu +++ b/prototypes/browse/21/main.mu @@ -1,4 +1,4 @@ -fn main args: (addr array (addr array byte)) -> exit-status/ebx: int { +fn main args: (addr array addr array byte) -> exit-status/ebx: int { # initialize fs from args[1] var filename/eax: (addr array byte) <- first-arg args var file-state-storage: file-state @@ -43,8 +43,8 @@ fn render-normal fs: (addr file-state), state: (addr screen-position-state) { } } -fn first-arg args-on-stack: (addr array (addr array byte)) -> out/eax: (addr array byte) { - var args/eax: (addr array (addr array byte)) <- copy args-on-stack +fn first-arg args-on-stack: (addr array addr array byte) -> out/eax: (addr array byte) { + var args/eax: (addr array addr array byte) <- copy args-on-stack var result/eax: (addr addr array byte) <- index args, 1 out <- copy *result } |