]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Listing functions
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 26 Jun 2012 11:21:09 +0000 (13:21 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 26 Jun 2012 11:21:09 +0000 (13:21 +0200)
exec.c

diff --git a/exec.c b/exec.c
index 205aa38b3c14824c62d6258f5c35f9da17289663..d1844bd99f3c165571867f7c7bc48053bce839df 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -277,7 +277,8 @@ int main(int argc, char **argv)
         exit(1);
     }
 
-    for (i = 0; i < prog->functions_count; ++i) {
+    for (i = 1; i < prog->functions_count; ++i) {
+        printf("Found function: %s\n", prog_getstring(prog, prog->functions[i].name));
     }
 
     prog_delete(prog);