2 Copyright © 1995-2004, 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 successfull, IFFERR_#? otherwise.
48 *****************************************************************************/
51 AROS_LIBBASE_EXT_DECL(struct Library
*,IFFParseBase
)
53 DEBUG_STOPONEXIT(dprintf("StopOnExit: iff 0x%lx type 0x%08lx (%c%c%c%c) id 0x%08lx (%c%c%c%c)\n",
54 iff
, type
, dmkid(type
), id
, dmkid(id
)));
57 bug ("StopOnExit (iff=%p, type=%c%c%c%c, id=%c%c%c%c)\n",
64 /* Install an ExitHandler */
73 &(IPB(IFFParseBase
)->exitcontexthook
),
82 /**********************/
83 /* Exit entry-handler */
84 /**********************/