changeset 735:30e6f1b302a1

Forgot this, fixes segfault.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Sun, 03 Feb 2008 22:15:51 +0200
parents b11d46260909
children 2eee29aaa357
files trunk/src/docgen/docgen.d
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/trunk/src/docgen/docgen.d	Sun Feb 03 21:13:44 2008 +0100
+++ b/trunk/src/docgen/docgen.d	Sun Feb 03 22:15:51 2008 +0200
@@ -46,7 +46,7 @@
     Edge[] edges;
     Vertex[char[]] vertices;
 
-    if (cachedGraph != null) {
+    if (cachedGraph !is null) {
       modules = cachedModules;
       depGraph = cachedGraph;
       return;
@@ -74,18 +74,19 @@
           debug Stdout.format("Setting {} = {}.\n", m.moduleFQN, m.filePath);
         }
       },
-      (Module imported, Module importer, bool isPublic) {
+      (Module imported, Module importer, bool isPublic, bool isStatic) {
         debug Stdout.format("Connecting {} - {}.\n", imported.moduleFQN, importer.moduleFQN);
         auto edge = vertices[imported.moduleFQN].addChild(vertices[importer.moduleFQN]);
         edge.isPublic = isPublic;
+        edge.isStatic = isStatic;
         edges ~= edge;
       },
       modules
     );
 
-    modules.sort(
-      (Module a, Module b){ return icompare(a.moduleFQN, b.moduleFQN); }
-    );
+//    modules.sort(
+//      (Module a, Module b){ return icompare(a.moduleFQN, b.moduleFQN); }
+//    );
 
     depGraph.edges = edges;
     depGraph.vertices = vertices.values;