From fnaumann@mail.cs.uni-magdeburg.de Mon Dec 8 20:07:48 2003 Date: Mon, 08 Dec 2003 19:56:21 +0100 To: MiNT Mailing List Subject: Re: [MiNT] gemlib OBSPEC & TEDINFO problem References: From: Arnaud BERCEGEAY Content-Type: text/plain; format=flowed; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera7.23/Linux M2 build 518 Delivered-To: mint@fishpool.com Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: arnaud.bercegeay@free.fr Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: Hello, > Can't we change this to contain the OBJC_COLORWORD structure directly or > at least as some union inside? Well... TEDINFO.te_color is a "short" value (2 bytes). Are we sure that sizeof(OBJC_COLORWORD) will always be 2 bytes, for all compilers ? Is there a rule to garanty that. A bit further: if we use a union data (with a short and a OBJC_COLORWORD), same question: how can we be sure that size(this_union)=2 with all compilers ? Best regards, Arnaud.