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
bbadce44
Commit
bbadce44
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Removed the STRUCTURE-PREDICATE function, as this is now done directly
by typetran.
parent
6879935d
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
code/defstruct.lisp
+1
-18
1 addition, 18 deletions
code/defstruct.lisp
with
1 addition
and
18 deletions
code/defstruct.lisp
+
1
−
18
View file @
bbadce44
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/defstruct.lisp,v 1.
19
199
0/12/19 00:23:49 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/defstruct.lisp,v 1.
20
199
1/01/03 13:14:47 ram
Exp $
;;;
;;;
;;; Defstruct structure definition package (Mark II).
;;; Defstruct structure definition package (Mark II).
;;; Written by Skef Wholey and Rob MacLachlan.
;;; Written by Skef Wholey and Rob MacLachlan.
...
@@ -640,23 +640,6 @@
...
@@ -640,23 +640,6 @@
(
eq
(
elt
(
the
,
ltype
object
)
,
(
dd-offset
defstruct
))
(
eq
(
elt
(
the
,
ltype
object
)
,
(
dd-offset
defstruct
))
',name
))))))))
',name
))))))))
;;; Structure-Predicate -- Internal
;;;
;;; The typep transform in typetran calls this function when it encounters
;;; an unknown symbol type specifier. If the referred-to type is in fact a
;;; structure type that has a predicate, then we open-code the normal case of
;;; an exact match, and otherwise call the predicate.
;;;
(
defun
structure-predicate
(
object
type
)
(
let
((
def
(
info
type
structure-info
type
)))
(
if
(
and
def
(
eq
(
dd-type
def
)
'structure
)
(
dd-predicate
def
))
`
(
and
(
structurep
,
object
)
(
if
(
eq
(
structure-ref
,
object
0
)
',type
)
t
(
,
(
dd-predicate
def
)
,
object
)))
`
(
lisp::structure-typep
,
object
',type
))))
;;; Random sorts of stuff.
;;; Random sorts of stuff.
...
...
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