#384 Allow declaration in for

None
closed
nobody
None
5
2015-08-02
2012-12-19
No

sdcc should declarations in the first entry of for, e.g.

for(int i = 0; i < 17; i++)

This is probably easier tom implement than allowing declarations everywhere, and still a very useful feature.

AFAIK this feature was introduced in ISO C99.

Philipp

Related

Feature Requests: #165

Discussion

  • Philipp Klaus Krause

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

    Duplicate of #165.

    Philipp

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks