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?
Use SDCC 2.8.0 #5117.
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.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.