From: Chris Hanson Date: Sun, 21 Sep 2008 23:49:46 +0000 (+0000) Subject: Fix some more thinkos. X-Git-Tag: 20090517-FFI~129 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=5b676bc3b51f2940e6c57d428acff8994605b447;p=mit-scheme.git Fix some more thinkos. --- diff --git a/v7/src/runtime/http-syntax.scm b/v7/src/runtime/http-syntax.scm index 35a37f1a6..7ba142b54 100644 --- a/v7/src/runtime/http-syntax.scm +++ b/v7/src/runtime/http-syntax.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: http-syntax.scm,v 1.5 2008/09/21 23:20:00 cph Exp $ +$Id: http-syntax.scm,v 1.6 2008/09/21 23:49:46 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -989,7 +989,7 @@ USA. (seq lp:token lp:parameter*))))) (lambda (value) - (list-of-type? value + (list+-of-type? value (lambda (elt) (pair-of-type? elt http-token? @@ -1022,16 +1022,18 @@ USA. lp:comment (? lp:lws))))))))) (lambda (value) - (pair-of-type? value - (lambda (received-protocol) - (pair-of-type? received-protocol - (lambda (name) - (or (not name) - (http-token? name))) - http-token?)) - (lambda (received-by) - (or (hostport? received-by) - (http-token? received-by))))) + (list+-of-type? value + (lambda (elt) + (pair-of-type? elt + (lambda (received-protocol) + (pair-of-type? received-protocol + (lambda (name) + (or (not name) + (http-token? name))) + http-token?)) + (lambda (received-by) + (or (hostport? received-by) + (http-token? received-by))))))) (lambda (value port) (write-comma-list (lambda (elt port) (let ((received-protocol (car elt))) @@ -1068,17 +1070,19 @@ USA. lp:quoted-string)) (values #f))))))) (lambda (value) - (vector-of-types? value - (lambda (n) - (and (exact-nonnegative-integer? n) - (< n 1000))) - (lambda (h) - (or (hostport? h) - (http-token? h))) - http-text? - (lambda (dt) - (or (not dt) - (decoded-time? dt))))) + (list+-of-type? value + (lambda (elt) + (vector-of-types? elt + (lambda (n) + (and (exact-nonnegative-integer? n) + (< n 1000))) + (lambda (h) + (or (hostport? h) + (http-token? h))) + http-text? + (lambda (dt) + (or (not dt) + (decoded-time? dt))))))) (lambda (value port) (write-comma-list (lambda (elt port) @@ -1345,9 +1349,11 @@ USA. (seq lp:token lp:accept-params))))) (lambda (value) - (pair-of-type? value - http-token? - accept-params?)) + (list-of-type? value + (lambda (elt) + (pair-of-type? elt + http-token? + accept-params?)))) (lambda (value port) (write-comma-list (lambda (elt port) (write-http-token (car elt) port) @@ -1644,4 +1650,5 @@ USA. ;;; Edwin Variables: ;;; lisp-indent/lp:comma-list: 1 +;;; lisp-indent/list+-of-type?: 1 ;;; End: