about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-22 10:10:54 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-22 10:14:37 -0700
commit66daf3cc1f479300cf3e58278a1167bd862d855a (patch)
tree323e8936cfc599b1255cb007b410bb35a7ac4a08 /apps
parente8ffaf29cea786e1c1266273c65bdb5eb42b39ab (diff)
downloadmu-66daf3cc1f479300cf3e58278a1167bd862d855a.tar.gz
6720
Diffstat (limited to 'apps')
-rw-r--r--apps/browse.mu4
-rw-r--r--apps/parse-int.mu4
-rw-r--r--apps/print-file.mu4
3 files changed, 6 insertions, 6 deletions
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