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
089dd0b7
Commit
089dd0b7
authored
32 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
New structure hax.
parent
da13257c
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/macros.lisp
+16
-5
16 additions, 5 deletions
code/macros.lisp
with
16 additions
and
5 deletions
code/macros.lisp
+
16
−
5
View file @
089dd0b7
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.35 199
2
/0
9
/0
1 17:41:52
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/macros.lisp,v 1.35
.1.1
199
3
/0
2
/0
4 22:35:38
ram Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -166,12 +166,23 @@
...
@@ -166,12 +166,23 @@
(
defun
%deftype
(
name
expander
&optional
doc
)
(
defun
%deftype
(
name
expander
&optional
doc
)
(
ecase
(
info
type
kind
name
)
(
ecase
(
info
type
kind
name
)
(
:primitive
(
:primitive
(
error
"Illegal to redefine standard type: ~S."
name
))
(
when
*type-system-initialized*
(
error
"Illegal to redefine standard type: ~S."
name
)))
#+
ns-boot
(
:structure
(
:structure
(
warn
"Redefining structure type ~S with DEFTYPE."
name
)
(
warn
"Redefining structure type ~S with DEFTYPE."
name
)
(
c::undefine-structure
(
info
type
structure-info
name
)))
(
c::undefine-structure
(
info
type
structure-info
name
))
((
nil
:defined
)))
(
setf
(
info
type
kind
name
)
:defined
))
(
setf
(
info
type
kind
name
)
:defined
)
(
:instance
(
warn
"Redefining class ~S to be a DEFTYPE."
name
)
(
undefine-structure
(
layout-info
(
class-layout
(
info
type
class
name
))))
(
setf
(
info
type
class
name
)
nil
)
(
setf
(
info
type
compiler-layout
name
)
nil
)
(
setf
(
info
type
kind
name
)
:defined
))
(
:defined
)
((
nil
)
(
setf
(
info
type
kind
name
)
:defined
)))
(
setf
(
info
type
expander
name
)
expander
)
(
setf
(
info
type
expander
name
)
expander
)
(
when
doc
(
when
doc
(
setf
(
documentation
name
'type
)
doc
))
(
setf
(
documentation
name
'type
)
doc
))
...
...
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