Improve pffi-pointer-null
This commit is contained in:
parent
bb09c58f9f
commit
2f5b3a03a8
|
|
@ -6,7 +6,7 @@
|
|||
'(import (chicken foreign)
|
||||
(chicken memory))
|
||||
#t))))
|
||||
(ypsilon
|
||||
#;(ypsilon
|
||||
(define-syntax pffi-init
|
||||
(lambda (x)
|
||||
(syntax-case x ()
|
||||
|
|
|
|||
|
|
@ -44,10 +44,9 @@
|
|||
(lambda (pointer)
|
||||
(c-free pointer)))
|
||||
|
||||
; FIXME I dont know where to else get null :D
|
||||
(define pffi-pointer-null
|
||||
(lambda ()
|
||||
(c-malloc 999999999999999999999999999999999999999999999999999999999999)))
|
||||
0))
|
||||
|
||||
(define pffi-pointer-null?
|
||||
(lambda (pointer)
|
||||
|
|
|
|||
Loading…
Reference in New Issue