dummy-interface.scm 943 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ; Copyright (c) 1993-2007 by Richard Kelsey and Jonathan Rees. See file COPYING.
  2. ; Interfaces are ignored. Only dependencies are significant.
  3. (define (make-indirect-interface name thunk)
  4. (thunk))
  5. (define (make-simple-interface name items)
  6. (cons 'export items))
  7. (define (make-compound-interface name . sigs)
  8. (cons 'compound-interface sigs))
  9. ; Types
  10. (define :value ':value)
  11. (define :syntax ':syntax)
  12. (define :structure ':structure)
  13. (define :procedure ':procedure)
  14. (define :number ':number)
  15. (define :type ':type)
  16. (define-syntax proc
  17. (lambda (e r c) ''proc-lossage))
  18. (define-syntax interface-of
  19. (lambda (e r c) ''interface-of-lossage))
  20. (define (note-reference-to-interface! int thing)
  21. 'int-lossage)
  22. (define (interface-name int)
  23. 'int-lossage)
  24. (define (interface? int)
  25. (and (pair? int)
  26. (or (eq? 'export (car int))
  27. (eq? 'compound-interface (car int)))))
  28. (define (note-interface-name! int name)
  29. 'int-lossage)