Re: [cc65] OT: Question about Power C and C128

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2005-07-05 10:31:22
Hi!

On Mon, Jul 04, 2005 at 08:57:47PM -0700, Payton Byrd wrote:
> char* _sVerbs =
> {
>     { "n", "N", "orth" },
>     { "s", "S", "outh" },
>  /** etc. **/
> };

This declaration is wrong, and the compiler should not accept it in the first
place. You're declaring a pointer to a char and initialize it with an array of
structs or arrays. This is probably the reason why all your attempts to access
one of the members fail - the compiler has just a pointer to a char, not an
array. Here too, the compiler should not just return the first char, but flag
an error.

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 Jul 5 10:31:30 2005

This archive was generated by hypermail 2.1.8 : 2005-07-05 10:31:32 CEST