diff --git a/vm/pc/dump.c b/vm/pc/dump.c index 8532041..334274b 100644 --- a/vm/pc/dump.c +++ b/vm/pc/dump.c @@ -13,7 +13,9 @@ char *cond_suffixes[] = "?" }; -#define _ATT_STYLE 0 +#ifndef _ATT_STYLE +#define _ATT_STYLE 1 +#endif static void dump_acc(ctx_t *ctx, acc_t *p); @@ -31,7 +33,7 @@ void dump_instr(ctx_t *ctx, if (lock) log("lock"); -#if !_ATT_STYLE +#if _ATT_STYLE == 0 log("%s", in->name); #else char s1[2] = {0, 0}, s2[2] = {0, 0}; @@ -69,14 +71,14 @@ void dump_instr(ctx_t *ctx, else log("\t"); - if (p1) { -#if !_ATT_STYLE + if (p1) + { +#if _ATT_STYLE == 0 dump_acc(ctx, p1); if (p2) { log(", "); dump_acc(ctx, p2); } - } #else if (p2) { dump_acc(ctx, p2); @@ -89,7 +91,7 @@ void dump_instr(ctx_t *ctx, log("\n"); } -#if !_ATT_STYLE +#if _ATT_STYLE == 0 void dump_acc(ctx_t *ctx, acc_t *p) {