db4
Slava Pestov 2008-03-11 16:03:22 -05:00
parent 2797d1947b
commit 28970d9469
5 changed files with 7 additions and 6 deletions

View File

@ -6,7 +6,7 @@ IN: db.postgresql.ffi
<< "postgresql" { << "postgresql" {
{ [ win32? ] [ "libpq.dll" ] } { [ win32? ] [ "libpq.dll" ] }
{ [ macosx? ] [ "/opt/local/lib/postgresql81/libpq.dylib" ] } { [ macosx? ] [ "/opt/local/lib/postgresql82/libpq.dylib" ] }
{ [ unix? ] [ "libpq.so" ] } { [ unix? ] [ "libpq.so" ] }
} cond "cdecl" add-library >> } cond "cdecl" add-library >>

View File

@ -1,6 +1,7 @@
! Copyright (c) 2008 Slava Pestov ! Copyright (c) 2008 Slava Pestov
! See http://factorcode.org/license.txt for BSD license. ! See http://factorcode.org/license.txt for BSD license.
USING: http.server.sessions accessors ; USING: http.server.sessions accessors
http.server.auth.providers ;
IN: http.server.auth IN: http.server.auth
SYMBOL: logged-in-user SYMBOL: logged-in-user

View File

@ -17,7 +17,7 @@ GENERIC: new-user ( user provider -- user/f )
: check-login ( password username provider -- user/f ) : check-login ( password username provider -- user/f )
get-user dup [ [ password>> = ] keep and ] [ 2drop f ] if ; get-user dup [ [ password>> = ] keep and ] [ 2drop f ] if ;
:: set-password ( password username provider -- ) :: set-password ( password username provider -- ? )
[let | user [ username provider get-user ] | [let | user [ username provider get-user ] |
user [ user [
user user

View File

@ -9,7 +9,7 @@ splitting kernel hashtables continuations ;
[ [
exit-continuation set exit-continuation set
"xxx" "xxx"
<action> [ [ "hello" print 123 ] show-final ] >>get <action> [ [ "hello" print 123 ] show-final ] >>display
<callback-responder> <callback-responder>
call-responder call-responder
] callcc1 ] callcc1
@ -24,7 +24,7 @@ splitting kernel hashtables continuations ;
] show-page ] show-page
"byebye" print "byebye" print
[ 123 ] show-final [ 123 ] show-final
] >>get ] >>display
<callback-responder> "r" set <callback-responder> "r" set
[ 123 ] [ [ 123 ] [

View File

@ -3,9 +3,9 @@ compiler.units ;
IN: xmode.tokens IN: xmode.tokens
! Based on org.gjt.sp.jedit.syntax.Token ! Based on org.gjt.sp.jedit.syntax.Token
<<
SYMBOL: tokens SYMBOL: tokens
<<
{ "COMMENT1" "COMMENT2" "COMMENT3" "COMMENT4" "DIGIT" "FUNCTION" "INVALID" "KEYWORD1" "KEYWORD2" "KEYWORD3" "KEYWORD4" "LABEL" "LITERAL1" "LITERAL2" "LITERAL3" "LITERAL4" "MARKUP" "OPERATOR" "END" "NULL" } [ { "COMMENT1" "COMMENT2" "COMMENT3" "COMMENT4" "DIGIT" "FUNCTION" "INVALID" "KEYWORD1" "KEYWORD2" "KEYWORD3" "KEYWORD4" "LABEL" "LITERAL1" "LITERAL2" "LITERAL3" "LITERAL4" "MARKUP" "OPERATOR" "END" "NULL" } [
create-in dup define-symbol create-in dup define-symbol
dup word-name swap dup word-name swap