Menu

#977 bool doesn't work

closed-fixed
z80 port (189)
5
2013-05-25
2005-08-26
No

extern void cv_set_noise(bool white, enum cv_shift shift);

The above line doesn't compile even though I included
stdbool.h. Without -mz80 it works.

sdcc -v gives:
SDCC :
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
2.5.0 #1020 (Aug 21 2005) (UNIX)

Discussion

  • Raphael Neider

    Raphael Neider - 2006-04-11

    Logged In: YES
    user_id=1115835

    This shuold be due to stdbool.h's (indirect)
    #define bool __bit
    and the hint that z80 does not support the "bit" type.
    In fact, this should work by now (SDCC #1243), since I
    patched stdbool.h to define bool as char for PICs recently...

    Regards,
    Raphael Neider

     
  • Raphael Neider

    Raphael Neider - 2006-04-11
    • milestone: --> fixed
    • status: open --> pending-fixed
     
  • Maarten Brock

    Maarten Brock - 2006-04-11

    Logged In: YES
    user_id=888171

    This is essentially the same as bug 1468666 which Raphael
    fixed in SDCC 2.5.6 #1246.

     
  • Maarten Brock

    Maarten Brock - 2006-04-11
    • assigned_to: nobody --> tecodev
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.