Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
02fb8137
Commit
02fb8137
authored
Nov 08, 2001
by
simonmar
Browse files
[project @ 2001-11-08 17:02:41 by simonmar]
inputReady can be an unsafe foreign import.
parent
0e74df8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/PrelIO.hs
View file @
02fb8137
...
...
@@ -3,7 +3,7 @@
#
undef
DEBUG_DUMP
-- -----------------------------------------------------------------------------
-- $Id: PrelIO.hs,v 1.
1
2001/11/0
7
1
8:25:35 sof
Exp $
-- $Id: PrelIO.hs,v 1.
2
2001/11/0
8
1
7:02:41 simonmar
Exp $
--
-- (c) The University of Glasgow, 1992-2001
--
...
...
@@ -138,7 +138,7 @@ hWaitForInput h msecs = do
(
inputReady
(
fromIntegral
(
haFD
handle_
))
(
fromIntegral
msecs
))
return
(
r
/=
0
)
foreign
import
"inputReady"
foreign
import
"inputReady"
unsafe
inputReady
::
CInt
->
CInt
->
IO
CInt
-- ---------------------------------------------------------------------------
...
...
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