]> granicus.if.org Git - graphviz/commitdiff
Make sure gdefs.h has debug info in it, to be turned on at final compile time.
authorEmden Gansner <erg@research.att.com>
Mon, 11 Feb 2013 18:53:13 +0000 (13:53 -0500)
committerEmden Gansner <erg@research.att.com>
Mon, 11 Feb 2013 18:53:13 +0000 (13:53 -0500)
lib/gvpr/mkdefs.c

index 998ef96bc4a7c97044b4382135fd66553da03f13..b1d9b7041af5a3a6ba60f540feb8b83532d55b21 100644 (file)
@@ -186,13 +186,11 @@ int main(int argc, char *argv[])
     }
     fprintf(fp, "};\n");
 
-#ifdef DEBUG
-    fprintf(fp, "\nstatic char* gprnames[] = {\n\t\"\",\n");
+    fprintf(fp, "\n#ifdef DEBUG\nstatic char* gprnames[] = {\n\t\"\",\n");
     for (recp = vals.next; recp; recp = recp->next) {
        fprintf(fp, "\t\"%s\",\n", recp->symbol);
     }
-    fprintf(fp, "};\n");
-#endif
+    fprintf(fp, "};\n#endif\n");
 
     fprintf(fp, "\ntypedef unsigned short tctype;\n");
     fprintf(fp, "\nstatic tctype tchk[][2] = {\n\t{ 0, 0 },\n");