From 16acf605e21e55e8f0520cf54016bfec5291802e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 9 Feb 2014 22:43:09 +0100 Subject: 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. --- sys/src/cmd/acid/expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/src/cmd/acid/expr.c') 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 */ -- cgit v1.2.3