diff options
author | comex | 2015-01-11 19:39:23 -0500 |
---|---|---|
committer | comex | 2015-01-11 19:39:23 -0500 |
commit | 9850809890076f13bca3d5e6e0fcc050ad647c8d (patch) | |
tree | be432adb27ab9d5d5a6e323fbacc05d03fcbace6 /test/test-tdarm-simple.c | |
parent | C++ is just a giant pain in the ass (diff) | |
download | substitute-9850809890076f13bca3d5e6e0fcc050ad647c8d.tar.gz |
Revert "C++ is just a giant pain in the ass"
This reverts commit 4743027a22ae4e622d7e78f878eff307d02ac373.
Diffstat (limited to '')
-rw-r--r-- | test/test-tdarm-simple.c (renamed from test/test-tdarm-simple.cpp) | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test-tdarm-simple.cpp b/test/test-tdarm-simple.c index d590ba8..99a5d4a 100644 --- a/test/test-tdarm-simple.cpp +++ b/test/test-tdarm-simple.c @@ -11,15 +11,13 @@ typedef struct tc { } *tdis_ctx; #define P(x) P_##x -__attribute__((noinline)) static void P_data(struct tc *ctx, struct dis_data_operand *ops, size_t nops) { printf("data: %08x\n", ctx->op); for(size_t i = 0; i < nops; i++) { - const struct bitslice *n = ops[i].n; - unsigned val = bs_get(n, ctx->op); + unsigned val = bs_get(ops[i].n, ctx->op); printf(" {"); - for(int j = 0; j < n->nruns; j++) { - struct bitslice_run run = n->runs[j]; + for(int j = 0; j < ops[i].n.nruns; j++) { + struct bitslice_run run = ops[i].n.runs[j]; printf(" %d:%d:%d", run.inpos, run.outpos, run.len); } printf(" } =>\n"); |