projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54bf3a9
)
Fixed next_token()
author
Clifford Wolf
<clifford@clifford.at>
Fri, 10 Oct 2014 16:38:40 +0000
(18:38 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 10 Oct 2014 16:38:40 +0000
(18:38 +0200)
kernel/yosys.cc
patch
|
blob
|
history
diff --git
a/kernel/yosys.cc
b/kernel/yosys.cc
index 96fe5446db88fe6abcf81bcad4feed3444b0a6ad..08f75df7b56bf430b31e48c141d529e3982e4359 100644
(file)
--- a/
kernel/yosys.cc
+++ b/
kernel/yosys.cc
@@
-87,12
+87,12
@@
std::string next_token(std::string &text, const char *sep)
{
size_t pos_begin = text.find_first_not_of(sep);
- if (pos_begin == string::npos)
+ if (pos_begin == st
d::st
ring::npos)
pos_begin = text.size();
size_t pos_end = text.find_first_of(sep, pos_begin);
- if (pos_end == string::npos)
+ if (pos_end == st
d::st
ring::npos)
pos_end = text.size();
std::string token = text.substr(pos_begin, pos_end-pos_begin);