diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-09 22:43:09 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-09 22:43:09 +0100 |
commit | 16acf605e21e55e8f0520cf54016bfec5291802e (patch) | |
tree | b63615e24216e3d054c052cf330372e1a45b4a23 /sys/src/cmd/acid/main.c | |
parent | 9bdf602ebbdcfcb4baaeb17499a1f1f6865ddc61 (diff) |
acid: make 'a' and 'A' format to have the same size as mach->szaddr
to make it easier to write portable acid code, we
introduce 'A' format in the same meaning as in db(1):
A Print the value of dot in hexadecimal. Dot is
unaffected.
both 'a' (symbolic) and 'A' will both have 64 or 32 bit
size depending on the mach, so pointer array indexing
works the same.
Diffstat (limited to 'sys/src/cmd/acid/main.c')
-rw-r--r-- | sys/src/cmd/acid/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/acid/main.c b/sys/src/cmd/acid/main.c index 0ef9f65cf..9a18f5f53 100644 --- a/sys/src/cmd/acid/main.c +++ b/sys/src/cmd/acid/main.c @@ -281,7 +281,7 @@ readtext(char *s) if(mach->sbreg && lookup(0, mach->sbreg, &sym)) { mach->sb = sym.value; l = enter("SB", Tid); - l->v->fmt = 'X'; + l->v->fmt = 'A'; l->v->ival = mach->sb; l->v->type = TINT; l->v->set = 1; |