summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-02-06 14:26:39 +0100
committerClifford Wolf <clifford@clifford.at>2014-02-06 14:26:39 +0100
commit1c6dea3a0d596c490e09d55b20057e669ec12a23 (patch)
tree42687326546cd20969fa95b641ed769598509ec8 /kernel
parent821156b6cf27efd8a9b417433211b33c177917de (diff)
Added support for #-comments in same line as command
Diffstat (limited to 'kernel')
-rw-r--r--kernel/register.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/register.cc b/kernel/register.cc
index 949d7c62..10ba4f27 100644
--- a/kernel/register.cc
+++ b/kernel/register.cc
@@ -148,6 +148,8 @@ void Pass::call(RTLIL::Design *design, std::string command)
for (char *p = strtok_r(s, " \t\r\n", &saveptr); p; p = strtok_r(NULL, " \t\r\n", &saveptr)) {
std::string str = p;
int strsz = str.size();
+ if (str == "#")
+ break;
if (strsz > 0 && str[strsz-1] == ';') {
int num_semikolon = 0;
while (strsz > 0 && str[strsz-1] == ';')