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

@@ -149,11 +149,16 @@
:- import_module parse_tree__error_util.
:- import_module parse_tree__mercury_to_mercury.
:- import_module parse_tree__prog_out.
:- import_module term.
:- import_module transform_hlds__term_util.
:- import_module varset.
:- import_module bool, int, string, map, bag, require.
:- import_module bag.
:- import_module bool.
:- import_module int.
:- import_module map.
:- import_module require.
:- import_module string.
:- import_module term.
:- import_module varset.
indirect_error(horder_call).
indirect_error(pragma_foreign_code).