(C) 1998 AROS - The Amiga Research OS


NAME
#include <utility/tagitem.h>
#include <proto/utility.h>

void RefreshTagItemClones (clone , original)

LOCATION
In UtilityBase at offset 14

SYNOPSIS
struct TagItem * clone
struct TagItem * original

FUNCTION
If (and only if) the Tag list 'clone' was created by calling CloneTagItems on the Tag list 'original', and the list original has NOT been changed in any way, then this function will change the list 'clone' back to its original state.

INPUTS
original
The source TagList (unaltered)
clone
The destination TagList (MUST be allocated by CloneTagItems())

RESULT
The second TagList now has the same values as the first.

EXAMPLE
struct TagItem *orig, clone;

\* TagList orig has some values already *\
clone = CloneTagList( orig );

\* In between here we do something to the TagItems in clone,
    but we need to have them restored.
*\

RefreshTagItemClones( clone, orig );
SEE ALSO
CloneTagItems()

NOTES
If either of the inputs is NULL, then the function will not do anything.

BUGS
None, however if either of the two pre-conditions is not fulfilled then this function will probably be unreliable, or trash memory.

We warned you...

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.08.1997 digulla
Polish.

Renamed utility_intern.h to intern.h.

03.02.1997 ldp
Changed <proto/*_protos.h> to <proto/*.h>
02.02.1997 iaint
Some bug fixes, math functions and native Amiga support
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
23.10.1996 aros
Formatted

Added parens to all assignments which are used truth expressions

22.10.1996 aros
Some more utility.library functions.