Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
51f4b8dc
Commit
51f4b8dc
authored
Jan 26, 1995
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New cmd-. handling for the mac.
parent
da88dada
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
Parser/intrcheck.c
Parser/intrcheck.c
+21
-15
No files found.
Parser/intrcheck.c
View file @
51f4b8dc
...
...
@@ -141,8 +141,11 @@ initintr()
signal
(
SIGINT
,
intcatcher
);
}
int
intrcheck
()
#ifdef THINK_C
/* MPW and MW runtime catch cmd-. and raise SIGINT, THINK does not, it seems */
static
void
scan_event_queue
(
flush
)
int
flush
;
{
register
EvQElPtr
q
;
...
...
@@ -152,11 +155,22 @@ intrcheck()
if
(
q
->
evtQWhat
==
keyDown
&&
(
char
)
q
->
evtQMessage
==
'.'
&&
(
q
->
evtQModifiers
&
cmdKey
)
!=
0
)
{
FlushEvents
(
keyDownMask
,
0
);
if
(
flush
)
FlushEvents
(
keyDownMask
,
0
);
interrupted
=
1
;
break
;
}
}
}
#endif
int
intrcheck
()
{
#ifdef THINK_C
scan_event_queue
(
1
);
#endif
PyMac_Yield
();
if
(
interrupted
)
{
interrupted
=
0
;
return
1
;
...
...
@@ -172,18 +186,10 @@ intrcheck()
int
intrpeek
()
{
register
EvQElPtr
q
;
q
=
(
EvQElPtr
)
GetEvQHdr
()
->
qHead
;
for
(;
q
;
q
=
(
EvQElPtr
)
q
->
qLink
)
{
if
(
q
->
evtQWhat
==
keyDown
&&
(
char
)
q
->
evtQMessage
==
'.'
&&
(
q
->
evtQModifiers
&
cmdKey
)
!=
0
)
{
return
1
;
}
}
return
0
;
#ifdef THINK_C
scan_event_queue
(
0
);
#endif
return
interrupted
;
}
#define OK
...
...
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