]> gitweb.factorcode.org Git - factor.git/commitdiff
get things working with recent cvs update. Some responders still don't
authorChris Double <chris.double@double.co.nz>
Wed, 29 Dec 2004 02:59:41 +0000 (02:59 +0000)
committerChris Double <chris.double@double.co.nz>
Wed, 29 Dec 2004 02:59:41 +0000 (02:59 +0000)
work due to typecheck errors.

12 files changed:
contrib/cont-responder/browser.factor
contrib/cont-responder/cont-examples.factor
contrib/cont-responder/cont-numbers-game.factor
contrib/cont-responder/cont-responder.factor
contrib/cont-responder/cont-testing.factor
contrib/cont-responder/cont-utils.factor
contrib/cont-responder/eval-responder.factor
contrib/cont-responder/live-updater-responder.factor
contrib/cont-responder/live-updater.factor
contrib/cont-responder/load.factor
contrib/cont-responder/todo-example.factor
contrib/cont-responder/todo.factor

index 05c304bedc37f2eb87f7829f93a6b4f8c8d9f2d6..c0525142b1511d924cce71f44478a63f124312c7 100644 (file)
@@ -28,9 +28,8 @@ IN: browser
 USE: html
 USE: cont-responder
 USE: cont-utils
-USE: stack
+USE: kernel
 USE: stdio
-USE: combinators
 USE: namespaces
 USE: words
 USE: lists
index 3d392c1f09b26bbc45f1c82c925b4ed356d71e77..dc30bf1f89f6fb9dae33d7b4b22615a39b6f67d4 100644 (file)
@@ -25,7 +25,7 @@
 IN: cont-examples
 USE: cont-responder
 USE: html
-USE: stack
+USE: kernel
 USE: stdio
 USE: html
 USE: lists
index e5e399378844e96536ad1107c70685aeccd073e3..598de12b8ad593338d2fabe372bfdb4fef626941 100644 (file)
@@ -40,7 +40,6 @@ USE: parser
 USE: html
 USE: cont-responder
 USE: cont-utils
-USE: stack
 USE: stdio
 USE: namespaces
 
index c7e71f77977510f2f556f04fbc88e327bb7f0e24..a8f01639281cdccf180bb112f185c0edf1765bc7 100644 (file)
@@ -28,16 +28,12 @@ USE: httpd
 USE: httpd-responder
 USE: math
 USE: random
-USE: continuations
 USE: namespaces
-USE: stack
-USE: combinators
 USE: streams
 USE: lists
 USE: strings
 USE: html
 USE: kernel
-USE: logic
 USE: html
 USE: logging
 USE: url-encoding
index a9b4f16b40bac3428c2629e9d9352dac1f870b79..38030774c4d89b2bc8afaeaf904264219e3a0e17 100644 (file)
@@ -86,7 +86,7 @@
 ! etc.
 IN: cont-responder
 USE: namespaces
-USE: stack
+USE: kernel
 USE: combinators
 USE: stdio
 
index 999e199759975c325acc4c4ae6d942b9c97a2d6f..bd42b38dce612abea95839c6f79e21c243ede267 100644 (file)
@@ -28,10 +28,9 @@ USE: html
 USE: cont-responder
 USE: lists
 USE: stdio
-USE: stack
+USE: kernel
 USE: namespaces
 USE: html
-USE: combinators
 
 : simple-page ( title quot -- )
   #! Call the quotation, with all output going to the
index afc6fb4610a1588d7be14fde4a93ce7a0fb920f8..41e9651aad5447861286ef2eb14af4ddd74dc0e2 100644 (file)
@@ -27,7 +27,7 @@ IN: eval-responder
 USE: html
 USE: cont-responder
 USE: cont-utils
-USE: stack
+USE: kernel
 USE: stdio
 USE: namespaces
 USE: streams
@@ -36,7 +36,6 @@ USE: lists
 USE: errors
 USE: strings
 USE: logic
-USE: combinators
 USE: live-updater
 USE: prettyprint
 USE: unparser
index 016b3a55278d5c3b02043b57fae4ec1e8cbc98c9..453a5e2a8fd3055bbe65ac6b2705614aaeffd9cb 100644 (file)
@@ -30,7 +30,6 @@ USE: namespaces
 USE: html
 USE: words
 USE: stdio
-USE: stack
 USE: kernel
 USE: cont-utils
 USE: cont-responder
index 98c642f930ce24e4ff8555b8e500c43052a96465..ec385995821a52c9e5539645dda7d1dc9d19e410 100644 (file)
@@ -24,7 +24,7 @@
 ! cont-responder code for display forms and anchors that use XMLHttpRequest
 ! and the 'liveUpdater.js' code.
 IN: live-updater
-USE: stack
+USE: kernel
 USE: streams
 USE: strings
 USE: html
@@ -32,7 +32,6 @@ USE: cont-responder
 USE: stdio
 USE: namespaces
 USE: lists
-USE: combinators
 
 : get-live-updater-js* ( stream -- string )
   #! Read all lines from the stream, creating a string of the result.
index fcb1503e8acc7fa0b723db1de1060def56025f07..967a089a0f9642eff07d951e6cefadb1d7ca0ae5 100644 (file)
 !
 ! Start an httpd server and some words to re-load the continuation
 ! server files.
+USE: kernel
 USE: httpd-responder
 USE: httpd
 USE: threads
-USE: stack
 USE: prettyprint
-USE: combinators
 USE: errors
 USE: stdio
 
index bb9af6300865de4086cb32e5ae49a553b80fa45f..1bdf64f44a699b2abc98503af8378fe402809662 100644 (file)
@@ -32,18 +32,15 @@ USE: html
 USE: cont-utils
 USE: html
 USE: stdio
-USE: stack
 USE: strings
 USE: namespaces
 USE: inspector
 USE: lists
-USE: combinators
 USE: cont-examples
 USE: regexp
 USE: prettyprint
 USE: todo
 USE: math
-USE: logic
 USE: kernel
  
 : todo-stylesheet ( -- string )
@@ -191,12 +188,19 @@ USE: kernel
 
 : valid-username-char ( ch -- b ) 
   #! Return true if the character is valid to appear in a username.
-  [ 
-    [ letter? ] [ drop t ] 
-    [ LETTER? ] [ drop t ] 
-    [ digit?  ] [ drop t ] 
-    [         ] [ drop f ] 
-  ] cond ;
+  dup letter? [
+    drop t
+  ] [
+    dup LETTER? [
+      drop t
+    ] [
+      digit? [
+        t
+      ] [
+        f
+      ] ifte
+    ] ifte
+  ] ifte ;
 
 : replace-invalid-username-chars ( str -- str ) 
   #! Return a string with invalid username characters mapped to underscores.
index 354793821c2e11473fab274a35d601d40ffa74ad..a773320a350f10d3d8c0a0f35b1f89e070583fee 100644 (file)
@@ -26,7 +26,6 @@
 ! complete. 
 IN: todo
 USE: parser
-USE: stack
 USE: strings
 USE: streams
 USE: namespaces
@@ -37,9 +36,7 @@ USE: kernel
 USE: prettyprint
 USE: unparser
 USE: url-encoding
-USE: combinators
 USE: files
-USE: logic
 USE: hashtables
 
 : <todo> ( user password -- <todo> )