Fixing some things I broke

db4
Slava Pestov 2009-02-25 23:30:30 -06:00
parent e8361b9980
commit 4426526252
8 changed files with 23 additions and 19 deletions

View File

@ -1,5 +1,5 @@
IN: checksums.openssl IN: checksums.openssl
USING: help.syntax help.markup ; USING: checksums help.syntax help.markup ;
HELP: openssl-checksum HELP: openssl-checksum
{ $class-description "The class of checksum algorithms implemented by OpenSSL. The exact set of algorithms supported depends on how the OpenSSL library was compiled; " { $snippet "md5" } " and " { $snippet "sha1" } " should be universally available." } ; { $class-description "The class of checksum algorithms implemented by OpenSSL. The exact set of algorithms supported depends on how the OpenSSL library was compiled; " { $snippet "md5" } " and " { $snippet "sha1" } " should be universally available." } ;
@ -9,9 +9,11 @@ HELP: <openssl-checksum>
{ $description "Creates a new OpenSSL checksum object." } ; { $description "Creates a new OpenSSL checksum object." } ;
HELP: openssl-md5 HELP: openssl-md5
{ $values { "value" checksum } }
{ $description "The OpenSSL MD5 message digest implementation." } ; { $description "The OpenSSL MD5 message digest implementation." } ;
HELP: openssl-sha1 HELP: openssl-sha1
{ $values { "value" checksum } }
{ $description "The OpenSSL SHA1 message digest implementation." } ; { $description "The OpenSSL SHA1 message digest implementation." } ;
HELP: unknown-digest HELP: unknown-digest

View File

@ -1,7 +1,7 @@
! Copyright (C) 2007, 2009 Slava Pestov, Daniel Ehrenberg. ! Copyright (C) 2007, 2009 Slava Pestov, Daniel Ehrenberg.
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: math kernel memoize tools.test parser generalizations USING: math kernel memoize tools.test parser generalizations
prettyprint io.streams.string sequences eval ; prettyprint io.streams.string sequences eval namespaces ;
IN: memoize.tests IN: memoize.tests
MEMO: fib ( m -- n ) MEMO: fib ( m -- n )

View File

