cpack_repository/commit
Show calls to public predicates in predicate overview.
author | Jan Wielemaker |
---|---|
Tue Nov 23 13:49:43 2010 +0100 | |
committer | Jan Wielemaker |
Tue Nov 23 13:49:43 2010 +0100 | |
commit | 78f9e6e0ca40c9582c484e336f2d0a2c13403e79 |
tree | 604fa44c15e2ac1107691c235efc9a214d7a6e08 |
parent | e3149e559d3209eadb7b41c556b5199169b8a2a1 |
Diff style: patch stat
diff --git a/components/cpack.pl b/components/cpack.pl index 1177b46..59c12ee 100644 --- a/components/cpack.pl +++ b/components/cpack.pl @@ -593,6 +593,12 @@ required_predicate(_File, literal(LPI)) --> cpack_link(literal(LPI)), html([span(class(msg_informational), ' multifile')]). +required_predicate(File, literal(LPI)) --> + { file_calls_public_from(File, UsedFile, LPI) + }, + cpack_link(literal(LPI)), + html([span(class(msg_informational), + [' public in ', \cpack_link(UsedFile)])]). required_predicate(_File, PI) --> cpack_link(PI), html(span(class(msg_error), ' undefined')). diff --git a/lib/cpack/dependency.pl b/lib/cpack/dependency.pl index 6a8eff5..c27f32f 100644 --- a/lib/cpack/dependency.pl +++ b/lib/cpack/dependency.pl @@ -35,7 +35,8 @@ cpack_list/2, % +Package, -ListOfImplied cpack_not_satisfied/2, % +Package, -Reasons file_not_satisfied/2, % +File, -Reasons - file_imports_from/3 % +File, -Imports, -From + file_imports_from/3, % +File, -Imports, -From + file_calls_public_from/3 % +File, -UsedFile, +PI ]). :- use_module(library(assoc)). :- use_module(library(ugraphs)).