get things working with recent cvs update. Some responders still don't

work due to typecheck errors.
cvs
Chris Double 2004-12-29 02:59:41 +00:00
parent b97f362201
commit f3a37722e6
12 changed files with 20 additions and 30 deletions

View File

@ -28,9 +28,8 @@ IN: browser
USE: html USE: html
USE: cont-responder USE: cont-responder
USE: cont-utils USE: cont-utils
USE: stack USE: kernel
USE: stdio USE: stdio
USE: combinators
USE: namespaces USE: namespaces
USE: words USE: words
USE: lists USE: lists

View File

@ -25,7 +25,7 @@
IN: cont-examples IN: cont-examples
USE: cont-responder USE: cont-responder
USE: html USE: html
USE: stack USE: kernel
USE: stdio USE: stdio
USE: html USE: html
USE: lists USE: lists

View File

@ -40,7 +40,6 @@ USE: parser
USE: html USE: html
USE: cont-responder USE: cont-responder
USE: cont-utils USE: cont-utils
USE: stack
USE: stdio USE: stdio
USE: namespaces USE: namespaces

View File

@ -28,16 +28,12 @@ USE: httpd
USE: httpd-responder USE: httpd-responder
USE: math USE: math
USE: random USE: random
USE: continuations
USE: namespaces USE: namespaces
USE: stack
USE: combinators
USE: streams USE: streams
USE: lists USE: lists
USE: strings USE: strings
USE: html USE: html
USE: kernel USE: kernel
USE: logic
USE: html USE: html
USE: logging USE: logging
USE: url-encoding USE: url-encoding

View File

@ -86,7 +86,7 @@
! etc. ! etc.
IN: cont-responder IN: cont-responder
USE: namespaces USE: namespaces
USE: stack USE: kernel
USE: combinators USE: combinators
USE: stdio USE: stdio

View File

@ -28,10 +28,9 @@ USE: html
USE: cont-responder USE: cont-responder
USE: lists USE: lists
USE: stdio USE: stdio
USE: stack USE: kernel
USE: namespaces USE: namespaces
USE: html USE: html
USE: combinators
: simple-page ( title quot -- ) : simple-page ( title quot -- )
#! Call the quotation, with all output going to the #! Call the quotation, with all output going to the

View File

@ -27,7 +27,7 @@ IN: eval-responder
USE: html USE: html
USE: cont-responder USE: cont-responder
USE: cont-utils USE: cont-utils
USE: stack USE: kernel
USE: stdio USE: stdio
USE: namespaces USE: namespaces
USE: streams USE: streams
@ -36,7 +36,6 @@ USE: lists
USE: errors USE: errors
USE: strings USE: strings
USE: logic USE: logic
USE: combinators
USE: live-updater USE: live-updater
USE: prettyprint USE: prettyprint
USE: unparser USE: unparser

View File

@ -30,7 +30,6 @@ USE: namespaces
USE: html USE: html
USE: words USE: words
USE: stdio USE: stdio
USE: stack
USE: kernel USE: kernel
USE: cont-utils USE: cont-utils
USE: cont-responder USE: cont-responder

View File

@ -24,7 +24,7 @@
! cont-responder code for display forms and anchors that use XMLHttpRequest ! cont-responder code for display forms and anchors that use XMLHttpRequest
! and the 'liveUpdater.js' code. ! and the 'liveUpdater.js' code.
IN: live-updater IN: live-updater
USE: stack USE: kernel
USE: streams USE: streams
USE: strings USE: strings
USE: html USE: html
@ -32,7 +32,6 @@ USE: cont-responder
USE: stdio USE: stdio
USE: namespaces USE: namespaces
USE: lists USE: lists
USE: combinators
: get-live-updater-js* ( stream -- string ) : get-live-updater-js* ( stream -- string )
#! Read all lines from the stream, creating a string of the result. #! Read all lines from the stream, creating a string of the result.

View File

@ -23,12 +23,11 @@
! !
! Start an httpd server and some words to re-load the continuation ! Start an httpd server and some words to re-load the continuation
! server files. ! server files.
USE: kernel
USE: httpd-responder USE: httpd-responder
USE: httpd USE: httpd
USE: threads USE: threads
USE: stack
USE: prettyprint USE: prettyprint
USE: combinators
USE: errors USE: errors
USE: stdio USE: stdio

View File

@ -32,18 +32,15 @@ USE: html
USE: cont-utils USE: cont-utils
USE: html USE: html
USE: stdio USE: stdio
USE: stack
USE: strings USE: strings
USE: namespaces USE: namespaces
USE: inspector USE: inspector
USE: lists USE: lists
USE: combinators
USE: cont-examples USE: cont-examples
USE: regexp USE: regexp
USE: prettyprint USE: prettyprint
USE: todo USE: todo
USE: math USE: math
USE: logic
USE: kernel USE: kernel
: todo-stylesheet ( -- string ) : todo-stylesheet ( -- string )
@ -191,12 +188,19 @@ USE: kernel
: valid-username-char ( ch -- b ) : valid-username-char ( ch -- b )
#! Return true if the character is valid to appear in a username. #! Return true if the character is valid to appear in a username.
[ dup letter? [
[ letter? ] [ drop t ] drop t
[ LETTER? ] [ drop t ] ] [
[ digit? ] [ drop t ] dup LETTER? [
[ ] [ drop f ] drop t
] cond ; ] [
digit? [
t
] [
f
] ifte
] ifte
] ifte ;
: replace-invalid-username-chars ( str -- str ) : replace-invalid-username-chars ( str -- str )
#! Return a string with invalid username characters mapped to underscores. #! Return a string with invalid username characters mapped to underscores.

View File

@ -26,7 +26,6 @@
! complete. ! complete.
IN: todo IN: todo
USE: parser USE: parser
USE: stack
USE: strings USE: strings
USE: streams USE: streams
USE: namespaces USE: namespaces
@ -37,9 +36,7 @@ USE: kernel
USE: prettyprint USE: prettyprint
USE: unparser USE: unparser
USE: url-encoding USE: url-encoding
USE: combinators
USE: files USE: files
USE: logic
USE: hashtables USE: hashtables
: <todo> ( user password -- <todo> ) : <todo> ( user password -- <todo> )