s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

problems with nested preprocessor commands #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
there are problems with nested #ifndef commands

it seems #endif doesn't decrease the hierarchy level counter. The problem 
occurs if you try to include the same file (with nested #if) several times.

try: "toped bug4_inc.tll"

Another problem, which seems to be related, occures with comments

try: "toped bug4_inc_comment.tll"

Original issue reported on code.google.com by analogc...@gmx.net on 15 Jan 2012 at 1:51

Attachments:

GoogleCodeExporter commented 9 years ago
I can see the issue.It's not quite trivial will need some changes in the 
preprocessor and lex.

Original comment by krustev....@gmail.com on 19 Jan 2012 at 12:07

GoogleCodeExporter commented 9 years ago
The root problem fixed in r2032. More tests required before closing the issue 
especially with #else

Original comment by krustev....@gmail.com on 19 Jan 2012 at 10:11

GoogleCodeExporter commented 9 years ago
Armin,
Please close the issue if you're happy with the fix.

Original comment by krustev....@gmail.com on 1 Apr 2012 at 12:29

GoogleCodeExporter commented 9 years ago
no concerns so far ..

Original comment by analogc...@gmx.net on 1 Apr 2012 at 4:32

GoogleCodeExporter commented 9 years ago
Issues with prepcheck.tll -  #else statements

Original comment by krustev....@gmail.com on 15 Apr 2012 at 7:31

GoogleCodeExporter commented 9 years ago
The troubles with #else (Comment 5) should be fixed in r2134

Original comment by krustev....@gmail.com on 15 Apr 2012 at 10:24