From 66daf3cc1f479300cf3e58278a1167bd862d855a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 22 Aug 2020 10:10:54 -0700 Subject: 6720 --- apps/browse.mu | 4 ++-- apps/parse-int.mu | 4 ++-- apps/print-file.mu | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/browse.mu b/apps/browse.mu index 5681060f..2bb020c9 100644 --- a/apps/browse.mu +++ b/apps/browse.mu @@ -6,7 +6,7 @@ # # Press 'q' to quit. All other keys scroll down. -fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { +fn main args-on-stack: (addr array addr array byte) -> exit-status/ebx: int { # var file/esi: (addr buffered-file) = open args-on-stack[1] for reading {{{ var file/esi: (addr buffered-file) <- copy 0 { @@ -16,7 +16,7 @@ fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { # var filename/ecx: (addr array byte) = args-on-stack[1] {{{ var filename/ecx: (addr array byte) <- copy 0 { - var args/eax: (addr array (addr array byte)) <- copy args-on-stack + var args/eax: (addr array addr array byte) <- copy args-on-stack var tmp/eax: (addr addr array byte) <- index args, 1 filename <- copy *tmp } diff --git a/apps/parse-int.mu b/apps/parse-int.mu index 8ad6074f..65ee4da1 100644 --- a/apps/parse-int.mu +++ b/apps/parse-int.mu @@ -6,10 +6,10 @@ # $ echo $? # 123 -fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { +fn main _args: (addr array addr array byte) -> exit-status/ebx: int { $main-body: { # if no args, print a message and exit - var args/esi: (addr array (addr array byte)) <- copy _args + var args/esi: (addr array addr array byte) <- copy _args var n/ecx: int <- length args compare n, 1 { diff --git a/apps/print-file.mu b/apps/print-file.mu index 7cd51bdc..c8c487b2 100644 --- a/apps/print-file.mu +++ b/apps/print-file.mu @@ -7,8 +7,8 @@ # $ ./a.elf x # abc -fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { - var args/eax: (addr array (addr array byte)) <- copy _args +fn main _args: (addr array addr array byte) -> exit-status/ebx: int { + var args/eax: (addr array addr array byte) <- copy _args $main-body: { var n/ecx: int <- length args compare n, 1 -- cgit 1.4.1-2-gfad0