Fix alien =
parent
33f66d102c
commit
24ee317d95
|
@ -1,4 +1,3 @@
|
|||
- xref leaks gensyms
|
||||
- return type stack effects show "void"
|
||||
- httpd fep
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue