[PATCH] use (GHC) idiomatic types

Simon Marlow marlowsd at gmail.com
Mon Jan 9 11:35:14 CET 2012


Thanks, I'll push.

Cheers,
	Simon

On 07/01/2012 10:25, Gabor Greif wrote:
> ---
>   includes/rts/storage/GC.h |    8 ++++----
>   1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/includes/rts/storage/GC.h b/includes/rts/storage/GC.h
> index fef8e00..26c5593 100644
> --- a/includes/rts/storage/GC.h
> +++ b/includes/rts/storage/GC.h
> @@ -67,7 +67,7 @@ typedef struct nursery_ {
>   } nursery;
>
>   typedef struct generation_ {
> -    unsigned int   no;			// generation number
> +    nat            no;			// generation number
>
>       bdescr *       blocks;	        // blocks in this gen
>       memcount       n_blocks;            // number of blocks
> @@ -85,9 +85,9 @@ typedef struct generation_ {
>       struct generation_ *to;		// destination gen for live objects
>
>       // stats information
> -    unsigned int collections;
> -    unsigned int par_collections;
> -    unsigned int failed_promotions;
> +    nat collections;
> +    nat par_collections;
> +    nat failed_promotions;
>
>       // ------------------------------------
>       // Fields below are used during GC only




More information about the Cvs-ghc mailing list