revert between 56095 -> 55830 in arch
[AROS.git] / arch / m68k-amiga / setpatch / rempatch.c
blob2be7b6f36021e3b0b2aad4758a88e4e658a97e2d
1 /*
2 Copyright © <year>, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
8 #include LC_LIBDEFS_FILE
10 /*****************************************************************************
12 NAME */
13 #include <proto/setpatch.h>
15 AROS_LH1(VOID, RemPatch,
17 /* SYNOPSIS */
18 AROS_LHA(struct PatchEntry *, pe, A0),
20 /* LOCATION */
21 struct SetPatchBase *, SetPatchBase, 6, Setpatch)
23 /* FUNCTION
25 INPUTS
27 Patch entry to remove (from FindPatch() or AddPatch())
29 RESULT
31 Patch entry is removed from the master patch list
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
41 INTERNALS
43 HISTORY
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 struct PatchEntry *pematch;
51 ObtainSemaphore(&SetPatchBase->sp_Patch3.sp_Semaphore);
52 ForeachNode(&SetPatchBase->sp_Patch3.sp_PatchList, pematch) {
53 if (pe == pematch) {
54 Remove((struct Node *)pe);
55 break;
58 ReleaseSemaphore(&SetPatchBase->sp_Patch3.sp_Semaphore);
60 AROS_LIBFUNC_EXIT