2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
7 #include <aros/debug.h>
8 #include "iffparse_intern.h"
10 /*****************************************************************************
13 #include <proto/iffparse.h>
15 AROS_LH3(LONG
, StopOnExit
,
18 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 AROS_LHA(LONG
, type
, D0
),
20 AROS_LHA(LONG
, id
, D1
),
23 struct Library
*, IFFParseBase
, 25, IFFParse
)
26 Inserts an exit handler for the given type and id, that will cause the parser
27 to stop when such a chunk is left.
30 iff - Pointer to IFFHandle struct. (does not need to be open).
31 type - IFF chunk type declarator for chunk to stop at.
32 id - IFF chunk id identifier for chunk to stop at.
35 error - 0 if successful, IFFERR_#? otherwise.
48 *****************************************************************************/
52 DEBUG_STOPONEXIT(dprintf("StopOnExit: iff 0x%lx type 0x%08lx (%c%c%c%c) id 0x%08lx (%c%c%c%c)\n",
53 iff
, type
, dmkid(type
), id
, dmkid(id
)));
56 bug ("StopOnExit (iff=%p, type=%c%c%c%c, id=%c%c%c%c)\n",
63 /* Install an ExitHandler */
72 &(IPB(IFFParseBase
)->exitcontexthook
),
81 /**********************/
82 /* Exit entry-handler */
83 /**********************/