chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] more problems with macro expansion in a compiled bin


From: Shawn Rutledge
Subject: Re: [Chicken-users] more problems with macro expansion in a compiled binary
Date: Mon, 27 Mar 2006 22:57:40 -0700

On 3/27/06, felix winkelmann <address@hidden> wrote:
> Hm, very strange. It seems to work fine here:
>
> ; spifffyd.scm:
>
> (declare (run-time-macros))
> (include "chicken-more-macros")
> (use spiffy)
> (set! spiffy-root-path ".")
> (start-server)
>
> foo.wiki:
>
> ==Header==
>
>
> % csi -R http-client
> ; loading library posix ...
> ; loading library srfi-1 ...
> ; loading /usr/local/lib/chicken/http-client.so ...
> ; loading /usr/local/lib/chicken/http-utils.so ...
> #;1> (http:GET "localhost:8080/index.ssp?page=foo")
> "<a name='Header'></a><h1>Header</h1>\n"
> #;2>

I think you meant for index.ssp to be something like this:

<?scheme
(require-extension stream-wiki)
(define inp (open-input-file "foo.wiki"))
(display (stream->string (wiki->html (port->stream inp))))
?>

Anyway yes, this example works, even when I run a compiled spiffyd. 
So I wonder what I'm missing.  I guess I will try to build it up from
the example to the other configuration and see where it breaks. 
Probably something silly.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]