(C) 1998 AROS - The Amiga Research OS


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

ULONG PackBoolTags (initialFlags , tagList , boolMap)

LOCATION
In UtilityBase at offset 7

SYNOPSIS
ULONG initialFlags
struct TagItem * tagList
struct TagItem * boolMap

FUNCTION
Scans through the list tagList to find the tags which are contained in the list boolMap which are then converted to a bit-flag representation as defined in boolMap.

If the value of the Tag's data is 0, then the boolean value of the tag is defined as false, otherwise it is true.

INPUTS
initialFlags
an initial set of bit-flags which will be changed by this function.

tagList
A TagItem list which contains some tags which are defined as boolean by having a corresponding tag
tag
>ti_Data determines whether the bits in the flag are TRUE or FALSE.

boolMap
A TagItem list containing a series of tags which are to be considered Boolean.

RESULT
flags - The value of initialFlags modified by the values of the boolean tags defined in boolMap.

EXAMPLE

SEE ALSO
GetTagData(), FindTagItem(), NextTagItem()

NOTES
If there is more than one Tag in tagList of a single type. The last of these tags will determine the value of that bit-flag.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.08.1997 digulla
Polish.

Renamed utility_intern.h to intern.h.

27.01.1997 ldp
Polish
21.11.1996 aros
Includes must start in the first column

No includes may be used in the SEE ALSO field

24.10.1996 aros
Use proper Amiga datatypes (eg: ULONG not unsigned long)
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.