Bug in wimp.h
David Bryan
D.J.Bryan at cranfield.ac.uk
Tue Aug 8 15:40:26 BST 2000
Chris Rutter wrote:
> The declaration for wimp_load_template() includes the 12-byte buffer
> being `const': this is incorrect, as the Wimp replaces wildcarded names
> by the actual name of the template;
How about, char name[12], as an aid memoir? This still doesn't
warn of the necessary condition of word alignment.
> Furthermore, shouldn't there be a macro for `((wimp_window *) 0xffffffffu)'
> (the value to pass to wimp_load_template() if you want to look up the
> sizes of the various buffers)?
Why 0xffffffffu? I think many people use just 0 (or NULL).
Whatever the value, naming one of them is a good idea.
--
David Bryan
More information about the oslib-user
mailing list