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
6e4ba2b1
Commit
6e4ba2b1
authored
32 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Merged Olssons fix to WITH-ENABLED-INTERRUPTS now that it doesn't change
interrupt characters anymore.
parent
548472ce
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/signal.lisp
+10
-18
10 additions, 18 deletions
code/signal.lisp
with
10 additions
and
18 deletions
code/signal.lisp
+
10
−
18
View file @
6e4ba2b1
...
...
@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/signal.lisp,v 1.1
5
1992/0
3/26 03
:1
6
:3
0 wlott
Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/signal.lisp,v 1.1
6
1992/0
7/08 17
:1
9
:3
9 ram
Exp $"
)
;;;
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/signal.lisp,v 1.1
5
1992/0
3/26 03
:1
6
:3
0 wlott
Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/signal.lisp,v 1.1
6
1992/0
7/08 17
:1
9
:3
9 ram
Exp $
;;;
;;; Code for handling UNIX signals.
;;;
...
...
@@ -336,14 +336,10 @@
;;;; WITH-ENABLED-INTERRUPTS
(
defmacro
with-enabled-interrupts
(
interrupt-list
&body
body
)
"With-enabled-interrupts ({(interrupt function [character])}*) {form}*
Establish function as a handler for the Unix signal interrupt which
should be a number between 1 and 31 inclusive. For the signals that
can be generated from the keyboard, the optional character specifies
the character to use to generate the signal."
"With-enabled-interrupts ({(interrupt function)}*) {form}*
Establish function as a handler for the Unix signal interrupt which
should be a number between 1 and 31 inclusive."
(
let
((
il
(
gensym
))
(
fn
(
gensym
))
(
ch
(
gensym
))
(
it
(
gensym
)))
`
(
let
((
,
il
NIL
))
(
unwind-protect
...
...
@@ -351,17 +347,13 @@
,@
(
do*
((
item
interrupt-list
(
cdr
item
))
(
intr
(
caar
item
)
(
caar
item
))
(
ifcn
(
cadar
item
)
(
cadar
item
))
(
ichr
(
caddar
item
)
(
caddar
item
))
(
forms
NIL
))
((
null
item
)
(
nreverse
forms
))
(
if
(
symbolp
intr
)
(
setq
intr
(
symbol-value
intr
)))
(
push
`
(
multiple-value-bind
(
,
fn
,
ch
)
(
enable-interrupt
,
intr
,
ifcn
,
ichr
)
(
push
`
(
,,
intr
,,
fn
,,
ch
)
,
il
))
forms
))
(
when
(
symbolp
intr
)
(
setq
intr
(
symbol-value
intr
)))
(
push
`
(
push
`
(
,,
intr
,
(
enable-interrupt
,
intr
,
ifcn
))
,
il
)
forms
))
,@
body
)
(
dolist
(
,
it
(
nreverse
,
il
))
(
funcall
#'
enable-interrupt
(
car
,
it
)
(
cadr
,
it
)
(
caddr
,
it
)))))))
(
enable-interrupt
(
car
,
it
)
(
cadr
,
it
)))))))
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