Re: [cc65] C question

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-12-12 21:15:03


On Thu, Dec 12, 2002 at 12:06:54PM -0800, Shawn Jefferson wrote:
> Sorry, I thought that posting that little bit was enough for someone to tell
> me if what I was doing is legal/correct in C.  I thought you could index from
> a pointer with [].  I'm using cc65 2.8.0, BTW.

The posted code is legal C (otherwise the compiler should complain).

> So, assuming that is a legal way to address this array, then the problem
> must be in my program somewhere.

It may also be a problem with the compiler. Version 2.8.0 is rather old, and
many bugs have been fixed since the release. I would suggest to compile a new
version from the snapshot sources, or use one of the binary snapshot RPMs.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-12 21:15:39 CET