[m-dev.] diff: Fix a couple of bugs in Morphine-collect.

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Aug 16 19:34:58 AEST 2000


On 16-Aug-2000, Erwan Jahier <Erwan.Jahier at irisa.fr> wrote:
> Fix a couple of bugs in Morphine-collect.
> 
> extras/morphine/source/collect.in:
> 	Import the `int' module as it is needed by the integer
> 	event attributes.
...
> -:- import_module int, io, std_util.
> +:- import_module list, int, io, std_util.

Actually the log message here was wrong, the change is to import the
`list' module.  But the change is fine.

> extras/morphine/source/collect.op:
> 	Add a #1 directive so that the error message eventually produced 
> 	during the compilation of collect.m indicates a line number
> 	that makes sense.

It would be a good idea to also add a `:- pragma source_file' declaration
immediately before the `#1' directive.  Otherwise the error messages
will indicate the right line, but the wrong file, which may be quite
confusing...

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list