Skip to content
Permalink
Browse files

Fix library diagrams to depend on the output format when asking for t…

…he diagram name suffix
  • Loading branch information...
pmoura committed Jun 12, 2019
1 parent e0c26f6 commit ec64dddac6b3b176a057b2fecbc1b26499d52929
@@ -17,4 +17,4 @@ Indices and tables
* :ref:`genindex`
* :ref:`search`

Generated on Wed Jun 12 16:59:45 WEST 2019
Generated on Wed Jun 12 17:05:51 WEST 2019
@@ -11,8 +11,8 @@
Predicates for generating library dependency diagrams. A dependency exists when an entity in one library makes a reference to an entity in another library.

| **Author:** Paulo Moura
| **Version:** 2.25
| **Date:** 2019/5/3
| **Version:** 2.26
| **Date:** 2019/6/12

| **Compilation flags:**
| ``static, context_switching_calls``
@@ -21,7 +21,6 @@ Predicates for generating library dependency diagrams. A dependency exists when
| **Imports:**
| ``public`` :ref:`library_diagram(Format) <library_diagram/1>`
| **Uses:**
| :ref:`entity_diagram <entity_diagram/0>`
| :ref:`entity_diagram(Format) <entity_diagram/1>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
@@ -11,8 +11,8 @@
Predicates for generating library loading dependency diagrams.

| **Author:** Paulo Moura
| **Version:** 2.25
| **Date:** 2019/5/3
| **Version:** 2.26
| **Date:** 2019/6/12

| **Compilation flags:**
| ``static, context_switching_calls``
@@ -21,7 +21,6 @@ Predicates for generating library loading dependency diagrams.
| **Imports:**
| ``public`` :ref:`library_diagram(Format) <library_diagram/1>`
| **Uses:**
| :ref:`entity_diagram <entity_diagram/0>`
| :ref:`entity_diagram(Format) <entity_diagram/1>`
| :ref:`list <list/0>`
| :ref:`logtalk <logtalk/0>`
@@ -3070,7 +3070,7 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
</ul>
<p>Generated on Wed Jun 12 16:59:45 WEST 2019</p>
<p>Generated on Wed Jun 12 17:05:51 WEST 2019</p>
</div>


@@ -269,8 +269,8 @@ <h1><code class="docutils literal notranslate"><span class="pre">library_depende
<p>Predicates for generating library dependency diagrams. A dependency exists when an entity in one library makes a reference to an entity in another library.</p>
<div class="line-block">
<div class="line"><strong>Author:</strong> Paulo Moura</div>
<div class="line"><strong>Version:</strong> 2.25</div>
<div class="line"><strong>Date:</strong> 2019/5/3</div>
<div class="line"><strong>Version:</strong> 2.26</div>
<div class="line"><strong>Date:</strong> 2019/6/12</div>
</div>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
@@ -285,7 +285,6 @@ <h1><code class="docutils literal notranslate"><span class="pre">library_depende
</div>
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="entity_diagram_0.html#entity-diagram-0"><span class="std std-ref">entity_diagram</span></a></div>
<div class="line"><a class="reference internal" href="entity_diagram_1.html#entity-diagram-1"><span class="std std-ref">entity_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="list_0.html#list-0"><span class="std std-ref">list</span></a></div>
<div class="line"><a class="reference internal" href="logtalk_0.html#logtalk-0"><span class="std std-ref">logtalk</span></a></div>
@@ -269,8 +269,8 @@ <h1><code class="docutils literal notranslate"><span class="pre">library_load_di
<p>Predicates for generating library loading dependency diagrams.</p>
<div class="line-block">
<div class="line"><strong>Author:</strong> Paulo Moura</div>
<div class="line"><strong>Version:</strong> 2.25</div>
<div class="line"><strong>Date:</strong> 2019/5/3</div>
<div class="line"><strong>Version:</strong> 2.26</div>
<div class="line"><strong>Date:</strong> 2019/6/12</div>
</div>
<div class="line-block">
<div class="line"><strong>Compilation flags:</strong></div>
@@ -285,7 +285,6 @@ <h1><code class="docutils literal notranslate"><span class="pre">library_load_di
</div>
<div class="line"><strong>Uses:</strong></div>
<div class="line-block">
<div class="line"><a class="reference internal" href="entity_diagram_0.html#entity-diagram-0"><span class="std std-ref">entity_diagram</span></a></div>
<div class="line"><a class="reference internal" href="entity_diagram_1.html#entity-diagram-1"><span class="std std-ref">entity_diagram(Format)</span></a></div>
<div class="line"><a class="reference internal" href="list_0.html#list-0"><span class="std std-ref">list</span></a></div>
<div class="line"><a class="reference internal" href="logtalk_0.html#logtalk-0"><span class="std std-ref">logtalk</span></a></div>
@@ -22,9 +22,9 @@
imports(library_diagram(Format))).

:- info([
version is 2.25,
version is 2.26,
author is 'Paulo Moura',
date is 2019/05/03,
date is 2019/06/12,
comment is 'Predicates for generating library dependency diagrams. A dependency exists when an entity in one library makes a reference to an entity in another library.',
parnames is ['Format'],
see_also is [library_load_diagram(_), directory_load_diagram(_), file_load_diagram(_)]
@@ -39,6 +39,7 @@

% first, output the library node
output_library(Library, Directory, Options) :-
parameter(1, Format),
^^add_link_options(Directory, Options, LinkingOptions),
^^omit_path_prefix(Directory, Options, Relative),
^^add_library_documentation_url(logtalk, LinkingOptions, Library, NodeOptions0),
@@ -47,7 +48,7 @@
; logtalk::loaded_file_property(File, protocol(_))
; logtalk::loaded_file_property(File, category(_))
) ->
entity_diagram::diagram_name_suffix(Suffix),
entity_diagram(Format)::diagram_name_suffix(Suffix),
^^add_node_zoom_option(Library, Suffix, NodeOptions0, NodeOptions),
assertz(sub_diagrams_(Library))
; % no entities for this library; entity diagram empty
@@ -22,9 +22,9 @@
imports(library_diagram(Format))).

:- info([
version is 2.25,
version is 2.26,
author is 'Paulo Moura',
date is 2019/05/03,
date is 2019/06/12,
comment is 'Predicates for generating library loading dependency diagrams.',
parnames is ['Format'],
see_also is [library_dependency_diagram(_), directory_dependency_diagram(_), file_dependency_diagram(_)]
@@ -39,6 +39,7 @@

% first, output the library node
output_library(Library, Directory, Options) :-
parameter(1, Format),
^^add_link_options(Directory, Options, LinkingOptions),
^^omit_path_prefix(Directory, Options, Relative),
^^add_library_documentation_url(logtalk, LinkingOptions, Library, NodeOptions0),
@@ -47,7 +48,7 @@
; logtalk::loaded_file_property(File, protocol(_))
; logtalk::loaded_file_property(File, category(_))
) ->
entity_diagram::diagram_name_suffix(Suffix),
entity_diagram(Format)::diagram_name_suffix(Suffix),
^^add_node_zoom_option(Library, Suffix, NodeOptions0, NodeOptions),
assertz(sub_diagrams_(Library))
; % no entities for this library; entity diagram empty

0 comments on commit ec64ddd

Please sign in to comment.
You can’t perform that action at this time.