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
, PropChunks
,
18 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 AROS_LHA(const LONG
*, propArray
, A1
),
20 AROS_LHA(LONG
, numPairs
, D0
),
23 struct Library
*, IFFParseBase
, 20, IFFParse
)
26 Does multiple PropChunk() calls on the supplied list.
27 An easy way to install several prop chunk handlers
31 iff - pointer to an IFFHandle struct.
32 propArray - pointer to an array of longword chunk types and identifiers.
33 numPairs - number of type/id pairs in the propArray.
37 error - 0 if successful, IFFERR_#? otherwise.
50 *****************************************************************************/
56 DEBUG_PROPCHUNKS(dprintf("PropChunks: iff 0x%lx array 0x%lx num %d\n",
57 iff
, propArray
, numPairs
));
61 LONG
* lptr
= propArray
;
62 bug ("PropChunks (iff=%p, [\n", iff
);
63 for (count
= 0; count
< numPairs
; count
++)
65 bug (" {%c%c%c%c,%c%c%c%c}, ",
75 for (count
= 0; count
< numPairs
; count
++ )
77 if ((err
= PropChunk(iff
, propArray
[0], propArray
[1])))
78 ReturnInt("PropChunks",LONG
,err
);
83 ReturnInt("PropChunks",LONG
,0L);