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

@@ -1,5 +1,5 @@
%-----------------------------------------------------------------------------%
% Copyright (C) 2001-2004 The University of Melbourne.
% Copyright (C) 2001-2005 The University of Melbourne.
% This file may only be copied under the terms of the GNU General
% Public License - see the file COPYING in the Mercury distribution.
%-----------------------------------------------------------------------------%
@@ -29,6 +29,7 @@
:- import_module hlds__hlds_module.
:- import_module hlds__hlds_pred.
:- import_module io.
:- pred delay_construct_proc(pred_id::in, proc_id::in, module_info::in,
@@ -46,7 +47,11 @@
:- import_module libs__globals.
:- import_module parse_tree__prog_data.
:- import_module bool, list, set, std_util, require.
:- import_module bool.
:- import_module list.
:- import_module require.
:- import_module set.
:- import_module std_util.
%-----------------------------------------------------------------------------%