#1519 typedef problem

closed-rejected
None
5
2013-05-25
2009-03-30
wenbing ma
No

typedef unsigned char * PBYTE;

"typedef PBYTE const CPBYTE;" does not work. it report "syntax error,delcaration ignored at 'CPBYTE'.
but, "typedef unsigned char * const CPBYTE" works.

Is it 'typedef' declaration bug?

Discussion

  • wenbing ma

    wenbing ma - 2009-03-30

    Use SDCC 2.8.0 #5117.

     
  • Maarten Brock

    Maarten Brock - 2009-10-04

    Unless I misunderstood the C spec, this is no bug but incorrect code. If you put the const keyword before PBYTE it should work. I don't know if this worked before but it should be fine with SDCC 2.9.3.

     
  • Maarten Brock

    Maarten Brock - 2009-10-04
    • labels: 355281 -->
    • milestone: 100454 --> non_bugs
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-rejected
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks