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: brett.albertson@xxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9899) Assertion failed: cont > 0, file improvement.c, line 289
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Sep 2004 08:23:13 -0700
Reply-to: rt@xxxxxxxxxxx

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

On Thu, Sep 02, 2004 at 08:03:46AM -0700, Jason Short wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9899 >
> > 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.

Oh; right; I guess we need to use
        #define clause_type_xfer_type uint8
instead.  Then the python code would emit
        #define put_type(xfer_type, val) dio_put_##xfer_type(val)
        #define get_type(xfer_type, val) dio_get_##xfer_type(val)
and
        {
           clause_type_xfer_type tmp;
           get_type(clause_type_xfer_type, &tmp);
           real_packet->field = tmp;
        }




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