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
012eb965
Commit
012eb965
authored
Nov 08, 2001
by
simonmar
Browse files
[project @ 2001-11-08 16:36:39 by simonmar]
getProgArgv can be an unsafe foreign import.
parent
c094c3ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/std/System.lhs
View file @
012eb965
-- -----------------------------------------------------------------------------
-- $Id: System.lhs,v 1.3
6
2001/1
0/13 16:02:47 sof
Exp $
-- $Id: System.lhs,v 1.3
7
2001/1
1/08 16:36:39 simonmar
Exp $
--
-- (c) The University of Glasgow, 1994-2000
--
...
...
@@ -44,7 +44,8 @@ getArgs =
peekArray (p - 1) (advancePtr argv 1) >>= mapM peekCString
foreign import "getProgArgv" getProgArgv :: Ptr CInt -> Ptr (Ptr CString) -> IO ()
foreign import "getProgArgv" unsafe
getProgArgv :: Ptr CInt -> Ptr (Ptr CString) -> IO ()
-- Computation `getProgName' returns the name of the program
-- as it was invoked.
...
...
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