needs to be gnu99...
[AROS.git] / compiler / arossupport / deinitrastport.c
blob23acff2757416018581b7969c0d512937c13606b
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: AROS Graphics function DeinitRastPort()
6 Lang: english
7 */
9 #include <aros/debug.h>
10 #include <graphics/rastport.h>
11 #include <proto/exec.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/arossupport.h>
18 void DeinitRastPort(
20 /* SYNOPSIS */
21 struct RastPort *rp)
23 /* FUNCTION
25 Frees the extra contents associated with a RastPort structure.
26 The structure itself is not freed.
28 INPUTS
30 rp - The RastPort which contents are to be freed.
32 RESULT
34 None.
36 NOTES
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 graphics.library/InitRastPort()
46 INTERNALS
48 HISTORY
49 29-10-95 digulla automatically created from
50 graphics_lib.fd and clib/graphics_protos.h
52 *****************************************************************************/
54 D(bug("DeInitRastPort()\n"));
56 if (rp->RP_Extra)
58 FreeVec(rp->RP_Extra);
59 rp->RP_Extra = NULL;
62 } /* DeinitRastPort */