Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0fee0e07
Commit
0fee0e07
authored
Feb 05, 2002
by
sewardj
Browse files
[project @ 2002-02-05 16:56:38 by sewardj]
[non-code-change] complaint --> compliant
parent
6eaccd1a
Changes
2
Show whitespace changes
Inline
Side-by-side
ghc/lib/std/PrelMarshalArray.lhs
View file @
0fee0e07
% -----------------------------------------------------------------------------
% $Id: PrelMarshalArray.lhs,v 1.
9
2002/02/0
4 09:05:46 chak
Exp $
% $Id: PrelMarshalArray.lhs,v 1.
10
2002/02/0
5 16:56:38 sewardj
Exp $
%
% (c) The FFI task force, 2000
%
...
...
@@ -208,7 +208,7 @@ withArray0 marker vals f =
-- destruct each element of an array (in reverse order)
--
destructArray :: Storable a => Int -> Ptr a -> IO ()
{-# DEPRECATED destructArray "This function is not standards compl
a
int" #-}
{-# DEPRECATED destructArray "This function is not standards compli
a
nt" #-}
destructArray size ptr =
sequence_ [destruct (ptr `advancePtr` i)
| i <- [size-1, size-2 .. 0]]
...
...
@@ -216,7 +216,7 @@ destructArray size ptr =
-- like `destructArray', but a terminator indicates where the array ends
--
destructArray0 :: (Storable a, Eq a) => a -> Ptr a -> IO ()
{-# DEPRECATED destructArray0 "This function is not standards compl
a
int" #-}
{-# DEPRECATED destructArray0 "This function is not standards compli
a
nt" #-}
destructArray0 marker ptr = do
size <- lengthArray0 marker ptr
sequence_ [destruct (ptr `advancePtr` i)
...
...
ghc/lib/std/PrelStorable.lhs
View file @
0fee0e07
% -----------------------------------------------------------------------------
% $Id: PrelStorable.lhs,v 1.1
1
2002/02/0
4 09:05:46 chak
Exp $
% $Id: PrelStorable.lhs,v 1.1
2
2002/02/0
5 16:56:39 sewardj
Exp $
%
% (c) The FFI task force, 2000
%
...
...
@@ -87,7 +87,7 @@ class Storable a where
poke ptr = pokeElemOff ptr 0
destruct _ = return ()
{-# DEPRECATED destruct "This function is not standards compl
a
int" #-}
{-# DEPRECATED destruct "This function is not standards compli
a
nt" #-}
\end{code}
System-dependent, but rather obvious instances
...
...
Write
Preview
Supports
Markdown
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