[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] #\Page and easy-ffi
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] #\Page and easy-ffi |
Date: |
Tue, 1 Feb 2005 07:34:12 -0800 |
On 01 Feb 2005 09:17:41 +0100, Nicolas Pelletier <address@hidden> wrote:
> Hello,
>
> with the following setup:
>
> toto.h:
> #ifndef A_H
> #define A_H
>
> #define B 1
>
> #endif
>
> tutu.scm:
> #>!
> #include "toto.h"
> <#
>
> and a command line: chicken tutu.scm, I get the following message:
>
> compiling `tutu.scm' ...
> Error: FFI lexer error: illegal character: #\page
>
Apparently, there's a #\page (ascii 12) somewhere in toto.h.
Here's a patch for easyffi.l:
cd /home/felix/chicken/
diff -c /home/felix/chicken/easyffi.l\~ /home/felix/chicken/easyffi.l
*** /home/felix/chicken/easyffi.l~ 2005-01-30 21:24:12.000000000 -0800
--- /home/felix/chicken/easyffi.l 2005-02-02 15:59:50.000000000 -0800
***************
*** 47,52 ****
--- 47,53 ----
{space}+ (yycontinue)
\9+ (yycontinue)
\13+ (yycontinue)
+ \12+ (yycontinue)
"//" (let loop ()
(let ([c (yygetc)])
(if (or (eq? 'eof c) (char=? #\newline
c))
cheers,
felix