Fix typos in `psyntax'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 7 Nov 2009 18:19:16 +0000 (19:19 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 7 Nov 2009 18:19:16 +0000 (19:19 +0100)
* module/ice-9/psyntax.scm (lambda*-formals): Fix argument count in
  `rest' invocations.
  [pred]: Fix argument count in `syntax->datum' invocation.

module/ice-9/psyntax-pp.scm
module/ice-9/psyntax.scm

index 1dc6469..f2d3dfc 100644 (file)
                                                              #{a\ 483}#
                                                              #{b\ 484}#)
                                                       (eq? (syntax->datum
-                                                             #{a\ 483}#
-                                                             #:rest)))
+                                                             #{a\ 483}#)
+                                                           #:rest))
                                                     #{tmp\ 481}#)
                                              #f)
                                          (apply (lambda (#{x\ 485}#
                                                     #{b\ 487}#
                                                     #{req\ 475}#
                                                     #{opt\ 476}#
-                                                    #f
                                                     #{kw\ 477}#
-                                                    #{x\ 485}#))
+                                                    #f))
                                                 #{tmp\ 481}#)
                                          ((lambda (#{tmp\ 488}#)
                                             (if (if #{tmp\ 488}#
                                                          #{b\ 492}#
                                                          #{req\ 475}#
                                                          #{opt\ 476}#
-                                                         #f
                                                          #{kw\ 477}#
-                                                         #{x\ 491}#))
+                                                         #f))
                                                      #{tmp\ 488}#)
                                               ((lambda (#{else\ 493}#)
                                                  (syntax-violation
                                                                              #{opt\ 496}#
                                                                              (cons #t
                                                                                    (reverse
-                                                                                     #{rkey\ 497}#))))
+                                                                                     #{rkey\ 497}#))
+                                                                             #f))
                                                                          #{tmp\ 535}#)
                                                                   ((lambda (#{tmp\ 542}#)
                                                                      (if (if #{tmp\ 542}#
                                                                                   #{opt\ 496}#
                                                                                   (cons #t
                                                                                         (reverse
-                                                                                          #{rkey\ 497}#))))
+                                                                                          #{rkey\ 497}#))
+                                                                                  #f))
                                                                               #{tmp\ 542}#)
                                                                        ((lambda (#{tmp\ 547}#)
                                                                           (if (if #{tmp\ 547}#
index 6fcc9b0..b1c09f8 100644 (file)
          (pred #'b req opt (cons #t (reverse rkey))))
         ((aok a b) (and (eq? (syntax->datum #'aok) #:allow-other-keys)
                         (eq? (syntax->datum #'a) #:rest))
-         (rest #'b req opt (cons #t (reverse rkey))))
+         (rest #'b req opt (cons #t (reverse rkey)) #f))
         ((aok . r) (and (eq? (syntax->datum #'aok) #:allow-other-keys)
                         (id? #'r))
-         (rest #'r req opt (cons #t (reverse rkey))))
+         (rest #'r req opt (cons #t (reverse rkey)) #f))
         ((a . b) (eq? (syntax->datum #'a) #:predicate)
          (pred #'b req opt (cons #f (reverse rkey))))
         ((a b) (eq? (syntax->datum #'a) #:rest)
     (define (pred args req opt kw)
       (syntax-case args ()
         ((x) (check req opt #f kw #'x))
-        ((x a b) (eq? (syntax->datum #'a #:rest))
-         (rest #'b req opt #f kw #'x))
+        ((x a b) (eq? (syntax->datum #'a) #:rest)
+         (rest #'b req opt kw #f))
         ((x . b) (id? #'b)
-         (rest #'b req opt #f kw #'x))
+         (rest #'b req opt kw #f))
         (else
          (syntax-violation 'lambda* "invalid argument list following #:predicate"
                            orig-args args))))