#1602 _Bool won't work in structs

closed-duplicate
nobody
None
MCS51
5
2015-03-21
2010-01-17
No

Since _Bool is treated as a storage class specifier by sdcc, it can't be used in some places, e.g. as a struct member, it is not possible to declare function pointer types for functions returning bool either.
This seems to be true for all ports.

Philipp

Discussion

  • Philipp Klaus Krause

    A struct that won't compile

     
  • Philipp Klaus Krause

    OK, function pointers to functions returning bool work.

    Thus this bug report shall just be about bool in structs.

     
  • Philipp Klaus Krause

    This bug report no longer applies to the z80 and gbz80 ports.

    It can be closed once all ports have true _Bool support.

     
  • Philipp Klaus Krause

    This bug report currently applies to mcs51, ds390 and xa51 ports only.

    Philipp

     
  • Ben Shi

    Ben Shi - 2015-03-21

    Duplicates to bug [#2085]. They are all due to _Bool is defined as bit in MCS-51 & DS390.

     

    Related

    Bugs: #2085


    Last edit: Maarten Brock 2016-05-21
  • Ben Shi

    Ben Shi - 2015-03-21
    • status: open --> closed-duplicate
    • Category: --> MCS51
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks