3 # Converts the cxref output files into a format that can be read into
4 # the DaVinci graph drawing program.
6 # (c) 1999 Andrew M. Bishop
13 die
"Usage: $0 cxref.include\n" if($#ARGV==-1);
15 open
(INCLUDE
,"<$ARGV[0]") || die
"Cannot open $ARGV[0]\n";
24 ($file,@includes
)=split(/ /);
28 print
"l(\"$file\",n(\"\",[a(\"OBJECT\",\"$file\"),a(\"_GO\",\"ellipse\")],\n";
32 print
"l(\"$file\",n(\"\",[a(\"OBJECT\",\"$file\")],\n";
36 foreach
$include (@includes
)
38 if($include =~
/^
%(.
+)$
/)
40 print
"\te(\"\",[],r(\"$1\")),\n";
44 $sysincludes{$include}=1;
45 print
"\te(\"\",[a(\"EDGEPATTERN\",\"dotted\")],r(\"<$include>\")),\n";
51 foreach
$include (keys
(%sysincludes
))
53 print
"l(\"<$include>\",n(\"\",[a(\"OBJECT\",\"$include\"),a(\"COLOR\",\"#808080\")],[]))\n,\n";