2 Copyright © 1995-2007, 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
, StoreLocalItem
,
18 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 AROS_LHA(struct LocalContextItem
*, localItem
, A1
),
20 AROS_LHA(LONG
, position
, D0
),
23 struct Library
*, IFFParseBase
, 36, IFFParse
)
26 Stores the given local context item in a context node.
27 Which context node this is depends on the value of the position
29 IFFSLI_ROOT - insert into the default contextnode.
30 IFFSLI_PROP - insert into the node returned by FindPropContext().
31 IFFSLI_TOP - insert item into the current contextnode.
35 iff - pointer to IFFHandle struct.
36 localItem - pointer to local context item.
37 position - IFFSLI_ROOT, IFFSLI_PROP or IFFSLI_TOP.
40 error - 0 if succesfull, IFFERR_#? otherwise.
49 StoreItemInContext(), FindLocalItem(), EntryHandler(), ExitHandler()
53 *****************************************************************************/
58 struct ContextNode
*cn
;
61 bug ("StoreLocalItem (iff=%p, localItem=%p, position=%d)\n",
62 iff
, localItem
, position
69 /* Store in default context-node */
79 /* Store in top context-node */
89 /* Store in top FORM or LIST chunk */
91 cn
= FindPropContext(iff
);
107 } /* End of switch */
109 ReturnInt ("StoreLocalItem",LONG
,err
);
111 } /* StoreLocalItem */