[m-dev.] for review: bootstrap hlc.gc.memprof grade

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Aug 8 18:14:57 AEST 2000


On 02-Aug-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> runtime/mercury_prof.c:
> runtime/mercury_prof.h:
>     Make decl_fptr an extern global pointer so that mercury_wrapper.c
>     can call fclose on it.
> 
> runtime/mercury_wrapper.c:
>     Call fclose on decl_fptr.

Why do you need to call fclose(decl_ptr) from mercury_wrapper.c?
There's already code to fclose(decl_ptr) in the MR_prof_finish()
function in runtime/mercury_prof.c.  Isn't that the right place
to do the close?

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