added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / rom / intuition / freeremember.c
blobdec6e208da1aa4991fdc8ca6a5b35009d689158b
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
8 #include <exec/memory.h>
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <intuition/intuition.h>
15 #include <proto/intuition.h>
17 AROS_LH2(void, FreeRemember,
19 /* SYNOPSIS */
20 AROS_LHA(struct Remember **, rememberKey, A0),
21 AROS_LHA(LONG , reallyForget, D0),
23 /* LOCATION */
24 struct IntuitionBase *, IntuitionBase, 68, Intuition)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 HISTORY
43 27-11-96 digulla automatically created from
44 intuition_lib.fd and clib/intuition_protos.h
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
50 struct Remember *next, *key;
52 DEBUG_REMEMBER(dprintf("FreeRemember: Key 0x%lx ReallyForget %d\n",
53 rememberKey, reallyForget));
55 for (next = *rememberKey; (key = next); )
57 next = key->NextRemember;
59 if (reallyForget)
60 FreeMem (key->Memory, key->RememberSize);
62 FreeMem (key, sizeof (struct Remember));
65 *rememberKey = NULL;
67 AROS_LIBFUNC_EXIT
68 } /* FreeRemember */