[m-rev.] for review: printing streams sensibly in the debugger

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Nov 13 22:45:55 AEDT 2003


On 25-Sep-2003, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 04-Sep-2003, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> > 
> > Print streams sensibly in the debugger.
> > 
> > runtime/mercury_library_types.h:
> > 	Define MercuryFilePtr as a shorthand for MercuryFile *.
> > 
> > library/io.m:
> ...
> > 	To allow the debugger to detect which variables are I/O streams,
> > 	change the stream types from being equivalent to c_pointer (and thus
> > 	indistinguishable from other c_pointers) to their own type.  Implement
> > 	this type as MercuryFilePtr in the C backend. In the IL backend, we
> > 	represent it as Object[], the minimum representation change possible.
> > 
> > 	Use the C type definition to get rid of many casts.
...
> that ... breaks various things, due to io__(input_)stream being an
> abstract equivalence type whose definition's C type no longer corresponds
> to MR_Word.
...
> perhaps it's best to just back out this part of the change?

We had a chat about this, and Simon agreed to fix it.  But thus far no
fix is forthcoming.  Two-and-a-half months is too long a time to leave
the repository broken for, so unless a fix does appear, I propose to
back this out some time early next week.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list