diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-21 20:48:01 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-22 20:24:21 -0600 |
commit | f22db1302d710fbf017108852991cd6ac538de17 (patch) | |
tree | 2cac83b89b7aaac9da911eb63eb6ee1016ac6a60 /include | |
parent | e9b58f2775704226b514e967097e902a232081f3 (diff) |
new dep graph working
Diffstat (limited to 'include')
-rw-r--r-- | include/rebar.hrl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/rebar.hrl b/include/rebar.hrl index af3f81c..794d738 100644 --- a/include/rebar.hrl +++ b/include/rebar.hrl @@ -27,3 +27,19 @@ -else. -type rebar_dict() :: dict(). -endif. + +-ifdef(namespaced_types). +-type rebar_digraph() :: digraph:graph(). +-else. +-type rebar_digraph() :: digraph(). +-endif. + +-define(GRAPH_VSN, 2). +-type v() :: {digraph:vertex(), term()} | 'false'. +-type e() :: {digraph:vertex(), digraph:vertex()}. +-type graph() :: {list(v()), list(e())}. +-record(graph, + { + vsn = ?GRAPH_VSN :: pos_integer(), + info = {[], []} :: graph() + }). |