#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/cref/object.scm,v 1.4 1991/10/30 20:58:35 cph Exp $
+$Id: object.scm,v 1.5 1992/12/03 03:13:59 cph Exp $
-Copyright (c) 1988-91 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(declare (usual-integrations))
\f
(define-structure (package-description
+ (type vector)
(named
(string->symbol "#[(cross-reference)package-description]"))
(constructor make-package-description)
(imports false read-only true))
(define-structure (pmodel
+ (type vector)
(named (string->symbol "#[(cross-reference)pmodel]"))
(conc-name pmodel/))
(root-package false read-only true)
(pathname false read-only true))
(define-structure (package
+ (type vector)
(named (string->symbol "#[(cross-reference)package]"))
(constructor %make-package
(name file-cases files initialization parent))
(cdr clause))
\f
(define-structure (binding
+ (type vector)
(named (string->symbol "#[(cross-reference)binding]"))
(constructor %make-binding (package name value-cell))
(conc-name binding/))
(eq? binding (binding/source-binding binding)))
(define-structure (value-cell
+ (type vector)
(named (string->symbol "#[(cross-reference)value-cell]"))
(constructor make-value-cell ())
(conc-name value-cell/))
(source-binding false))
(define-structure (link
+ (type vector)
(named (string->symbol "#[(cross-reference)link]"))
(constructor %make-link)
(conc-name link/))
link))
(define-structure (expression
+ (type vector)
(named (string->symbol "#[(cross-reference)expression]"))
(constructor make-expression (package file type))
(conc-name expression/))
(value-cell false))
(define-structure (reference
+ (type vector)
(named (string->symbol "#[(cross-reference)reference]"))
(constructor %make-reference (package name))
(conc-name reference/))
#| -*-Scheme-*-
-$Id: infstr.scm,v 1.7 1992/11/29 14:16:51 gjr Exp $
+$Id: infstr.scm,v 1.8 1992/12/03 03:18:37 cph Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
"#[(runtime compiler-info)dbg-info-vector-tag]"))
(define-structure (dbg-info
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-info]"))
labels))))))
(define-structure (dbg-expression
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-expression]"))
(dbg-label/offset (dbg-expression/label expression)))
(define-structure (dbg-procedure
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-procedure]"))
(< (dbg-procedure/label-offset x) (dbg-procedure/label-offset y)))
\f
(define-structure (dbg-continuation
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-continuation]"))
(< (dbg-continuation/label-offset x) (dbg-continuation/label-offset y)))
(define-structure (dbg-block
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-block]"))
)
(define-structure (dbg-variable
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-variable]"))
'SET-DBG-LABEL/NAMES!))))
(define-structure (dbg-label-1
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-label]"))
#| -*-Scheme-*-
-$Id: lambda.scm,v 14.9 1992/11/29 14:17:42 gjr Exp $
+$Id: lambda.scm,v 14.10 1992/12/03 03:20:52 cph Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
(define lambda-bound)
(define-structure (block-declaration
+ (type vector)
(named ((ucode-primitive string->symbol)
"#[Block Declaration]")))
(text false read-only true))
#| -*-Scheme-*-
-$Id: pathnm.scm,v 14.23 1992/11/29 14:19:50 gjr Exp $
+$Id: pathnm.scm,v 14.24 1992/12/03 03:20:15 cph Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
|#
\f
(define-structure (pathname
+ (type vector)
(named ((ucode-primitive string->symbol)
"#[(runtime pathname)pathname]"))
(constructor %make-pathname)
(operation/end-of-line-string false read-only true)
(operation/pathname-canonicalize false read-only true))
-(define-structure (host
- (named ((ucode-primitive string->symbol)
- "#[(runtime pathname)host]"))
- (constructor %make-host)
- (conc-name host/))
+(define-structure (host (type vector)
+ (named ((ucode-primitive string->symbol)
+ "#[(runtime pathname)host]"))
+ (constructor %make-host)
+ (conc-name host/))
(type-index false read-only true)
(name false read-only true))
(equal? (host/name x) (host/name y))))
(define (guarantee-host host operation)
- (if (not (host? host))
- (error:wrong-type-argument host "host" operation))
+ (if (not (host? host)) (error:wrong-type-argument host "host" operation))
host)
(define (host-operation/parse-namestring host)
#| -*-Scheme-*-
-$Id: uenvir.scm,v 14.29 1992/11/29 14:23:01 gjr Exp $
+$Id: uenvir.scm,v 14.30 1992/12/03 03:20:32 cph Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
;;;; Compiled Code Environments
(define-structure (stack-ccenv
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime environment)stack-ccenv]"))
(vector-length (dbg-block/layout-vector block)))
\f
(define-structure (closure-ccenv
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime environment)closure-ccenv]"))
#| -*-Scheme-*-
-$Id: object.scm,v 4.3 1992/11/04 10:17:32 jinx Exp $
+$Id: object.scm,v 4.4 1992/12/03 03:18:21 cph Exp $
Copyright (c) 1987-1992 Massachusetts Institute of Technology
`(BEGIN
(DEFINE-ENUMERAND ,name ,enumeration)
(DEFINE-STRUCTURE (,name
+ (TYPE VECTOR)
(NAMED ,(symbol-append name '/ENUMERAND))
(CONC-NAME ,(symbol-append name '/))
(CONSTRUCTOR ,(symbol-append name '/MAKE)))
)))
(define-enumerand block random)
-(define-structure (block (named block/enumerand)
+(define-structure (block (type vector)
+ (named block/enumerand)
(conc-name block/)
(constructor %block/make))
parent
(define-enumerand delayed-integration random)
(define-structure (delayed-integration
+ (type vector)
(named delayed-integration/enumerand)
(conc-name delayed-integration/)
(constructor delayed-integration/make (operations value)))
#| -*-Scheme-*-
-$Id: infstr.scm,v 1.7 1992/11/29 14:16:51 gjr Exp $
+$Id: infstr.scm,v 1.8 1992/12/03 03:18:37 cph Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
"#[(runtime compiler-info)dbg-info-vector-tag]"))
(define-structure (dbg-info
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-info]"))
labels))))))
(define-structure (dbg-expression
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-expression]"))
(dbg-label/offset (dbg-expression/label expression)))
(define-structure (dbg-procedure
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-procedure]"))
(< (dbg-procedure/label-offset x) (dbg-procedure/label-offset y)))
\f
(define-structure (dbg-continuation
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-continuation]"))
(< (dbg-continuation/label-offset x) (dbg-continuation/label-offset y)))
(define-structure (dbg-block
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-block]"))
)
(define-structure (dbg-variable
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-variable]"))
'SET-DBG-LABEL/NAMES!))))
(define-structure (dbg-label-1
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime compiler-info)dbg-label]"))
#| -*-Scheme-*-
-$Id: uenvir.scm,v 14.29 1992/11/29 14:23:01 gjr Exp $
+$Id: uenvir.scm,v 14.30 1992/12/03 03:20:32 cph Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
;;;; Compiled Code Environments
(define-structure (stack-ccenv
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime environment)stack-ccenv]"))
(vector-length (dbg-block/layout-vector block)))
\f
(define-structure (closure-ccenv
+ (type vector)
(named
((ucode-primitive string->symbol)
"#[(runtime environment)closure-ccenv]"))