]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
More stuff in qcvm -printfuns
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 5 Dec 2012 13:22:24 +0000 (14:22 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 5 Dec 2012 13:22:24 +0000 (14:22 +0100)
exec.c

diff --git a/exec.c b/exec.c
index f9daf0de45904671331fbb5ac425a28c7c6e8a07..bea8ce4c4aaf275d07a6bffe9312a1db523ec546 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -948,13 +948,15 @@ int main(int argc, char **argv)
     else if (opts_printfuns) {
         for (i = 0; i < vec_size(prog->functions); ++i) {
             int32_t a;
-            printf("Function: %-16s taking %i parameters:",
+            printf("Function: %-16s taking %i parameters:(",
                    prog_getstring(prog, prog->functions[i].name),
                    (unsigned int)prog->functions[i].nargs);
             for (a = 0; a < prog->functions[i].nargs; ++a) {
                 printf(" %i", prog->functions[i].argsize[a]);
             }
-            printf(" firstlocal: %i\n", prog->functions[i].firstlocal);
+            printf(") locals: %i + %i\n",
+                   prog->functions[i].firstlocal,
+                   prog->functions[i].locals);
         }
     }
     else