alt-image-package-defs.scm 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey, Jonathan Rees, David Frese
  3. (define-structure write-image (export s48-write-image)
  4. (open prescheme)
  5. (begin
  6. (define s48-write-image
  7. (external "s48_write_image" (=> (integer integer output-port) integer)))))
  8. (define-structure read-image read-image-interface
  9. (open prescheme)
  10. (begin
  11. (define s48-write-image
  12. (external "s48_write_image" (=> (integer integer output-port) integer)))
  13. (define s48-read-image
  14. (external "s48_read_image" (=> (integer integer) integer)))
  15. (define s48-startup-procedure
  16. (external "s48_startup_procedure" (=> () integer)))
  17. (define s48-initial-symbols
  18. (external "s48_initial_symbols" (=> () integer)))
  19. (define s48-initial-imported-bindings
  20. (external "s48_initial_imported_bindings" (=> () integer)))
  21. (define s48-initial-exported-bindings
  22. (external "s48_initial_exported_bindings" (=> () integer)))
  23. (define s48-resumer-records
  24. (external "s48_resumer_records" (=> () integer)))
  25. (define s48-relocate-all
  26. (external "s48_relocate_all" (=> (integer address address integer integer integer) null)))
  27. (define s48-initialization-complete!
  28. (external "s48_initialization_completeB" (=> () null)))
  29. (define s48-initializing-gc-root
  30. (external "s48_initializing_gc_root" (=> () null)))
  31. ;; For debugging
  32. (define get-all-globals
  33. (external "get_all_globals" (=> () null)))
  34. ))