[m-rev.] for review: standardizing event and call sequence numbers

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Sep 25 18:58:09 AEST 2002


On 06-Sep-2002, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> +++ runtime/mercury_stack_trace.c	2002/09/05 02:14:59
> +            snprintf(buf, 64, "E%lu", event_num);
> +            fprintf(fp, "%7s ", buf);
> +            snprintf(buf, 64, "C%lu", call_num);

snprintf() is not portable.
This code needs to be #ifdef'd.

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