Re: [cc65] ca65 bug

From: Groepaz <>
Date: 2006-08-13 23:18:52
On Sunday 13 August 2006 23:13, Ullrich von Bassewitz wrote:
> Yes, that is definitely a bug. What happens is this: The scanner has two
> sources of input. Either a stored list of tokens or a file. As long as
> there is a list of tokens, it will use this list and not look at any files.
> Macros are stored lists of tokens, so within this list, the .include
> directive is correctly parsed, the file opened and pushed onto the input
> file stack, but the scanner continues reading tokens from the macro. Once
> the macro token list is exhausted, the file is read. So what is actually
> messed up is the order of things, and this makes it look so confusing.

urgs, yes i thought it'd be something like that ...

> Unfortunately, it is not a small thing, since I will have to merge both
> input stacks (files and token lists) into one and this needs some
> redesigning.

i understand.... any idea for a workaround then? i dont like the idea of using 
some external preprocessor just for this :/


Wem bewusst ist, dass er im Atomzeitalter lebt, und sich dem 
Militaerdienstzwang trotzdem nicht widersetzt, gedankenlos in die Kasernen 
trottet, obwohl er den Kriegsdienst verweigern kann - den kann ich nicht 
einmal mehr bedauern. Er hat nur durch einen Irrtum sein Grosshirn bekommen, 
das Rueckenmark haette ihm vollkommen genuegt. 
<Albert Einstein>

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 13 23:19:03 2006

This archive was generated by hypermail 2.1.8 : 2006-08-13 23:19:06 CEST