grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / dos / freedosentry.c
blobf1eee21df644480ca84124ff137aa5ae259627af
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "dos_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <proto/dos.h>
16 AROS_LH1(void, FreeDosEntry,
18 /* SYNOPSIS */
19 AROS_LHA(struct DosList *, dlist, D1),
21 /* LOCATION */
22 struct DosLibrary *, DOSBase, 117, Dos)
24 /* FUNCTION
25 Free a dos list entry created with MakeDosEntry().
27 INPUTS
28 dlist - pointer to dos list entry. May be NULL.
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 if (dlist != NULL)
48 /* It's important to free dol_Name here due to BSTR compatibility.
49 See MakeDosEntry() */
50 FreeVec(BADDR(dlist->dol_Name));
51 FreeVec(dlist);
54 AROS_LIBFUNC_EXIT
55 } /* FreeDosEntry */