cs: switch to __collect_safe
Sync with current ChezScheme (plus PRs), which involves changing `__thread` FFI directives to `__collect_safe`.
This commit is contained in:
parent
bfa08e40b1
commit
d67cec6892
|
@ -12,7 +12,7 @@
|
|||
|
||||
(define collection 'multi)
|
||||
|
||||
(define version "7.0.0.6")
|
||||
(define version "7.0.0.7")
|
||||
|
||||
(define deps `("racket-lib"
|
||||
["racket" #:version ,version]))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
(check-defined 'current-generate-id)
|
||||
(check-defined 'load-compiled-from-port)
|
||||
(check-defined 'collect-rendezvous)
|
||||
(check-defined '(define-ftype T (function __thread () void)))
|
||||
(check-defined '(define-ftype T (function __collect_safe () void)))
|
||||
|
||||
;; ----------------------------------------
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
(with-syntax ([ret-type (convert-type #'orig-ret-type)]
|
||||
[(arg-type ...) (map convert-type #'(orig-arg-type ...))]
|
||||
[(conv ...) (if (#%memq 'blocking (map syntax->datum #'(flag ...)))
|
||||
#'(__thread)
|
||||
#'(__collect_safe)
|
||||
#'())])
|
||||
#'(let ([proc (foreign-procedure conv ... (rktio-lookup 'name)
|
||||
(arg-type ...)
|
||||
|
|
|
@ -1380,7 +1380,7 @@
|
|||
(lambda (to-wrap)
|
||||
(,(if call? 'foreign-procedure 'foreign-callable)
|
||||
,conv
|
||||
,@(if (or blocking? async-apply) '(__thread) '())
|
||||
,@(if (or blocking? async-apply) '(__collect_safe) '())
|
||||
to-wrap
|
||||
,(map (lambda (in-type id)
|
||||
(if id
|
||||
|
|
|
@ -13,12 +13,12 @@
|
|||
consistently.)
|
||||
*/
|
||||
|
||||
#define MZSCHEME_VERSION "7.0.0.6"
|
||||
#define MZSCHEME_VERSION "7.0.0.7"
|
||||
|
||||
#define MZSCHEME_VERSION_X 7
|
||||
#define MZSCHEME_VERSION_Y 0
|
||||
#define MZSCHEME_VERSION_Z 0
|
||||
#define MZSCHEME_VERSION_W 6
|
||||
#define MZSCHEME_VERSION_W 7
|
||||
|
||||
#define MZSCHEME_VERSION_MAJOR ((MZSCHEME_VERSION_X * 100) + MZSCHEME_VERSION_Y)
|
||||
#define MZSCHEME_VERSION_MINOR ((MZSCHEME_VERSION_Z * 1000) + MZSCHEME_VERSION_W)
|
||||
|
|
Loading…
Reference in New Issue
Block a user