Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement
Home

[Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bh@xxxxxxxxxxxxxxxxxxx, brett.albertson@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Sep 2004 08:03:46 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9899 >

Benoit Hudson wrote:

> I think I prefer having the enum maintained as long as possible; the only 
> problem is that the decision of how wide the type is should probably be 
> in only one place: if someone changes the enum, they should immediately
> see that they might have to change the size.  I propose we make an 
>       enumtype CLAUSE = clause_type
> directive.  It should use "enum clause_type" as the type for the variable it 
> reads from or writes to, and "clause_type_xfer_type" as the type to be 
> sending over the network.  For any enum that will be transfered, the
> author must write a
>     typedef uint8 clause_type_xfer_type;
> after the enum.

Problem is that requires writing a dio_put_clause_type_xfer_type and 
dio_get_clause_type_xfer_type functions.

jason




[Prev in Thread] Current Thread [Next in Thread]