; Copyright (c) 1993-2008 by Richard Kelsey and Jonathan Rees. See file COPYING.


; For DEFINE-STRUCTURE macro

(define (make-a-package opens tower reader
			dir clauses name)
  (let ((package
	 (make-package opens
		       #t    ;unstable
		       tower
		       dir
		       clauses
		       #f
		       name)))
    (set-package-reader! package reader)
    package))

(define (loser . rest)
  (assertion-violation 'init-defpackage! "init-defpackage! neglected"))

(define interface-of structure-interface)

(define *verify-later!* (lambda (thunk) #f))

(define (verify-later! thunk)
  (*verify-later!* thunk))

(define (set-verify-later! proc)
  (set! *verify-later!* proc))

(define (note-name! thing name)
  (cond ((interface? thing)
	 (note-interface-name! thing name))
	((structure? thing)
	 (note-structure-name! thing name)))
  thing)