@ -1,6 +1,6 @@
IN: tools.profiler.tests IN: tools.profiler.tests
USING: accessors tools.profiler tools.test kernel memory math USING: accessors tools.profiler tools.test kernel memory math
threads alien tools.profiler.private sequences compiler threads alien tools.profiler.private sequences compiler compiler.units
words ; words ;
[ t ] [ [ t ] [

View File

@ -1,4 +1,4 @@
USING: help.syntax help.markup ui.gadgets kernel arrays USING: help.syntax help.markup ui.gadgets kernel arrays math help sequences
quotations classes.tuple ui.gadgets.grids ; quotations classes.tuple ui.gadgets.grids ;
IN: ui.gadgets.frames IN: ui.gadgets.frames
@ -22,15 +22,15 @@ ARTICLE: "ui-frame-layout" "Frame layouts"
drop drop
{ $description "Symbolic constant for a common input to " { $link grid-add } "." } print-element ; { $description "Symbolic constant for a common input to " { $link grid-add } "." } print-element ;
HELP: @center $ui-frame-constant ; { @center @left @right @top @bottom @top-left @top-right @bottom-left @bottom-right }
HELP: @left $ui-frame-constant ; [
HELP: @right $ui-frame-constant ; [
HELP: @top $ui-frame-constant ; {
HELP: @bottom $ui-frame-constant ; { $values { "i" integer } { "j" integer } }
HELP: @top-left $ui-frame-constant ; { $ui-frame-constant }
HELP: @top-right $ui-frame-constant ; }
HELP: @bottom-left $ui-frame-constant ; ] dip set-word-help
HELP: @bottom-right $ui-frame-constant ; ] each
HELP: frame HELP: frame
{ $class-description "A frame is a gadget which lays out its children in a 3x3 grid. If the frame is enlarged past its preferred size, the center gadget fills up available room." { $class-description "A frame is a gadget which lays out its children in a 3x3 grid. If the frame is enlarged past its preferred size, the center gadget fills up available room."

View File

@ -5,7 +5,7 @@ ui.gestures ui.backend ui.clipboards ui.gadgets.worlds ui.render
ui.event-loop assocs kernel math namespaces opengl sequences ui.event-loop assocs kernel math namespaces opengl sequences
strings x11.xlib x11.events x11.xim x11.glx x11.clipboard strings x11.xlib x11.events x11.xim x11.glx x11.clipboard
x11.constants x11.windows io.encodings.string io.encodings.ascii x11.constants x11.windows io.encodings.string io.encodings.ascii
io.encodings.utf8 combinators command-line io.encodings.utf8 combinators combinators.short-circuit command-line
math.vectors classes.tuple opengl.gl threads math.geometry.rect math.vectors classes.tuple opengl.gl threads math.geometry.rect
environment ascii ; environment ascii ;
IN: ui.x11 IN: ui.x11
@ -73,9 +73,9 @@ CONSTANT: key-codes
: valid-input? ( string gesture -- ? ) : valid-input? ( string gesture -- ? )
over empty? [ 2drop f ] [ over empty? [ 2drop f ] [
mods>> { f { S+ } } member? [ mods>> { f { S+ } } member? [
[ [ 127 = not ] [ CHAR: \s >= ] bi and ] all? [ { [ 127 = not ] [ CHAR: \s >= ] } 1&& ] all?
] [ ] [
[ [ 127 = not ] [ CHAR: \s >= ] [ alpha? not ] tri and and ] all? [ { [ 127 = not ] [ CHAR: \s >= ] [ alpha? not ] } 1&& ] all?
] if ] if
] if ; ] if ;

View File

@ -1,6 +1,6 @@
! Copyright (C) 2005, 2009 Daniel Ehrenberg ! Copyright (C) 2005, 2009 Daniel Ehrenberg
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: help.markup help.syntax ; USING: help.markup help.syntax assocs ;
IN: xml.entities IN: xml.entities
ABOUT: "xml.entities" ABOUT: "xml.entities"
@ -12,6 +12,7 @@ ARTICLE: "xml.entities" "XML entities"
"For entities used in HTML/XHTML, see " { $vocab-link "xml.entities.html" } ; "For entities used in HTML/XHTML, see " { $vocab-link "xml.entities.html" } ;
HELP: entities HELP: entities
{ $values { "value" assoc } }
{ $description "A hash table from default XML entity names (like " { $snippet "&amp;" } " and " { $snippet "&lt;" } ") to the characters they represent. This is automatically included when parsing any XML document." } { $description "A hash table from default XML entity names (like " { $snippet "&amp;" } " and " { $snippet "&lt;" } ") to the characters they represent. This is automatically included when parsing any XML document." }
{ $see-also with-entities } ; { $see-also with-entities } ;

View File

@ -57,6 +57,7 @@ HELP: clear
{ $description "Clears the data stack." } ; { $description "Clears the data stack." } ;
HELP: build HELP: build
{ $values { "n" integer } }
{ $description "The current build number. Factor increments this number whenever a new boot image is created." } ; { $description "The current build number. Factor increments this number whenever a new boot image is created." } ;
HELP: hashcode* HELP: hashcode*

View File

@ -235,11 +235,11 @@ M: dinput-game-input-backend instance-id
succeeded-quot call succeeded-quot call
] failed-quot if ; inline ] failed-quot if ; inline
: pov-values CONSTANT: pov-values
{ {
pov-up pov-up-right pov-right pov-down-right pov-up pov-up-right pov-right pov-down-right
pov-down pov-down-left pov-left pov-up-left pov-down pov-down-left pov-left pov-up-left
} ; inline }
: >axis ( long -- float ) : >axis ( long -- float )
32767 - 32767.0 /f ; 32767 - 32767.0 /f ;