Welcome to the CHICKEN Scheme pasting service

list-chicken-import-libs pasted by mario-goulart on Thu Mar 5 20:53:05 2020

(module list-chicken-import-libs ()

(import scheme)
(import
 (chicken file)
 (chicken foreign)
 (chicken pathname)
 (chicken pretty-print)
 (chicken string))

(pp
 (cons
  "srfi-4"
  (map (lambda (unit)
         (string-chomp (pathname-strip-directory unit)
                       ".import.so"))
       (glob (make-pathname (list (foreign-value "C_INSTALL_PREFIX" c-string)
                                  "lib"
                                  "chicken"
                                  "11")
                            "chicken*.import.so")))))
) ;; end module

list-chicken-import-libs with C_INSTALL_EGG_HOME added by mario-goulart on Thu Mar 5 21:17:53 2020

(module list-chicken-import-libs ()

(import scheme)
(import
 (chicken file)
 (chicken foreign)
 (chicken pathname)
 (chicken pretty-print)
 (chicken string))

(pp
 (cons
  "srfi-4"
  (map (lambda (unit)
         (string-chomp (pathname-strip-directory unit)
                       ".import.so"))
       (glob (make-pathname (foreign-value "C_INSTALL_EGG_HOME" c-string)
                            "chicken*.import.so")))))
) ;; end module

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which relatively recent Scheme report version does CHICKEN _not_ implement?
Visually impaired? Let me spell it for you (wav file) download WAV