Menu

#451 Intermingled declarations and code

None
closed-fixed
nobody
None
7
2018-06-17
2015-08-02
No

SDCC currently requires all variable declarations to be at the beginning of blocks.
However, since C99 declarations in other places are allowed.

Philipp

Discussion

  • Aleks-Daniel Jakimenko-Aleksejev

    Such a showstopper! I am working on a free software project that requires very broad platform support (SDCC included). It seems like the only (pleasant) way out in this case is to write a small script that will rearrange declarations before compilation just to get around this problem.

    I hope this will be fixed soon…

     
  • Philipp Klaus Krause

    • Group: -->
    • Priority: 5 --> 7
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
     
  • Philipp Klaus Krause

    Implemented in [r10450] via [patches:#284].

    Philipp

     

    Related

    Patches: #284


    Last edit: Maarten Brock 2018-10-13

Log in to post a comment.