s48-package-defs.scm 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ; Copyright (c) 1993-2007 by Richard Kelsey and Jonathan Rees. See file COPYING.
  2. (define-structures ((vm-utilities vm-utilities-interface))
  3. (open prescheme)
  4. (files (util vm-utilities))
  5. (begin
  6. ; (define-syntax assert
  7. ; (lambda (exp rename compare)
  8. ; 0))
  9. (define (assert x)
  10. (if (not x)
  11. (error "assertion failed")))
  12. ))
  13. (define-structures ((external external-interface))
  14. (open scheme bitwise ps-memory
  15. bignum-low ; for s48-allocate-bignum
  16. (subset stob (b-vector-set! b-vector-ref b-vector-length))
  17. (subset memory (address->stob-descriptor address-after-header))
  18. (subset data (least-fixnum-value greatest-fixnum-value)))
  19. (for-syntax (open scheme signals)) ; for error
  20. (files (util external)))
  21. (define-structures ((channel-io channel-interface)
  22. (events event-interface))
  23. (open scheme big-scheme ps-memory ports
  24. (subset i/o (current-error-port))
  25. (modify prescheme (prefix prescheme:)
  26. (expose open-input-file open-output-file
  27. close-input-port close-output-port
  28. errors)))
  29. (files (util s48-channel)))
  30. ; The number of usable bits in a small integer.
  31. (define-structures ((system-spec (export useful-bits-per-word)))
  32. (open prescheme)
  33. (begin
  34. (define useful-bits-per-word 30) ; in Scheme 48
  35. ))