(import coops) (import bind foreign) (bind* #<x = x; s->y = y; return s; } EOF ) (define s (make_struct 3 4)) (set! (My_struct-y s) 99) (assert (equal? (list 3 99.0) (list (My_struct-x s) (My_struct-y s)))) ;;================================================================================ ;; Test number pattern (bind #< #endif double modf(double x, ___out double *iptr); EOF ) (let-values ([(frac int) (modf 33.44)]) (print (list frac int))) ;;; ___length (require-extension srfi-4) (bind* #<ustr str) (let* ([len (string-length str)] [us (make-u32vector (add1 len) 0)] ) (mbstowcs us str len) us) ) (bind-type unicode nonnull-u32vector str->ustr) (bind* #<