I cooked up my own script to make graphviz graphs of the "#include"
directives in the emc2 source. There are two sets:
    http://unpy.net/incvis/
    http://unpy.net/incvis-2.1/
the first is from today's TRUNK, and the second is from today's
v2_1_branch.  The generating script is
    http://unpy.net/incvis.py
which expects to be run from the emc2/src directory with a list of
source files (not header files) on standard input:
    find . \( -name "*.c" -or -name "*.cc" \) -print0 | python incvis.py

I've been working on making some improvements to the file inclusions.
Here are two examples of big improvements:
    (old) http://unpy.net/incvis-2.1/emc/rs274ngc/rs274ngc_pre.cc.svg
    (new) http://unpy.net/incvis/emc/rs274ngc/rs274ngc_pre.cc.svg

    (old) http://unpy.net/incvis-2.1/emc/ini/iniaxis.cc.svg
    (new) http://unpy.net/incvis/emc/ini/iniaxis.cc.svg
I think I've hit most of the low-hanging fruit already.

You can also see all the headers (not source files) that include a
particular header:
    http://unpy.net/incvis/emc/nml_intf/emcpos.h.svg
though I'm not sure this feature is terribly useful.

Thanks to Matt Shaver for the inspiration.  I hope that the graphs, and
the simplification/improvements they let me make, are helpful to you.

Jeff

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to