Re: [cc65] .import struct link_node

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2010-05-02 20:42:17
Hello Uz,

* On Sat, May 01, 2010 at 06:14:35PM +0200 Ullrich von Bassewitz wrote:
> 
> On Sat, May 01, 2010 at 05:56:36PM +0200, Spiro Trikaliotis wrote:
> > >  - Instead of _CMT(str) macro consuming str, how about a _CMT()
> > >    mac that turns the just inserts a ';' or a '//' ?
> >
> > Because neither ca65 nor cc65 would allow this. (cc65 targets C90, thus,
> > no "//" comment; ca65 does not recognize it, either).
> >
> > Just test it out yourself!
> 
> He talks about either inserting a ';' (for ca65) or '//' (for cc65), and both
> works. Just test it out yourself:-)

I tested it before writing (with a _CMT() macro): It did NOT work! See
the attached files and:

me@here:~/test$ ca65 --version
ca65 V2.13.2 - (C) Copyright 1998-2005 Ullrich von Bassewitz
ca65: No input files
me@here:~/test$ ca65 test.a65
test.a65(3): Error: Unexpected trailing garbage characters
me@here:~/test$ cc65 --version
cc65 V2.13.2
SVN version: unknown
me@here:~/test$ cc65 test.c
test.c(3): Error: Identifier expected
test.c(3): Warning: Implicit `int' is an obsolete feature
test.c(5): Error: `;' expected
test.c(7): Warning: Control reaches end of non-void function

I am not speaking about adding ";//" at the beginning of the line - and
he is not, either.

 
> So without additional switches, // comments are definitely allowed.

I am sorry: Yes, I almost always forget that cc65 does not target c89
"only".

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun May 2 20:42:40 2010

This archive was generated by hypermail 2.1.8 : 2010-05-02 20:42:42 CEST