[m-rev.] diff: add contexts to MC++

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Apr 11 23:11:23 AEST 2001


On 11-Apr-2001, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> Add context information to Managed C++.
> 
> compiler/mlds_to_c.m:
> 	Export mlds_to_c__output_context.
> 
> compiler/mlds_to_ilasm.m:
> 	Write contexts before writing code.

That's not enough; you also need to output #line directives
to reset the context afterwards (using c_util__reset_line_num).
Otherwise the line numbers for any code which follows the
hand-written Managed C++ code will be wrong.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  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