Re: Re : [Chicken-users] csc -extend with user-preprocessor-pass

2007-02-12 Thread felix winkelmann

On 2/12/07, minh thu <[EMAIL PROTECTED]> wrote:

>
> No, that's a silly silly bug. Here's a patch:
>

Well, silly silly question:
What is the patch for ? Is it intended for those who use the latest
tarball? I guess the one who use the svn (or darcs ?) version can just
update ?


The diff is taken from the current darcs/svn version, but should also
fit the tarball.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re : [Chicken-users] csc -extend with user-preprocessor-pass

2007-02-12 Thread minh thu

2007/2/12, felix winkelmann <[EMAIL PROTECTED]>:

On 2/11/07, minh thu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying the -extend  option of csc with the following :
>
> (user-preprocessor-pass
>   (lambda form
> (display (car form))
> (newline)
> '(display "..."))
>
> When compiling, the first top level form (of the being compiled file)
> is not displayed.
> Is it normal ?
>

No, that's a silly silly bug. Here's a patch:

--- old-chicken/batch-driver.scm2007-02-12 08:03:19.223978592 +0100
+++ new-chicken/batch-driver.scm2007-02-12 08:03:19.326962936 +0100
@@ -402,7 +402,7 @@
   (let ([proc (user-preprocessor-pass)])
 (when proc
   (when verbose (printf "User preprocessing pass...~%~!"))
-  (set! forms (cons (first forms) (map proc (cdr forms ) )
+  (set! forms (map proc forms

   (print "source" '|1| forms)
   (begin-time)


Sorry.


Well, silly silly question:
What is the patch for ? Is it intended for those who use the latest
tarball? I guess the one who use the svn (or darcs ?) version can just
update ?

Thanks
thu


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] csc -extend with user-preprocessor-pass

2007-02-11 Thread felix winkelmann

On 2/11/07, minh thu <[EMAIL PROTECTED]> wrote:

Hi,

I'm trying the -extend  option of csc with the following :

(user-preprocessor-pass
  (lambda form
(display (car form))
(newline)
'(display "..."))

When compiling, the first top level form (of the being compiled file)
is not displayed.
Is it normal ?



No, that's a silly silly bug. Here's a patch:

--- old-chicken/batch-driver.scm2007-02-12 08:03:19.223978592 +0100
+++ new-chicken/batch-driver.scm2007-02-12 08:03:19.326962936 +0100
@@ -402,7 +402,7 @@
   (let ([proc (user-preprocessor-pass)])
 (when proc
   (when verbose (printf "User preprocessing pass...~%~!"))
-  (set! forms (cons (first forms) (map proc (cdr forms ) )
+  (set! forms (map proc forms

   (print "source" '|1| forms)
   (begin-time)


Sorry.


cheers,
felix


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] csc -extend with user-preprocessor-pass

2007-02-10 Thread minh thu

Hi,

I'm trying the -extend  option of csc with the following :

(user-preprocessor-pass
 (lambda form
   (display (car form))
   (newline)
   '(display "..."))

When compiling, the first top level form (of the being compiled file)
is not displayed.
Is it normal ?

Thanks,
thu


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users