Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1453 pragma std_sdcc99 ignored

closed-rejected
Maarten Brock
5
2013-05-25
2008-05-07
Maarten Brock
No

pragma std_sdcc99 is ignored (and probably other similar ones too). Only the command line option --std-sdcc99 works.

Discussion

  • Maarten Brock
    Maarten Brock
    2008-05-07

    Logged In: YES
    user_id=888171
    Originator: YES

    I made a mistake, it is pragma std_c99 that is ignored, at least for the inline keyword.

     
  • Maarten Brock
    Maarten Brock
    2008-05-12

    Logged In: YES
    user_id=888171
    Originator: YES

    Nevermind, I found why you can't use pragma std_c99 in the regression tests. It's because the generation script adds 'code const char * __getSuiteName(void)' to the generated script. And 'code' is no longer accepted when this pragma is used. So it wasn't failing on 'inline' but on 'code'.

     
  • Maarten Brock
    Maarten Brock
    2008-05-12

    • milestone: --> non_bugs
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-rejected
     
  • Borut Ražem
    Borut Ražem
    2008-05-17

    Logged In: YES
    user_id=568035
    Originator: NO

    Maarten,

    would replacing "code" with "__code" solve the problem?

    Borut

     
  • Maarten Brock
    Maarten Brock
    2008-05-17

    Logged In: YES
    user_id=888171
    Originator: YES

    It probably will for SDCC, but for host it might create havoc. In testfwk.h only 'code' is defined not '__code'.