Re: Possible macroexpansion bug

Frode Vatvedt Fjeld <[email protected]> Tue, 27 Apr 2004 21:29:42 +0200
Newsgroups gmane.lisp.movitz.devel
Message-ID <[email protected]>
Peter Minten <[email protected]> writes:

> I've put up a new version of the harddisk code
> (http://www.il.fontys.nl/~silvernerd/harddisk.lisp), featuring a
> complete code rewrite (as usual :-). The problem is, it doesn't
> compile due to some weird macroexpansion that somehow turns the
> io-port code in define-register-accessors (invoked with clauses of
> (name offset type)) into (io-port (+ ... type)). I checked with
> CMUCL macroexpand-1 and it doesn't expand that way there.

Yes, it's most likely a problem with my very messy and
in-need-of-reimplementing backquote implementation.

However, I'd suggest using an approach like the one I've adopted in
x86-pc/dp8390.lisp for such register accessors. However, this needs
some fixing because it assumes 8-bit registers exclusively right
now. I'll look into it shortly.

-- 
Frode Vatvedt Fjeld