2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 #include <exec/types.h>
12 #include "dos_intern.h"
14 extern void Exec_FreeMem();
16 /*****************************************************************************
19 #include <proto/dos.h>
21 AROS_LH1(BOOL
, UnLoadSeg
,
24 AROS_LHA(BPTR
, seglist
, D1
),
27 struct DosLibrary
*, DOSBase
, 26, Dos
)
30 Free a segment list allocated with LoadSeg().
33 seglist - The segment list.
36 success = returns whether everything went ok. Returns FALSE if
49 *****************************************************************************/
55 #if AROS_MODULES_DEBUG
56 extern struct MinList debug_seglist
;
57 extern struct MinList free_debug_segnodes
;
58 struct debug_segnode
*segnode
;
61 ForeachNode(&debug_seglist
, segnode
)
63 if (segnode
->seglist
== seglist
)
66 ADDHEAD(&free_debug_segnodes
, segnode
);
72 return InternalUnLoadSeg(seglist
, __AROS_GETVECADDR(SysBase
, 35));