diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2007-01-04 04:18:03 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2007-01-04 04:18:03 +0000 |
commit | 4c8dc49a4a58ec65c21fd52d1b3e05287897bce1 (patch) | |
tree | 587e43c69b20455de707f7e7466011fef48edb8f /contrib | |
parent | b1fa343faec4e5af24ffc3c4d83c0125f2796334 (diff) | |
download | src-4c8dc49a4a58ec65c21fd52d1b3e05287897bce1.tar.gz src-4c8dc49a4a58ec65c21fd52d1b3e05287897bce1.zip |
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().
Notes
Notes:
svn path=/head/; revision=165756
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions