Restructuring of code for different implementations

This commit is contained in:
2024-05-16 22:18:10 +03:00
parent 6138e053ee
commit 8b0057474e
20 changed files with 1736 additions and 1188 deletions
BIN
View File
Binary file not shown.
+24
View File
@@ -0,0 +1,24 @@
(import (scheme base)
(scheme write)
(scheme process-context)
(scheme eval)
(cyclone foreign)
(retropikzel pffi v0.1.0 main))
(define libc (pffi-shared-object-auto-load (list "stdio.h") "c" (list)))
(display libc)
(newline)
;(pffi-shared-object-load #t (display "this"))
(display "=================")
(newline)
;(pffi-define "hello")
;(c-define puts int "puts" string)
;(puts "I'm from C")
(newline)
(display "=================")
(newline)