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

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


On 02-Aug-2000, Peter Ross <peter.ross at miscrit.be> wrote:
> +++ runtime/mercury_prof.c	2000/08/02 13:51:50
> @@ -101,7 +101,7 @@
>  
>  
>  #ifdef PROFILE_CALLS
> -  static FILE 		*decl_fptr = NULL;
> +  FILE 			*decl_fptr = NULL;

If you want to give that external linkage, then its name
should start with `MR_'.

Also it would be clearer to name that `MR_prof_decl_fptr'
rather than `MR_decl_fptr'.

> Index: runtime/mercury_prof.h
> +/*
> +** A pointer to the "Prof.Decl" file.
> +*/
> +#ifdef PROFILE_CALLS
> +  extern FILE	*decl_fptr;
> +#endif

Likewise here.

> Index: runtime/mercury_wrapper.c
> +#ifdef PROFILE_CALLS
> +	fclose(decl_fptr);
> +#endif

And here.

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