URL:
  <http://savannah.gnu.org/bugs/?19970>

                 Summary: Cannot cast from pointer to bool using gnulib's
<stdbool.h> 
                 Project: findutils
            Submitted by: jay
            Submitted on: Saturday 05/26/2007 at 11:07
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Nelson H. F. Beebe
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

Th comments in the gnulib header say:

Limitations of this substitute, when used in a C89 environment:

- In C99, casts and automatic conversions to '_Bool' or 'bool' are
performed in such a way that every nonzero value gets converted
to 'true', and zero gets converted to 'false'.  This doesn't work
with this substitute.  With this substitute, only the values 0 and  1 give
the expected result when converted to _Bool' or 'bool'.


There are a couple of places in parser.c where we do this.  That means that
findutils does nto compile in such environments.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19970>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to