Commit Graph

1 Commits

Author SHA1 Message Date
Zoltan Somogyi
36c912b0e3 Carve three new modules out of browser/browse.m.
Each of the new modules, and the updated browse.m, have significantly more
cohesion than the original browse.m.

browser/print_term.m:
    A new module containing the parts of the old browse.m that dealt with
    printing out terms or their components.

    This module exports its services to the updated browse.m and
    to trace/mercury_trace_vars.c.

browser/save_term.m:
    A new module containing the parts of the old browse.m that dealt with
    dumping terms to files.

    This module exports its services to trace/mercury_trace_browse.c.

browser/term_paths.m:
    A new module containing the parts of the old browse.m that dealt with
    operations on paths in terms.

    This module exports its services to the updated browse.m,
    declarative_user.m, and print_term.m.

browser/browse.m:
    Delete the code moved to the new modules.

browser/mdb.m:
    Include the three new modules.

browser/term_to_html.m:
    Add module qualifiers to some calls to reduce ambiguity.

browser/declarative_user.m:
ssdb/ssdb.m:
trace/mercury_trace_browse.c:
trace/mercury_trace_vars.c:
    Conform to the changes above.
2023-08-01 04:15:22 +02:00