ffi callbacks sorta kinda work now.

This commit is contained in:
Abdulaziz Ghuloum
2008-09-21 04:08:54 -04:00
parent 06fd988a17
commit e07d8f9760
11 changed files with 224 additions and 46 deletions
+3 -1
View File
@@ -160,7 +160,9 @@
(unless (= (vector-length argsvec)
(vector-length argtypes-n))
(error 'ffi "args mismatch" argtypes args))
(foreign-call "ikrt_ffi_call" data argsvec))))))
(call/cc
(lambda (k)
(foreign-call "ikrt_ffi_call" data argsvec))))))))
(define (make-callback rtype argtypes)
(let-values ([(cif argtypes-n rtype-n)
+1 -1
View File
@@ -1 +1 @@
1600
1601
+2 -1
View File
@@ -2354,7 +2354,8 @@
[(P)
(prm '= (prm 'int+
(prm 'mref pcr (K pcb-frame-base))
(K (- wordsize))) fpr)])
(K (- wordsize)))
fpr)])
(define-primop $current-frame unsafe
[(V) (prm 'mref pcr (K pcb-next-continuation))])