1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Updated checking scripts

git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@108 3b4be424-7ac5-41d7-8526-f4ddcb85d872
This commit is contained in:
Veselin Georgiev 2012-09-09 22:29:12 +00:00
parent f385bac458
commit 18d2b9b075

View file

@ -115,9 +115,9 @@ for fn in glob.glob("%s/*.c" % sys.argv[1]):
continue continue
inner = line[i+1:j] inner = line[i+1:j]
parts = inner.split(",") parts = inner.split(",")
if len(parts) == 10: #this number needs to change if the definition of match_entry_t ever changes if len(parts) == 11: #this number needs to change if the definition of match_entry_t ever changes
cdefs += 1 cdefs += 1
s = parts[9].strip() s = parts[10].strip()
if s[0] != '"' or s[-1] != '"': if s[0] != '"' or s[-1] != '"':
print "..Warning, %s:%d - cannot correctly handle the cpu codename" % (bfn, nline) print "..Warning, %s:%d - cannot correctly handle the cpu codename" % (bfn, nline)
allok = False allok = False