Fix alien =

release
slava 2006-03-17 08:21:09 +00:00
parent 33f66d102c
commit 24ee317d95
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,3 @@
- xref leaks gensyms
- return type stack effects show "void"
- httpd fep

View File

@ -23,7 +23,15 @@ sequences ;
UNION: c-ptr byte-array alien ;
M: alien = ( obj obj -- ? )
over alien? [ [ alien-address ] 2apply = ] [ 2drop f ] if ;
over alien? [
2dup [ expired? ] 2apply 2dup or [
2swap 2drop
] [
2drop [ alien-address ] 2apply
] if =
] [
2drop f
] if ;
global [ "libraries" nest drop ] bind

View File

@ -90,3 +90,7 @@ FORGET: foe
word word-name "last-word-test" set
[ "test-last" ] [ "last-word-test" get ] unit-test
! xref should not retain references to gensyms
gensym dup [ * ] define-compound
[ t ] [ \ * usage [ interned? not ] subset empty? ] unit-test