s48-package-defs.scm 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Richard Kelsey, Jonathan Rees, Marcus Crestani, Mike Sperber,
  3. ; Martin Gasbichler
  4. (define-structure vm-utilities vm-utilities-interface
  5. (open scheme
  6. (subset prescheme
  7. (char->ascii
  8. error
  9. enum errors
  10. shift-left bitwise-and arithmetic-shift-right logical-shift-right
  11. write-string write-integer current-error-port)))
  12. (files (util vm-utilities))
  13. (begin
  14. ; (define-syntax assert
  15. ; (lambda (exp rename compare)
  16. ; 0))
  17. (define (assert x)
  18. (if (not x)
  19. (error "assertion failed")))
  20. ))
  21. (define-structure external external-interface
  22. (open scheme bitwise ps-memory)
  23. (for-syntax (open scheme)) ; for error
  24. (files (util external)))
  25. (define-structures ((channel-io channel-interface)
  26. (events event-interface))
  27. (open scheme big-scheme ps-memory ports
  28. (subset i/o (current-error-port))
  29. (modify prescheme (prefix prescheme:)
  30. (expose open-input-file open-output-file
  31. close-input-port close-output-port
  32. errors)))
  33. (files (util s48-channel)))