[cc65] Two possible bugs

Date view Thread view Subject view

From: Keates, Mark (Mark.Keates_at_dendrite.com)
Date: 2003-10-08 16:43:32


Hi,

The listing below causes these two errors:

test.c(3): Error: Preprocessor expression expected
test.c(16): Error: Incompatible types

The first is easily got around by #defining to zero.
Is the second error a limitation of CC65?

Thanks,

Mark

--
#define LITTLE_ENDIAN 1

#if BIG_ENDIAN
  typedef struct { unsigned long high; unsigned long low; } long64;
  typedef struct { unsigned long high; unsigned long low; } ulong64;
#else
# undef LITTLE_ENDIAN
# define LITTLE_ENDIAN 1
  typedef struct { unsigned long low; unsigned long high; } long64;
  typedef struct { unsigned long low; unsigned long high; } ulong64;
#endif

extern int f(long64 x);

int test(long64 a) {
    return f(a);
}



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************

----------------------------------------------------------------------
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 : 2003-10-08 16:51:14 CEST