Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
43f10df6
Commit
43f10df6
authored
32 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Update structure type hackery
parent
225ac2cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/typetran.lisp
+6
-7
6 additions, 7 deletions
compiler/typetran.lisp
with
6 additions
and
7 deletions
compiler/typetran.lisp
+
6
−
7
View file @
43f10df6
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/typetran.lisp,v 1.14.1.
2
1993/0
1/23 14:34:43
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/typetran.lisp,v 1.14.1.
3
1993/0
2/08 22:12:19
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -137,7 +137,7 @@
(
define-type-predicate
simple-string-p
simple-string
)
(
define-type-predicate
simple-vector-p
simple-vector
)
(
define-type-predicate
stringp
string
)
(
define-type-predicate
instancep
instance
)
(
define-type-predicate
%
instancep
instance
)
(
define-type-predicate
symbolp
symbol
)
(
define-type-predicate
vectorp
vector
))
...
...
@@ -343,9 +343,8 @@
;;; named, error. If a structure, call S-T-STRUCTURE-TYPEP. Otherwise, call
;;; CLASS-TYPEP at run-time with the layout and class object.
;;;
(
defun
source-transform-instance-typep
(
obj
desc
)
(
let*
((
class
(
instance-type-class
desc
))
(
name
(
class-name
class
))
(
defun
source-transform-instance-typep
(
obj
class
)
(
let*
((
name
(
class-name
class
))
(
layout
(
info
type
compiler-layout
name
)))
(
cond
((
not
(
and
name
(
eq
(
find-class
name
)
class
)))
...
...
@@ -359,7 +358,7 @@
(
t
(
multiple-value-bind
(
pred
layout
)
(
if
(
funcallable-class-p
class
)
(
if
(
csubtypep
class
(
specifier-type
'generic-function
)
)
(
values
'funcallable-instance-p
'funcallable-instance-layout
)
(
values
'%instancep
'%instance-layout
))
(
once-only
((
object
obj
))
...
...
@@ -426,7 +425,7 @@
(
source-transform-union-typep
object
type
))
(
member-type
`
(
member
,
object
',
(
member-type-members
type
)))
(
instance-type
(
class
(
source-transform-instance-typep
object
type
))
(
args-type
(
compiler-warning
"Illegal type specifier for Typep: ~S."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment