winetest: Annotate xmalloc() and xrealloc() with allocation size attribute.
dmitry at codeweavers.com
Tue Feb 17 21:40:45 CST 2009
"Steven Edwards" <winehacker at gmail.com> wrote:
> Conversely maybe using windows.h usage should be fixed and used more
> often. Wine is an oddball when it comes to win32 program with the
> excessive lengths it goes to, to avoid using windows.h. I am starting
> to think even avoiding it internally like we do causes more harm than
> good as far as being source compatible with MSVC.
The reason why we avoid windows.h inclusion in Wine is compilation
time by avoiding inclusion of all-in-one headers windows.h does. It's
always a good programming practice to include only those .h files that
are really needed, inclusion of windows.h usually shows the ignorance
and lack of knowledge of a programmer.
More information about the wine-devel