Import only one module per line in the modules of the compiler

Estimated hours taken: 3
Branches: main

compiler/*.m:
	Import only one module per line in the modules of the compiler
	where my previous diff did not already do so.

	Misc other cleanups.

	Where relevant, use the new mechanism in tree.m.

compiler/tree.m:
	Fix a performance problem I noticed while update :- import_module
	items. Instead of supplying a function to convert lists of trees
	to a tree, make the tree data structure able to hold a list of
	subtrees directly. This reduces the number of times where we have to
	convert list of trees to trees that are sticks just to stay within
	the old definition of what a tree is.
This commit is contained in:
Zoltan Somogyi
2005-03-24 02:00:43 +00:00
parent 6ab59f41ab
commit c08ca7fbc8
78 changed files with 1620 additions and 1087 deletions

View File

@@ -25,7 +25,9 @@
:- import_module mdbcomp__prim_data.
:- import_module parse_tree__prog_data.
:- import_module list, assoc_list, std_util.
:- import_module assoc_list.
:- import_module list.
:- import_module std_util.
% Create a code address which holds the address of the specified
% procedure.
@@ -105,7 +107,14 @@
:- import_module libs__options.
:- import_module parse_tree__prog_util.
:- import_module bool, char, int, string, set, term, varset, require.
:- import_module bool.
:- import_module char.
:- import_module int.
:- import_module require.
:- import_module set.
:- import_module string.
:- import_module term.
:- import_module varset.
%---------------------------------------------------------------------------%