Re: [cc65] Arrays of structs

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-08-16 17:49:45
On Tue, Aug 16, 2005 at 10:08:45PM +0930, Mike Hawkey wrote:
> typedef		char		UINT8;

BTW: It is better to use

        typedef unsigned char UINT8;

because chars may also be signed. cc65 has unsigned chars by default, but
using "unsigned char" in the typedef is more portable. It is still not
completely portable because chars must not be 8 bits wide, but compilers with
other char width are quite rare.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Aug 16 17:49:57 2005

This archive was generated by hypermail 2.1.8 : 2005-08-16 17:49:59 CEST