On 2012-10-09 04:52:27 +0000, Daniel O'Connor said:

> If you really want types of a known width and signedness you should use 
> stdint.h, then you have..
> typedef struct _youServerPacket
> {
>     int8_t     type;				 /* SP_YOU */
>     int8_t     pnum;				 /* Guy needs to know this... */
>     int8_t     hostile;
>     int8_t     swar;
>     int8_t     armies;
>     int8_t     tractor;
>     int8_t     pad2;
>     int8_t     pad3;
>     uint8_t    flags;

Won't "unsigned flags" be "uint16_t flags" ?

>     int32_t    damage;
>     int32_t    shield;
>     int32_t    fuel;
>     uint16_t   etemp;
>     uint16_t   wtemp;
>     uint16_t   whydead;
>     uint8_t    whodead;

"unsigned short whodead" be "uint16_t whodead"?


-- 
Bob Tanner <basic at us.netrek.org>          
Key fingerprint = 9906 320A 8BB6 64AD 96A7  7785 CBFB 10BF 568B F98C