From aac8185e4ed16cd373de05e773dee693b8924eb3 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 10 Jan 2011 00:00:18 +0900 Subject: [PATCH] Print some addresses in hex. --- tools/qfcc/source/globals.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/qfcc/source/globals.c b/tools/qfcc/source/globals.c index 393639571..329c44d28 100644 --- a/tools/qfcc/source/globals.c +++ b/tools/qfcc/source/globals.c @@ -105,7 +105,7 @@ dump_globals (progs_t *pr) if (def->type == ev_field) comment = va (" %d", G_INT (pr, offset)); - printf ("%d %d %s %s%s\n", offset, saveglobal, name, type, comment); + printf ("%x %d %s %s%s\n", offset, saveglobal, name, type, comment); } } @@ -148,7 +148,7 @@ dump_functions (progs_t *pr) start = func->first_statement; if (start > 0) - comment = va (" @ %d", start); + comment = va (" @ %x", start); else comment = va (" = #%d", -start); @@ -306,6 +306,10 @@ qfo_functions (qfo_t *qfo) QFO_GETSTR (qfo, def->name)); if (!(def->flags & QFOD_EXTERNAL)) printf (" %d", qfo->data[def->ofs].integer_var); + if (func->code) + printf (" @ %x", func->code); + else + printf (" = #%d", func->builtin); puts (""); } }