Add more tests
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
(retropikzel pffi v0-2-1 main))
|
||||
|
||||
(define libcurl (pffi-shared-object-auto-load (list "curl/curl.h")
|
||||
(list)
|
||||
"curl"
|
||||
(list ".4")
|
||||
(list)))
|
||||
(list ".4")))
|
||||
|
||||
(pffi-define curl-version libcurl 'curl_version 'string (list))
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
(import (scheme base)
|
||||
(scheme write)
|
||||
(scheme process-context)
|
||||
(scheme eval)
|
||||
(retropikzel pffi v0-2-1 main))
|
||||
|
||||
(define libc (pffi-shared-object-auto-load (list "curl/curl.h")
|
||||
(list)
|
||||
"c"
|
||||
(list ".6")))
|
||||
|
||||
(pffi-define puts libc 'puts 'int (list 'pointer))
|
||||
|
||||
(display "=================")
|
||||
(newline)
|
||||
|
||||
(puts (pffi-string->pointer "This is from C"))
|
||||
|
||||
(newline)
|
||||
(display "=================")
|
||||
(newline)
|
||||
Reference in New Issue
Block a user