Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi Mattias,

On Wed, 2010-12-08 at 21:35 +1100, Mattias Johnsson wrote:
Fix for http://qa.openoffice.org/issues/show_bug.cgi?id=108228.

        Wow - this is an excellent analysis :-) though I'm hoping someone else
will review the patch.

// The numeric values of TRUE and FALSE
enum SbxBOOL { SbxFALSE = 0, SbxTRUE = -1 };

Bizarre, although I have very vague memories of Visual Basic defining
-1 to be true. Is that the reason ?

        Possibly this is down to someone using a signed single bit field
somewhere in the deep past ;-)

        typedef struct {
                int foo : 1;
        } Foo;

        'foo' can only be either 0 or -1 - you get just a sign bit.

        Having said that, this really doesn't seem ideal. I wonder what the
compatibility impact of changing it would be [ a chestnut for Noel to
consider I suspect ].

        Anyhow - great work ! :-) 

        Thanks,

                Michael.

-- 
 michael.meeks@novell.com  <><, Pseudo Engineer, itinerant idiot



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.