projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a139b49
)
Added support for // comments in liberty parser
author
Clifford Wolf
<clifford@clifford.at>
Sat, 25 Jan 2014 05:32:16 +0000
(06:32 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 25 Jan 2014 05:32:16 +0000
(06:32 +0100)
passes/techmap/libparse.cc
patch
|
blob
|
history
diff --git
a/passes/techmap/libparse.cc
b/passes/techmap/libparse.cc
index 8f4a1a5fa521759ef4cf44574c763973bf5cac8c..8cbb8e2be81dc5de11ce77becd6b63c8199fbbbd 100644
(file)
--- a/
passes/techmap/libparse.cc
+++ b/
passes/techmap/libparse.cc
@@
-126,6
+126,11
@@
int LibertyParser::lexer(std::string &str)
line++;
}
return lexer(str);
+ } else if (c == '/') {
+ while (c > 0 && c != '\n')
+ c = fgetc(f);
+ line++;
+ return lexer(str);
}
ungetc(c, f);
// fprintf(stderr, "LEX: char >>/<<\n");