[project @ 2001-07-31 12:59:30 by simonmar]
authorsimonmar <unknown>
Tue, 31 Jul 2001 12:59:30 +0000 (12:59 +0000)
committersimonmar <unknown>
Tue, 31 Jul 2001 12:59:30 +0000 (12:59 +0000)
merge ghc/lib/std/PrelCError.lhs rev. 1.10

Foreign/C/Error.hs

index d7c7b6d..71a05ac 100644 (file)
@@ -9,7 +9,7 @@
 -- Stability   :  provisional
 -- Portability :  portable
 --
--- $Id: Error.hs,v 1.2 2001/07/03 11:37:50 simonmar Exp $
+-- $Id: Error.hs,v 1.3 2001/07/31 12:59:30 simonmar Exp $
 --
 -- C-specific Marshalling support: Handling of C "errno" error codes
 --
@@ -118,7 +118,8 @@ import System.IO            ( IOError, Handle, ioError )
 -- ------------
 
 -- import of C function that gives address of errno
---
+-- This function exists because errno is a variable on some systems, but on
+-- Windows it is a macro for a function...
 foreign import "ghcErrno" unsafe _errno :: Ptr CInt
 
 -- Haskell representation for "errno" values