[m-rev.] diff: fix ANSI conformance problem with declarative debugger

Mark Anthony BROWN dougl at cs.mu.OZ.AU
Mon May 7 16:40:09 AEST 2001


Fergus Henderson writes:
> I found this one by looking at the logs from the automated tests with lcc.
> 
> ----------
> 
> Estimated hours taken: 0.5
> Branches: main
> 
> Fix a bug that broke tests/debugger/declarative/*_term_dep.m
> when compiled with lcc.
> 
> runtime/mercury_stack_layout.h:
> 	Change the type of the proc_rep field from MR_Word to MR_Word *,
> 	to avoid casts from pointers to integers in static initializers,
> 	which are not allowed in ANSI/ISO C.
> 
> trace/mercury_trace_internal.c:
> trace/mercury_trace_declarative.c:
> 	Add some casts to match the change to mercury_stack_layout.h.
> 

Thanks, Fergus.

--------------------------------------------------------------------------
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