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
e5e456d1
Commit
e5e456d1
authored
35 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Changed DOCUMENTATION to use INFO instead of plist hackery.
parent
144137c4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/misc.lisp
+29
-19
29 additions, 19 deletions
code/misc.lisp
with
29 additions
and
19 deletions
code/misc.lisp
+
29
−
19
View file @
e5e456d1
...
@@ -19,31 +19,41 @@
...
@@ -19,31 +19,41 @@
short-site-name
long-site-name
dribble
))
short-site-name
long-site-name
dribble
))
(
defun
documentation
(
symbol
doc-type
)
(
defun
documentation
(
name
doc-type
)
"Returns the documentation string of Doc-Type for
the Symbol
, or NIL if
"Returns the documentation string of Doc-Type for
Name
, or NIL if
none exists. System doc-types are VARIABLE, FUNCTION, STRUCTURE, TYPE,
none exists. System doc-types are VARIABLE, FUNCTION, STRUCTURE, TYPE,
and SETF."
and SETF."
(
case
doc-type
(
case
doc-type
(
variable
(
get
symbol
'%var-documentation
))
(
variable
(
info
variable
documentation
name
))
(
function
(
get
symbol
'%fun-documentation
))
(
function
(
info
function
documentation
name
))
(
structure
(
get
symbol
'%struct-documentation
))
(
structure
(
type
(
get
symbol
'%type-documentation
))
(
when
(
eq
(
info
type
kind
name
)
:structure
)
(
setf
(
get
symbol
'%setf-documentation
))
(
info
type
documentation
name
)))
(
t
(
cdr
(
assoc
doc-type
(
get
symbol
'%documentation
))))))
(
type
(
info
type
documentation
name
))
(
defun
%set-documentation
(
symbol
doc-type
string
)
(
setf
(
info
setf
documentation
name
))
(
t
(
cdr
(
assoc
doc-type
(
info
random-documentation
stuff
name
))))))
(
defun
%set-documentation
(
name
doc-type
string
)
(
case
doc-type
(
case
doc-type
(
variable
(
%put
symbol
'%var-documentation
string
))
(
variable
(
setf
(
info
variable
documentation
name
)
string
))
(
function
(
%put
symbol
'%fun-documentation
string
))
(
function
(
setf
(
info
function
documentation
name
)
string
))
(
structure
(
%put
symbol
'%struct-documentation
string
))
(
structure
(
type
(
%put
symbol
'%type-documentation
string
))
(
unless
(
eq
(
info
type
kind
name
)
:structure
)
(
setf
(
%put
symbol
'%setf-documentation
string
))
(
error
"~S is not the name of a structure type."
name
))
(
t
(
let
((
pair
(
assoc
doc-type
(
get
symbol
'%documentation
))))
(
setf
(
info
type
documentation
name
)
string
))
(
if
pair
(
%rplacd
pair
string
)
(
type
(
setf
(
info
type
documentation
name
)
string
))
(
push
(
cons
doc-type
string
)
(
get
symbol
'%documentation
))))))
(
setf
(
setf
(
info
setf
documentation
name
)
string
))
(
t
(
let
((
pair
(
assoc
doc-type
(
info
random-documentation
stuff
name
))))
(
if
pair
(
setf
(
cdr
pair
)
string
)
(
push
(
cons
doc-type
string
)
(
info
random-documentation
stuff
name
))))))
string
)
string
)
(
defvar
*features*
'
(
:common
:cmu
:mach
:ibm-rt-pc
:clos
:new-compiler
)
(
defvar
*features*
'
(
:common
:cmu
:mach
:ibm-rt-pc
:new-compiler
)
"Holds a list of symbols that describe features provided by the
"Holds a list of symbols that describe features provided by the
implementation."
)
implementation."
)
...
...
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