lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Re: [Mingw-users] FIXME MB



On Sunday 05 October 2008 02:20:04 Earnie Boyd wrote:
> > So, it's in the MSYS code base; a better reference would have
> > been
> > http://mingw.cvs.sourceforge.net/viewvc/mingw/msys/rt/src/winsup/
> >cygwin/window.cc (a.k.a. http://tinyurl.com/3nogov)
> >
> > At our age, Earnie, I guess we're allowed to forget things; it
> > was your 2004-04-30 12:42:49 UTC commit which added it!
>
> And I don't know that I was the one who wrote it. ;)

Maybe, but there is no evidence, either in that file or in the 
ChangeLog, to suggest otherwise.

> The code that gives this message should never be reached.  It is
> after a while loop that should never end.

It is in a while loop which *will* end, if the value returned by 
GetMessage() is not identically equal to `TRUE', (whatever that 
happens to represent).  According to MSDN, (in my words):--

1) If GetMessage() retrieves any message except WM_QUIT, it returns
   an unspecified non-zero value.

2) If GetMessage() retrieves a WM_QUIT message, it returns zero.

3) If GetMessage() faults, it returns -1.

Presumably (2) will represent a `FALSE' return, which would not be 
equal to `TRUE', and (3) could presumably also cause an exit from the 
while loop.  In the case of (1), what guarantee can we expect from 
Microsoft, that an unspecified return value will be exactly equal to 
our notion of `TRUE', or even that this unspecified value will remain 
the same, for all possible message types?

In any case, the message text presented isn't particularly helpful, 
especially since it seems likely to emanate from some application 
which *isn't* an *official* MSYS component, and therefore, why should 
we care?  Is there *any* *official* MSYS component which uses a GUI 
message loop?  RXVT, perhaps?  Anything else?

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users