mplisp

miniPicoLisp with FFI and modules for Buddy BDD library, OpenGL, Gtk and GMP
git clone https://logand.com/git/mplisp.git/
Log | Files | Refs

dl.ffi (228B)


      1 # -*- picolisp -*-
      2 
      3 (load "@src/mod/ffi.l")
      4 
      5 (module dl)
      6 
      7 (include "dlfcn.h")
      8 
      9 (cfun void* dlopen (cstr filename) (int flag))
     10 (cfun cstr dlerror)
     11 (cfun void* dlsym (void* handle) (cstr symbol))
     12 (cfun int dlclose (void* handle))