diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-09-16 09:19:46 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-09-16 09:19:46 -0700 |
commit | 1f2ebeb44f3b0ddf93d7955378b829f2b7b6c2c7 (patch) | |
tree | c8676df726c207ed9df5715e3d8902b0a87bf68a /apps/browse | |
parent | d165ccc377745d2a0e85f32d7a7640a92d01eac3 (diff) | |
download | mu-1f2ebeb44f3b0ddf93d7955378b829f2b7b6c2c7.tar.gz |
6786
Diffstat (limited to 'apps/browse')
-rw-r--r-- | apps/browse/main.mu | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/browse/main.mu b/apps/browse/main.mu index 0e9c0a59..dca84559 100644 --- a/apps/browse/main.mu +++ b/apps/browse/main.mu @@ -1,9 +1,9 @@ fn main args-on-stack: (addr array addr array byte) -> exit-status/ebx: int { var args/eax: (addr array addr array byte) <- copy args-on-stack - var tmp/ecx: int <- length args + var len/ecx: int <- length args $main-body: { # if (len(args) <= 1) print usage and exit - compare tmp, 1 + compare len, 1 { break-if-> print-string-to-real-screen "usage: browse [filename]\n" @@ -12,9 +12,9 @@ fn main args-on-stack: (addr array addr array byte) -> exit-status/ebx: int { break $main-body } # if (args[1] == "test") run-tests() - var tmp2/ecx: (addr addr array byte) <- index args, 1 - var tmp3/eax: boolean <- string-equal? *tmp2, "test" - compare tmp3, 0 + var tmp/ecx: (addr addr array byte) <- index args, 1 + var tmp2/eax: boolean <- string-equal? *tmp, "test" + compare tmp2, 0 { break-if-= run-tests |