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
332750c3
Commit
332750c3
authored
21 years ago
by
pmai
Browse files
Options
Downloads
Patches
Plain Diff
Replaced bootfile with new version from Gerd Moellmann.
parent
bf57baeb
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
bootfiles/18e/boot10.lisp
+38
-8
38 additions, 8 deletions
bootfiles/18e/boot10.lisp
with
38 additions
and
8 deletions
bootfiles/18e/boot10.lisp
+
38
−
8
View file @
332750c3
...
...
@@ -19,14 +19,33 @@
(
in-package
:kernel
)
;;;
;;; Like DEFSTRUCT, but silently clobber old definitions.
;;;
(
defmacro
defstruct!
(
name
&rest
stuff
)
`
(
handler-bind
((
error
(
lambda
(
c
)
(
declare
(
ignore
c
))
(
invoke-restart
'kernel::clobber-it
))))
(
defstruct
,
name
,@
stuff
)))
(
setq
*ANSI-defstruct-options-p*
nil
)
(
defun
define-class-methods
(
defstruct
)
(
let*
((
name
(
dd-name
defstruct
)))
`
(
,@
(
let
((
pf
(
dd-print-function
defstruct
)))
(
when
pf
`
((
setf
(
basic-structure-class-print-function
(
find-class
',name
))
,
(
if
(
symbolp
pf
)
`
',pf
`
#'
,
pf
)))))
,@
(
let
((
mlff
(
dd-make-load-form-fun
defstruct
)))
(
when
mlff
`
((
setf
(
structure-class-make-load-form-fun
(
find-class
',name
))
,
(
if
(
symbolp
mlff
)
`
',mlff
`
#'
,
mlff
)))))
,@
(
let
((
pure
(
dd-pure
defstruct
)))
(
cond
((
eq
pure
't
)
`
((
setf
(
layout-pure
(
%class-layout
(
find-class
',name
)))
t
)))
((
eq
pure
:substructure
)
`
((
setf
(
layout-pure
(
%class-layout
(
find-class
',name
)))
0
)))))
,@
(
let
((
def-con
(
dd-default-constructor
defstruct
)))
(
when
(
and
def-con
(
not
(
dd-alternate-metaclass
defstruct
)))
`
((
setf
(
structure-class-constructor
(
find-class
',name
))
#'
,
def-con
)))))))
(
defstruct
(
defstruct-slot-description
(
:conc-name
dsd-
)
...
...
@@ -97,6 +116,17 @@
islot
))
(
defun
compare-slots
(
old
new
)
(
declare
(
ignore
old
new
))
(
values
nil
nil
nil
))
(
in-package
:conditions
)
(
defstruct
(
condition-class
(
:include
slot-class
))
(
slots
nil
:type
list
)
(
class-slots
nil
:type
list
)
(
report
nil
:type
(
or
function
null
))
(
default-initargs
()
:type
list
)
(
cpl
()
:type
list
)
(
hairy-slots
nil
:type
list
))
;;; end of file
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