Mercurial > hg > CbC > old > CbC_scripts
changeset 16:f748d295b08f
fix start_code bug
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2015 17:15:06 +0900 |
parents | ea6c94f9840a |
children | 77c1716f7aff |
files | meta_connector/meta_connector.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/meta_connector/meta_connector.py Fri Oct 16 16:13:17 2015 +0900 +++ b/meta_connector/meta_connector.py Thu Oct 22 17:15:06 2015 +0900 @@ -56,7 +56,7 @@ file.write('{0:s}(struct Context* context, {1:s}'.format(splited[0],splited[1])) elif not isMetaOrStub and regexed_l is not None and re.search(r"^ *goto",l): callee_name = regexed_l.group(0).rstrip('(') - if re.match('meta_|meta$',callee_name): + if callee_name == 'start_code' or re.match('meta_|meta$',callee_name): file.write(l) else: file.write("/*-- connected by script */\n")