diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-04 16:09:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-04 16:09:20 +0300 |
commit | 8f8404709be157753e07aa47b69dddef6f10513c (patch) | |
tree | 1e3d2ac6fdacfe9e560d5a1919199034db4c3a60 /pluginvalidator | |
parent | 771807dd3e4e2817407a5a80ead8067181518aba (diff) | |
download | evol-tools-8f8404709be157753e07aa47b69dddef6f10513c.tar.gz evol-tools-8f8404709be157753e07aa47b69dddef6f10513c.tar.bz2 evol-tools-8f8404709be157753e07aa47b69dddef6f10513c.tar.xz evol-tools-8f8404709be157753e07aa47b69dddef6f10513c.zip |
pluginvalidator: ignore commented lines in parsing function names.halloween2015
Diffstat (limited to 'pluginvalidator')
-rwxr-xr-x | pluginvalidator/validate.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pluginvalidator/validate.py b/pluginvalidator/validate.py index 064a494..61661ba 100755 --- a/pluginvalidator/validate.py +++ b/pluginvalidator/validate.py @@ -65,14 +65,19 @@ def extractFuncFuncions(path, session): if ch != '(' and ch != ' ' and ch != '\t': continue data = line + line2 = line.strip() + if len(line2) > 2 and line2[:2] == "//": + continue if data.find(")") < 0: for line in f: data = data + line if data.find(")") > 1: session.decls[s] = data +# print "'{0}'".format(data) break else: session.decls[s] = data +# print "'{0}'".format(data) def loadHookedList(name): funcToPlug = dict() @@ -177,6 +182,7 @@ def compareFuncs(session): # print ff if pf != ff: print "Error: wrong parameters in function {0}.".format(func) +## print "{0} vs {1}".format(pf, ff); break def processServer(name1, name2): |