OSLib / wimp.h / wimp_ERROR_BOX_CATEGORY
Dave Appleby
DaveAppleby at btinternet.com
Wed May 31 10:34:35 BST 2000
OSLib 6.01 / wimp.h / wimp_ERROR_BOX_CATEGORY
I think that using the shift value for the new categories
makes things unnescessarily complex. Surely the programmer
doesn't need to know how the flags are arrived at...
So, can I suggest removing wimp_ERROR_BOX_CATEGORY_SHIFT,
and defining absolute values for the category flag bits instead?
eg
#define wimp_ERROR_BOX_GIVEN_CATEGORY ((wimp_error_box_flags)
0x100u)
#define wimp_ERROR_BOX_CATEGORY ((wimp_error_box_flags)
0xE00u)
#define wimp_ERROR_BOX_CATEGORY_INFO ((wimp_error_box_flags)
0x300u)
#define wimp_ERROR_BOX_CATEGORY_ERROR ((wimp_error_box_flags)
0x500u)
#define wimp_ERROR_BOX_CATEGORY_PROGRAM ((wimp_error_box_flags)
0x700u)
#define wimp_ERROR_BOX_CATEGORY_QUESTION ((wimp_error_box_flags)
0x900u)
cheers
Dave A.
More information about the oslib-user
mailing list