diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-16 14:13:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-02 14:23:49 +0300 |
commit | 83a452a8fc11e611347b9103ab11f51789a60ebf (patch) | |
tree | b57657af737ec8080c038c773b5876b64d9f35cd | |
parent | 2a4b30ef0802589aa2c646229bd9f83f41c398c8 (diff) | |
download | hercules-83a452a8fc11e611347b9103ab11f51789a60ebf.tar.gz hercules-83a452a8fc11e611347b9103ab11f51789a60ebf.tar.bz2 hercules-83a452a8fc11e611347b9103ab11f51789a60ebf.tar.xz hercules-83a452a8fc11e611347b9103ab11f51789a60ebf.zip |
Improve a bit checking in validateinterfaces.py.
-rwxr-xr-x | tools/validateinterfaces.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/validateinterfaces.py b/tools/validateinterfaces.py index c9a86979c..b34bd6233 100755 --- a/tools/validateinterfaces.py +++ b/tools/validateinterfaces.py @@ -133,8 +133,16 @@ def checkFile(tracker, cFile): continue if checkChr(line[idx - 1]): continue + if line[0:3] == " * ": + continue; if line[-1] == "\n": line = line[:-1] + text = line.strip() + if text[0:2] == "/*" or text[0:2] == "//": + continue + idx2 = line.find("//") + if idx2 > 0 and idx2 < idx: + continue tracker.arr[part].append(line) def processDir(tracker, srcDir): |