HomeFreeBSD

Add auto_if_type() function, which is similar to auto_switch_type().

Description

Add auto_if_type() function, which is similar to auto_switch_type().
However, auto_if_type() uses if/else statements in C instead
of a single switch statement, when mapping an integer value to
a #define. For certain cases where multiple #define constants
alias to a single integer value, auto_if_type() makes things easier
to parse than auto_switch_type().

Details

Provenance
rodrigcAuthored on Jan 4 2007, 4:18 AM
Parents
rGb1fa343faec4: Rewrite and simplify archive_read_format_tar_skip. Compression-layer skip
Branches
Unknown
Tags
Unknown

Event Timeline