]> gitweb.factorcode.org Git - factor.git/commitdiff
Slight cleanup in xml-rpc
authorDaniel Ehrenberg <littledan@Macintosh-103.local>
Tue, 10 Feb 2009 00:36:36 +0000 (18:36 -0600)
committerDaniel Ehrenberg <littledan@Macintosh-103.local>
Tue, 10 Feb 2009 00:36:36 +0000 (18:36 -0600)
basis/xml-rpc/xml-rpc.factor

index 9632cbb1acb9b9f8c771e530e4957ab5531163e5..690ebe94f8d6df6d40d40f9d310e355aa184c27a 100644 (file)
@@ -126,11 +126,11 @@ TAG: int xml>item children>number ;
 TAG: double xml>item children>number ;
 
 TAG: boolean xml>item
-    dup children>string {
-        { [ dup "1" = ] [ 2drop t ] }
-        { [ "0" = ] [ drop f ] }
+    children>string {
+        { "1" [ t ] }
+        { "0" [ f ] }
         [ "Bad boolean" server-error ]
-    } cond ;
+    } case ;
 
 : unstruct-member ( tag -- )
     children-tags first2