Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Each piece of memory that is pushed onto the stack is cast to a GTrashStack*.
- newtype TrashStack = TrashStack (ForeignPtr TrashStack)
- newZeroTrashStack :: MonadIO m => m TrashStack
- noTrashStack :: Maybe TrashStack
- trashStackHeight :: MonadIO m => TrashStack -> m Word32
- trashStackPush :: MonadIO m => TrashStack -> Ptr () -> m ()
- trashStackClearNext :: MonadIO m => TrashStack -> m ()
- trashStackNext :: AttrLabelProxy "next"
- trashStackReadNext :: MonadIO m => TrashStack -> m (Maybe TrashStack)
- trashStackWriteNext :: MonadIO m => TrashStack -> Ptr TrashStack -> m ()
Exported types
newtype TrashStack Source
WrappedPtr TrashStack | |
(~) AttrOpTag tag AttrSet => Constructible TrashStack tag | |
((~) * info (ResolveTrashStackMethod t TrashStack), MethodInfo * info TrashStack p) => IsLabelProxy t (TrashStack -> p) | |
type AttributeList TrashStack |
newZeroTrashStack :: MonadIO m => m TrashStack Source
Construct a TrashStack
struct initialized to zero.
Methods
trashStackHeight
trashStackHeight :: MonadIO m => TrashStack -> m Word32 Source
trashStackPush
trashStackPush :: MonadIO m => TrashStack -> Ptr () -> m () Source
Properties
Next
trashStackClearNext :: MonadIO m => TrashStack -> m () Source
trashStackNext :: AttrLabelProxy "next" Source
trashStackReadNext :: MonadIO m => TrashStack -> m (Maybe TrashStack) Source
trashStackWriteNext :: MonadIO m => TrashStack -> Ptr TrashStack -> m () Source