Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cmucl
cmucl
Commits
02219274
Commit
02219274
authored
Nov 13, 1990
by
wlott
Browse files
Changed function-info-or-lose and %defknown to change the info environment
in *target-backend* if there is one.
parent
8814e5de
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/knownfun.lisp
View file @
02219274
...
...
@@ -146,10 +146,13 @@
(
proclaim
'
(
function
%defknown
(
list
list
attributes
&key
(
derive-type
function
)
(
optimizer
function
))))
(
defun
%defknown
(
names
type
attributes
&key
derive-type
optimizer
)
(
declare
(
ignore
derive-type
))
(
let
((
ctype
(
specifier-type
type
))
(
info
(
make-function-info
:attributes
attributes
; :derive-type derive-type Until database is fixed...
:optimizer
optimizer
)))
:optimizer
optimizer
))
(
*info-environment*
(
or
(
backend-info-environment
*target-backend*
)
*info-environment*
)))
(
dolist
(
name
names
)
(
setf
(
info
function
type
name
)
ctype
)
(
setf
(
info
function
where-from
name
)
:declared
)
...
...
@@ -167,6 +170,8 @@
;;;
(
proclaim
'
(
function
function-info-or-lose
(
t
)
function-info
))
(
defun
function-info-or-lose
(
name
)
(
let
((
old
(
info
function
info
name
)))
(
unless
old
(
error
"~S is not a known function."
name
))
(
setf
(
info
function
info
name
)
(
copy-function-info
old
))))
(
let
((
*info-environment*
(
or
(
backend-info-environment
*target-backend*
)
*info-environment*
)))
(
let
((
old
(
info
function
info
name
)))
(
unless
old
(
error
"~S is not a known function."
name
))
(
setf
(
info
function
info
name
)
(
copy-function-info
old
)))))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment