Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
metering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Daniel Kochmański
metering
Commits
492a151d
Commit
492a151d
authored
9 years ago
by
Daniel Kochmański
Browse files
Options
Downloads
Patches
Plain Diff
non-ansi: add hack for the fdefinition
This will work only for symbols. Appropriate warning attached.
parent
7c0da360
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
metering.cl
+16
-0
16 additions, 0 deletions
metering.cl
with
16 additions
and
0 deletions
metering.cl
+
16
−
0
View file @
492a151d
...
...
@@ -344,6 +344,22 @@ Estimated total monitoring overhead: 0.88 seconds
;;; Implementation Dependent Definitions ***************************
;;; ****************************************************************
;;; ********************************
;;; Hacks for non-conforming CL ****
;;; ********************************
(
eval-when
(
compile
load
eval
)
(
unless
(
fboundp
'fdefinition
)
(
eval-when
(
compile
eval
)
(
warn
"This is not ANSI conforming Common Lisp. Expect problems."
))
(
defun
fdefinition
(
symbol
)
(
symbol-function
symbol
))
(
defsetf
fdefinition
(
name
)
(
new-definition
)
`
(
setf
(
symbol-function
,
name
)
,
new-definition
))))
;;; ********************************
;;; Type Definitions ***************
;;; ********************************
...
...
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