summaryrefslogtreecommitdiff
path: root/sys/src/cmd/acid/expr.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-09 22:43:09 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-09 22:43:09 +0100
commit16acf605e21e55e8f0520cf54016bfec5291802e (patch)
treeb63615e24216e3d054c052cf330372e1a45b4a23 /sys/src/cmd/acid/expr.c
parent9bdf602ebbdcfcb4baaeb17499a1f1f6865ddc61 (diff)
downloadplan9front-16acf605e21e55e8f0520cf54016bfec5291802e.tar.xz
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/expr.c')
-rw-r--r--sys/src/cmd/acid/expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/acid/expr.c b/sys/src/cmd/acid/expr.c
index 4ba0943c2..cd24ec7b8 100644
--- a/sys/src/cmd/acid/expr.c
+++ b/sys/src/cmd/acid/expr.c
@@ -6,7 +6,7 @@
#define Extern extern
#include "acid.h"
-static int fsize[] =
+int fsize[] =
{
['A'] 4,
['B'] 4,
@@ -149,7 +149,7 @@ oframe(Node *n, Node *res)
res->ival = ival;
res->op = OCONST;
- res->fmt = 'X';
+ res->fmt = 'A';
res->type = TINT;
/* Try and set comt */